#include <fgentity.h>
Public Member Functions | |
FGEntity () | |
virtual | ~FGEntity () |
void | set_tiledata (Tiledata &t) |
void | set_paul_info (paul_info *p) |
void | set_tileinfo (tile_info *newinfo) |
void | set_fgentity_list (FGEntityList *new_list) |
void | set_index (int i) |
void | set_walkable (int i) |
void | set_onscreen (int i) |
void | set_location (int x, int y) |
int | get_index () |
int | is_onscreen () |
SDL_Rect | get_box () |
string | get_name () |
void | set_name (string str) |
void | reverse () |
virtual void | update ()=0 |
virtual int | activate () |
Public Attributes | |
tile_info * | info |
paul_info * | pinfo |
string | name |
int | index |
int | onscreen |
int | character |
int | direction |
int | current_frame |
int | stationary |
int | animate |
int | walkable |
FGEntityList * | fgentity_list |
SDL_Rect | box |
SDL_Rect | current_box |
Tiledata | tiledata |
Definition at line 49 of file fgentity.h.
FGEntity::FGEntity | ( | ) |
Definition at line 32 of file fgentity.cpp.
References current_frame, index, info, name, onscreen, and stationary.
FGEntity::~FGEntity | ( | ) | [virtual] |
Definition at line 42 of file fgentity.cpp.
void FGEntity::set_tiledata | ( | Tiledata & | t | ) |
Definition at line 45 of file fgentity.cpp.
References Tiledata::get_name(), set_name(), and tiledata.
Referenced by main().
void FGEntity::set_paul_info | ( | paul_info * | p | ) |
void FGEntity::set_tileinfo | ( | tile_info * | newinfo | ) |
void FGEntity::set_fgentity_list | ( | FGEntityList * | new_list | ) |
Definition at line 58 of file fgentity.cpp.
References fgentity_list.
Referenced by FGEntityList::add_fgentity().
void FGEntity::set_index | ( | int | i | ) |
void FGEntity::set_walkable | ( | int | i | ) |
void FGEntity::set_onscreen | ( | int | i | ) |
void FGEntity::set_location | ( | int | x, | |
int | y | |||
) |
Definition at line 82 of file fgentity.cpp.
References box, current_box, makerect(), Tiledata::tile, tiledata, and TILESIZE.
int FGEntity::get_index | ( | ) |
Definition at line 74 of file fgentity.cpp.
References index.
Referenced by FGItem::activate(), FGEntityList::add_fgentity(), FGEntityList::check_fg_walkable(), and FGEntityList::test().
int FGEntity::is_onscreen | ( | ) |
Definition at line 78 of file fgentity.cpp.
References onscreen.
Referenced by FGEntityList::test().
SDL_Rect FGEntity::get_box | ( | ) |
Definition at line 87 of file fgentity.cpp.
References box.
Referenced by FGEntityList::check_collisions(), and reverse().
string FGEntity::get_name | ( | ) |
Definition at line 91 of file fgentity.cpp.
References name.
Referenced by FGEntityList::remove_node(), and FGEntityList::test().
void FGEntity::set_name | ( | string | str | ) |
void FGEntity::reverse | ( | ) |
Definition at line 99 of file fgentity.cpp.
References box, direction, get_box(), and set_location().
Referenced by FGEntityList::check_collisions().
virtual void FGEntity::update | ( | ) | [pure virtual] |
int FGEntity::activate | ( | ) | [virtual] |
Reimplemented in FGItem.
Definition at line 130 of file fgentity.cpp.
Referenced by FGEntityList::check_fg_walkable(), and FGEntityList::test().
Reimplemented in Player.
Definition at line 53 of file fgentity.h.
Referenced by FGItem::activate(), set_paul_info(), Character::set_paul_info(), FGItem::update(), and Character::update().
string FGEntity::name |
int FGEntity::index |
Definition at line 56 of file fgentity.h.
Referenced by Character::Character(), FGEntity(), is_onscreen(), set_onscreen(), Player::update(), FGItem::update(), and Character::update().
Definition at line 57 of file fgentity.h.
Reimplemented in Character, and FGItem.
Definition at line 58 of file fgentity.h.
Referenced by reverse().
Definition at line 59 of file fgentity.h.
Referenced by FGItem::activate(), FGEntityList::check_fg_walkable(), FGEntity(), Player::move(), Player::overlay(), Player::redraw(), Player::static_redraw(), Player::static_redraw_cycle(), and FGEntityList::test().
Definition at line 60 of file fgentity.h.
Referenced by FGEntity(), FGItem::FGItem(), and Character::set_tileinfo().
Definition at line 61 of file fgentity.h.
Referenced by FGItem::activate(), Character::Character(), FGEntityList::check_fg_walkable(), FGItem::FGItem(), FGItem::set_teleporterinfo(), and FGEntityList::test().
Definition at line 62 of file fgentity.h.
Referenced by FGItem::activate(), Character::Character(), FGEntityList::check_fg_walkable(), FGItem::FGItem(), and set_walkable().
SDL_Rect FGEntity::box |
Definition at line 64 of file fgentity.h.
Referenced by get_box(), reverse(), set_location(), Player::update(), FGItem::update(), and Character::update().
SDL_Rect FGEntity::current_box |
Definition at line 65 of file fgentity.h.
Referenced by FGEntityList::check_fg_walkable(), set_location(), FGEntityList::test(), Player::update(), FGItem::update(), and Character::update().
Definition at line 66 of file fgentity.h.
Referenced by Player::overlay(), Player::redraw(), set_location(), set_tiledata(), Player::static_redraw(), Player::static_redraw_cycle(), and FGEntityList::test().