#include <tools.h>
Veřejné typy | |
| enum | BONUSES { MEGABOMB, TIMER, SHIELD, ILLNESS, FIREMAN, SLIDER, KICKER } |
Veřejné metody | |
| GameTools () | |
| Uint16 | getFlamePeriod () |
| Flame * | flame_top (Uint16 x, Uint16 y) const |
| Flame * | flame_top (const field_t &field) const |
| Flame * | flame_bottom (Uint16 x, Uint16 y) const |
| Flame * | flame_bottom (const field_t &field) const |
| Flame * | flame_topbottom (Uint16 x, Uint16 y) const |
| Flame * | flame_topbottom (const field_t &field) const |
| Flame * | flame_left (Uint16 x, Uint16 y) const |
| Flame * | flame_left (const field_t &field) const |
| Flame * | flame_right (Uint16 x, Uint16 y) const |
| Flame * | flame_right (const field_t &field) const |
| Flame * | flame_leftright (Uint16 x, Uint16 y) const |
| Flame * | flame_leftright (const field_t &field) const |
| Flame * | flame_cross (Uint16 x, Uint16 y) const |
| Flame * | flame_cross (const field_t &field) const |
| Bomb * | bomb_normal (Uint16 x, Uint16 y, Uint16 flamesize, bool timer=false) const |
| Bomb * | bomb_normal (const field_t &field, Uint16 flamesize, bool timer=false) const |
| Bomb * | bomb_mega (Uint16 x, Uint16 y, Uint16 flamesize, bool timer=false) const |
| Bomb * | bomb_mega (const field_t &field, Uint16 flamesize, bool timer=false) const |
| Presumption * | presumption (Uint16 x, Uint16 y, Uint16 to_end) |
| Presumption * | presumption (const field_t &field, Uint16 to_end) |
| void | draw_panel_player (SDL_Surface *window, const SDL_Rect &rect, Uint16 player_num, Uint16 lives, Uint16 flames, Uint16 bombs, Uint16 megabombs, bool slider, bool kicker) |
| void | draw_panel_bonus (SDL_Surface *window, const SDL_Rect &rect, Uint16 player_num, BONUSES bonus, const std::string &val="") |
Privátní typy | |
| typedef std::map< std::string, Surface > | texts_t |
Privátní metody | |
| void | load_flame_ (TiXmlElement *flameEl, const Surface &sur_src) |
| void | load_bombs_ (TiXmlElement *bombsEl, const Surface &sur_src) |
| void | load_panels_ (TiXmlElement *panelsEl, const Surface &sur_src) |
| void | load_bonuses_ (TiXmlElement *bonusesEl, const Surface &sur_src) |
| Uint16 | get_panel_x_ (Uint16 player_num, const SDL_Rect &rect) |
| Uint16 | get_panel_y_ (Uint16 player_num, const SDL_Rect &rect) |
| const Surface & | text_ (const std::string &text) |
Privátní atributy | |
| Uint16 | flame_period_ |
| Uint16 | bomb_speed_ |
| Animation | flame_top_ |
| Animation | flame_bottom_ |
| Animation | flame_topbottom_ |
| Animation | flame_left_ |
| Animation | flame_right_ |
| Animation | flame_leftright_ |
| Animation | flame_cross_ |
| Animation | bomb_normal_ |
| Animation | bomb_mega_ |
| Animation | presumption_ |
| std::vector< positioned_surface_t > | panels_ |
| std::vector< positioned_surface_t > | bonuses_ |
| texts_t | texts_ |
Třídy | |
| struct | positioned_surface_t |
Třída GameTools naloaduje z XML věci potřebné ke hře a poskytuje je v podobě jednoduchého interface.
typedef std::map< std::string, Surface > GameTools::texts_t [private] |
| enum GameTools::BONUSES |
| GameTools::GameTools | ( | ) |
| Uint16 GameTools::getFlamePeriod | ( | ) |

| Flame * GameTools::flame_top | ( | Uint16 | x, | |
| Uint16 | y | |||
| ) | const |

| Flame * GameTools::flame_bottom | ( | Uint16 | x, | |
| Uint16 | y | |||
| ) | const |

