BGEntity Class Reference

#include <bgentity.h>

Collaboration diagram for BGEntity:
[legend]

List of all members.

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

Tiledatatiledata

Private Attributes

tile_infoinfo
string name
int index
int walkable
int damage
SDL_Rect box
int onscreen

Friends

class Tiledata


Detailed Description

Definition at line 49 of file bgentity.h.


Constructor & Destructor Documentation

BGEntity::BGEntity (  ) 

Definition at line 32 of file bgentity.cpp.

References index, info, name, and onscreen.

BGEntity::~BGEntity (  ) 

Definition at line 40 of file bgentity.cpp.

References info.


Member Function Documentation

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  ) 

Definition at line 51 of file bgentity.cpp.

References info.

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  ) 

Definition at line 61 of file bgentity.cpp.

References index.

void BGEntity::set_onscreen ( int  i  ) 

Definition at line 65 of file bgentity.cpp.

References onscreen.

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

Definition at line 77 of file bgentity.cpp.

References box.

int BGEntity::is_onscreen (  ) 

Definition at line 69 of file bgentity.cpp.

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

Definition at line 85 of file bgentity.cpp.

References damage.

int BGEntity::get_tilesize (  ) 

Definition at line 89 of file bgentity.cpp.

References Tiledata::tile, and tiledata.

string BGEntity::get_name (  ) 

Definition at line 93 of file bgentity.cpp.

References name.

void BGEntity::set_name ( string  str  ) 

Definition at line 97 of file bgentity.cpp.

References name.

Referenced by set_tiledata().


Friends And Related Function Documentation

friend class Tiledata [friend]

Definition at line 50 of file bgentity.h.


Member Data Documentation

Definition at line 52 of file bgentity.h.

Referenced by BGEntity(), set_tile_props(), set_tileinfo(), and ~BGEntity().

string BGEntity::name [private]

Definition at line 53 of file bgentity.h.

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

int BGEntity::index [private]

Definition at line 54 of file bgentity.h.

Referenced by BGEntity(), and set_index().

int BGEntity::walkable [private]

Definition at line 55 of file bgentity.h.

Referenced by is_walkable(), and set_tile_props().

int BGEntity::damage [private]

Definition at line 56 of file bgentity.h.

Referenced by get_damage(), and set_tile_props().

SDL_Rect BGEntity::box [private]

Definition at line 57 of file bgentity.h.

Referenced by get_box(), and set_location().

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


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