# game_interface Class Reference

List of all members.

## Public Member Functions
void | create_interface (void)
int | interface_loop (int civilization_number)
bool | check_click (int sprite)
void | hover (int sprite, int hover)
void | create_radar (void)
void | load_images (void)
void | create_buttons (int civilization_number)
## Public Attributes
int | display_height

## Detailed Description

game_interface controls the gui that the player interacts with. The player can create buildings or military units from within the gui.

## Member Function Documentation

bool game_interface::check_click | ( | int | sprite | ) | `[inline]`

method to check if the button-sprite has collided w/ selector-sprite

void game_interface::create_buttons | ( | int | civilization_number | ) | `[inline]`

create the buttons for the civilization depending on the civilization number

void game_interface::create_interface | ( | void |  | ) | `[inline]`

void game_interface::create_radar | ( | void |  | ) | `[inline]`

creates the radar

void game_interface::hover | ( | int | sprite,
|  | int | hover |
| ) |  |  | `[inline]`

create hover and click effects replace current image with hover image when hovered

Parameters:

  | sprite | is sprite number
  | hover | is hovered image number

int game_interface::interface_loop | ( | int | civilization_number | ) | `[inline]`

void game_interface::load_images | ( | void |  | ) | `[inline]`

loads the images for BOTH CIVILIZATIONS for the gui icons

## Member Data Documentation

int game_interface::display_height

The documentation for this class was generated from the following file:

- C:/Documents and Settings/Adam Schwartz/My Documents/um/code/game_interface.cpp