| Flame * GameTools::flame_topbottom | ( | Uint16 | x, | |
| Uint16 | y | |||
| ) | const |

| Flame * GameTools::flame_left | ( | Uint16 | x, | |
| Uint16 | y | |||
| ) | const |

| Flame * GameTools::flame_right | ( | Uint16 | x, | |
| Uint16 | y | |||
| ) | const |

| Flame * GameTools::flame_leftright | ( | Uint16 | x, | |
| Uint16 | y | |||
| ) | const |

| Flame * GameTools::flame_cross | ( | Uint16 | x, | |
| Uint16 | y | |||
| ) | const |

| Bomb * GameTools::bomb_normal | ( | Uint16 | x, | |
| Uint16 | y, | |||
| Uint16 | flamesize, | |||
| bool | timer = false | |||
| ) | const |

| Bomb* GameTools::bomb_normal | ( | const field_t & | field, | |
| Uint16 | flamesize, | |||
| bool | timer = false | |||
| ) | const [inline] |

| Bomb * GameTools::bomb_mega | ( | Uint16 | x, | |
| Uint16 | y, | |||
| Uint16 | flamesize, | |||
| bool | timer = false | |||
| ) | const |

| Bomb* GameTools::bomb_mega | ( | const field_t & | field, | |
| Uint16 | flamesize, | |||
| bool | timer = false | |||
| ) | const [inline] |

| Presumption * GameTools::presumption | ( | Uint16 | x, | |
| Uint16 | y, | |||
| Uint16 | to_end | |||
| ) |

| Presumption* GameTools::presumption | ( | const field_t & | field, | |
| Uint16 | to_end | |||
| ) | [inline] |

| void GameTools::draw_panel_player | ( | SDL_Surface * | window, | |
| const SDL_Rect & | rect, | |||
| Uint16 | player_num, | |||
| Uint16 | lives, | |||
| Uint16 | flames, | |||
| Uint16 | bombs, | |||
| Uint16 | megabombs, | |||
| bool | slider, | |||
| bool | kicker | |||
| ) |

| void GameTools::draw_panel_bonus | ( | SDL_Surface * | window, | |
| const SDL_Rect & | rect, | |||
| Uint16 | player_num, | |||
| BONUSES | bonus, | |||
| const std::string & | val = "" | |||
| ) |


| void GameTools::load_flame_ | ( | TiXmlElement * | flameEl, | |
| const Surface & | sur_src | |||
| ) | [private] |


| void GameTools::load_bombs_ | ( | TiXmlElement * | bombsEl, | |
| const Surface & | sur_src | |||
| ) | [private] |


| void GameTools::load_panels_ | ( | TiXmlElement * | panelsEl, | |
| const Surface & | sur_src | |||
| ) | [private] |


| void GameTools::load_bonuses_ | ( | TiXmlElement * | bonusesEl, | |
| const Surface & | sur_src | |||
| ) | [private] |


| Uint16 GameTools::get_panel_x_ | ( | Uint16 | player_num, | |
| const SDL_Rect & | rect | |||
| ) | [private] |

| Uint16 GameTools::get_panel_y_ | ( | Uint16 | player_num, | |
| const SDL_Rect & | rect | |||
| ) | [private] |

| const Surface & GameTools::text_ | ( | const std::string & | text | ) | [private] |


Uint16 GameTools::flame_period_ [private] |
Uint16 GameTools::bomb_speed_ [private] |
Animation GameTools::flame_top_ [private] |
Animation GameTools::flame_bottom_ [private] |
Animation GameTools::flame_topbottom_ [private] |
Animation GameTools::flame_left_ [private] |
Animation GameTools::flame_right_ [private] |
Animation GameTools::flame_leftright_ [private] |
Animation GameTools::flame_cross_ [private] |
Animation GameTools::bomb_normal_ [private] |
Animation GameTools::bomb_mega_ [private] |
Animation GameTools::presumption_ [private] |
std::vector< positioned_surface_t > GameTools::panels_ [private] |
std::vector< positioned_surface_t > GameTools::bonuses_ [private] |
texts_t GameTools::texts_ [private] |
1.5.6