#include <bgentity.h>
Public Member Functions | |
| BGEntity () | |
| ~BGEntity () | |
| void | set_tiledata (Tiledata *t) |
| void | set_tileinfo (tile_info *newinfo) |
| void | set_tile_props (int first_prop, int second_prop) |
| void | set_index (int i) |
| void | set_onscreen (int i) |
| void | set_location (int x, int y) |
| SDL_Rect | get_box () |
| int | is_onscreen () |
| int | is_walkable () |
| int | get_damage () |
| int | get_tilesize () |
| string | get_name () |
| void | set_name (string str) |
Public Attributes | |
| Tiledata * | tiledata |
Private Attributes | |
| tile_info * | info |
| string | name |
| int | index |
| int | walkable |
| int | damage |
| SDL_Rect | box |
| int | onscreen |
Friends | |
| class | Tiledata |
Definition at line 49 of file bgentity.h.
| BGEntity::BGEntity | ( | ) |
| BGEntity::~BGEntity | ( | ) |
| void BGEntity::set_tiledata | ( | Tiledata * | t | ) |
Definition at line 45 of file bgentity.cpp.
References Tiledata::get_name(), set_name(), and tiledata.
| void BGEntity::set_tileinfo | ( | tile_info * | newinfo | ) |
| void BGEntity::set_tile_props | ( | int | first_prop, | |
| int | second_prop | |||
| ) |
Definition at line 55 of file bgentity.cpp.
References damage, tile_info::first_prop, info, tile_info::second_prop, and walkable.
| void BGEntity::set_index | ( | int | i | ) |
| void BGEntity::set_onscreen | ( | int | i | ) |
| void BGEntity::set_location | ( | int | x, | |
| int | y | |||
| ) |
Definition at line 73 of file bgentity.cpp.
References box, Tiledata::get_height(), Tiledata::get_width(), makerect(), and tiledata.
| SDL_Rect BGEntity::get_box | ( | ) |
| int BGEntity::is_onscreen | ( | ) |
| int BGEntity::is_walkable | ( | ) |
Definition at line 81 of file bgentity.cpp.
References walkable.
Referenced by FGEntityList::check_bg_collisions().
| int BGEntity::get_damage | ( | ) |
| int BGEntity::get_tilesize | ( | ) |
| string BGEntity::get_name | ( | ) |
| void BGEntity::set_name | ( | string | str | ) |
friend class Tiledata [friend] |
Definition at line 50 of file bgentity.h.
tile_info* BGEntity::info [private] |
Definition at line 52 of file bgentity.h.
Referenced by BGEntity(), set_tile_props(), set_tileinfo(), and ~BGEntity().
string BGEntity::name [private] |
int BGEntity::index [private] |
int BGEntity::walkable [private] |
int BGEntity::damage [private] |
SDL_Rect BGEntity::box [private] |
int BGEntity::onscreen [private] |
Definition at line 58 of file bgentity.h.
Referenced by BGEntity(), is_onscreen(), and set_onscreen().
Definition at line 60 of file bgentity.h.
Referenced by get_tilesize(), set_location(), and set_tiledata().
1.5.5