FGEntity Class Reference

#include <fgentity.h>

Inheritance diagram for FGEntity:
[legend]
Collaboration diagram for FGEntity:
[legend]

List of all members.

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_infoinfo
paul_infopinfo
string name
int index
int onscreen
int character
int direction
int current_frame
int stationary
int animate
int walkable
FGEntityListfgentity_list
SDL_Rect box
SDL_Rect current_box
Tiledata tiledata


Detailed Description

Definition at line 49 of file fgentity.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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  ) 

Reimplemented in Character, and Player.

Definition at line 50 of file fgentity.cpp.

References pinfo.

Referenced by main().

void FGEntity::set_tileinfo ( tile_info newinfo  ) 

Definition at line 54 of file fgentity.cpp.

References info.

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  ) 

Definition at line 62 of file fgentity.cpp.

References index.

Referenced by main().

void FGEntity::set_walkable ( int  i  ) 

Definition at line 66 of file fgentity.cpp.

References walkable.

Referenced by main().

void FGEntity::set_onscreen ( int  i  ) 

Definition at line 70 of file fgentity.cpp.

References onscreen.

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.

Referenced by main(), and reverse().

int FGEntity::get_index (  ) 

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  ) 

Definition at line 95 of file fgentity.cpp.

References name.

Referenced by set_tiledata().

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]

Implemented in Character, FGItem, and Player.

Referenced by FGEntityList::test().

int FGEntity::activate (  )  [virtual]

Reimplemented in FGItem.

Definition at line 130 of file fgentity.cpp.

Referenced by FGEntityList::check_fg_walkable(), and FGEntityList::test().


Member Data Documentation

Definition at line 52 of file fgentity.h.

Referenced by FGEntity(), and set_tileinfo().

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().

Definition at line 54 of file fgentity.h.

Referenced by FGEntity(), get_name(), and set_name().

Definition at line 55 of file fgentity.h.

Referenced by FGEntity(), get_index(), and set_index().

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 60 of file fgentity.h.

Referenced by FGEntity(), FGItem::FGItem(), and Character::set_tileinfo().

Definition at line 63 of file fgentity.h.

Referenced by set_fgentity_list().

SDL_Rect FGEntity::box


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

Generated on Thu May 22 10:42:42 2008 for piedmont by  doxygen 1.5.5