#include <fgentitylist.h>
Public Member Functions | |
FGEntityList () | |
~FGEntityList () | |
void | set_bgentity (BGEntity *bge) |
void | set_background_draw (BGDraw &bgd) |
void | set_screen (Screen &s) |
void | add_fgentity (FGEntity *l) |
void | add_node (node *new_node) |
void | remove_node (node *bye_node) |
void | check_collisions () |
void | test (int dir) |
void | set_player (Player &p) |
void | set_paul_info (paul_info *p) |
int | check_bg_collisions (int dir, SDL_Rect char_box) |
int | check_fg_walkable (int dir, int prx, int pry) |
Private Attributes | |
BGEntity * | bgentity |
BGDraw | bgdraw |
node * | first |
int | node_count |
int | index |
Player | player |
Screen | screen |
paul_info * | pinfo |
Classes | |
struct | node |
Definition at line 50 of file fgentitylist.h.
FGEntityList::FGEntityList | ( | ) |
FGEntityList::~FGEntityList | ( | ) |
Definition at line 37 of file fgentitylist.cpp.
void FGEntityList::set_bgentity | ( | BGEntity * | bge | ) |
void FGEntityList::set_background_draw | ( | BGDraw & | bgd | ) |
void FGEntityList::set_screen | ( | Screen & | s | ) |
void FGEntityList::add_fgentity | ( | FGEntity * | l | ) |
Definition at line 41 of file fgentitylist.cpp.
References add_node(), FGEntityList::node::fgentity, FGEntity::get_index(), index, FGEntityList::node::index, FGEntityList::node::next, node_count, and FGEntity::set_fgentity_list().
Referenced by main().
void FGEntityList::add_node | ( | node * | new_node | ) |
Definition at line 52 of file fgentitylist.cpp.
References first, and FGEntityList::node::next.
Referenced by add_fgentity().
void FGEntityList::remove_node | ( | node * | bye_node | ) |
Definition at line 64 of file fgentitylist.cpp.
References FGEntityList::node::fgentity, first, FGEntity::get_name(), FGEntityList::node::next, and node_count.
Referenced by test().
void FGEntityList::check_collisions | ( | ) |
Definition at line 90 of file fgentitylist.cpp.
References FGEntityList::node::fgentity, first, FGEntity::get_box(), FGEntityList::node::next, and FGEntity::reverse().
void FGEntityList::test | ( | int | dir | ) |
Definition at line 112 of file fgentitylist.cpp.
References FGEntity::activate(), FGEntity::animate, bgdraw, Screen::blit(), check_bg_collisions(), check_fg_walkable(), FGEntity::current_box, FGEntity::current_frame, FGEntityList::node::fgentity, first, FGEntity::get_index(), FGEntity::get_name(), BGDraw::initialize(), FGEntity::is_onscreen(), makerect(), Player::move(), FGEntityList::node::next, node_count, Player::overlay(), paul_info::paul_x, paul_info::paul_y, pinfo, player, remove_node(), screen, Player::static_redraw(), Player::static_redraw_cycle(), Tiledata::tile, FGEntity::tiledata, paul_info::tilesize, FGEntity::update(), and Player::update().
Referenced by main().
void FGEntityList::set_player | ( | Player & | p | ) |
void FGEntityList::set_paul_info | ( | paul_info * | p | ) |
int FGEntityList::check_bg_collisions | ( | int | dir, | |
SDL_Rect | char_box | |||
) |
Definition at line 228 of file fgentitylist.cpp.
References bgentity, BGEntity::is_walkable(), paul_info::map_width_in_tiles, MOVE_PER_FRAME, pinfo, and paul_info::tilesize.
Referenced by test().
int FGEntityList::check_fg_walkable | ( | int | dir, | |
int | prx, | |||
int | pry | |||
) |
Definition at line 305 of file fgentitylist.cpp.
References FGEntity::activate(), FGEntity::animate, FGEntity::current_box, FGEntity::current_frame, FGEntityList::node::fgentity, first, FGEntity::get_index(), makerect(), MOVE_PER_FRAME, FGEntityList::node::next, node_count, pinfo, paul_info::tilesize, and FGEntity::walkable.
Referenced by test().
BGEntity* FGEntityList::bgentity [private] |
Definition at line 52 of file fgentitylist.h.
Referenced by check_bg_collisions(), and set_bgentity().
BGDraw FGEntityList::bgdraw [private] |
node* FGEntityList::first [private] |
Definition at line 60 of file fgentitylist.h.
Referenced by add_node(), check_collisions(), check_fg_walkable(), FGEntityList(), remove_node(), and test().
int FGEntityList::node_count [private] |
Definition at line 61 of file fgentitylist.h.
Referenced by add_fgentity(), check_fg_walkable(), FGEntityList(), remove_node(), and test().
int FGEntityList::index [private] |
Player FGEntityList::player [private] |
Screen FGEntityList::screen [private] |
paul_info* FGEntityList::pinfo [private] |
Definition at line 65 of file fgentitylist.h.
Referenced by check_bg_collisions(), check_fg_walkable(), set_paul_info(), and test().