#include <fgitem.h>
Public Member Functions | |
FGItem () | |
~FGItem () | |
void | set_nextlevel (int first_prop) |
void | set_needkey (int first_prop) |
void | set_pointchange (int first_prop) |
void | set_scorechange (int first_prop) |
void | set_damage (int first_prop) |
void | set_teleporterinfo (int first_prop, int second_prop) |
void | set_generatorinfo (int first_prop, int second_prop) |
void | set_numframes (int first_prop) |
void | set_rate_div (int rate) |
void | update () |
int | activate () |
Private Attributes | |
int | x |
int | y |
int | next_level |
int | num_frames |
int | direction |
int | need_key |
int | point_change |
int | score_change |
int | monster_index |
int | hitpoints |
int | damage |
int | rate_div |
int | rate_count |
Definition at line 45 of file fgitem.h.
FGItem::FGItem | ( | ) |
Definition at line 31 of file fgitem.cpp.
References FGEntity::animate, damage, direction, hitpoints, monster_index, need_key, next_level, num_frames, point_change, rate_count, rate_div, score_change, FGEntity::stationary, FGEntity::walkable, x, and y.
FGItem::~FGItem | ( | ) |
Definition at line 50 of file fgitem.cpp.
void FGItem::set_nextlevel | ( | int | first_prop | ) |
void FGItem::set_needkey | ( | int | first_prop | ) |
Definition at line 57 of file fgitem.cpp.
References need_key, and set_rate_div().
Referenced by main().
void FGItem::set_pointchange | ( | int | first_prop | ) |
void FGItem::set_scorechange | ( | int | first_prop | ) |
void FGItem::set_damage | ( | int | first_prop | ) |
void FGItem::set_teleporterinfo | ( | int | first_prop, | |
int | second_prop | |||
) |
Definition at line 74 of file fgitem.cpp.
References FGEntity::animate, direction, set_rate_div(), x, and y.
Referenced by main().
void FGItem::set_generatorinfo | ( | int | first_prop, | |
int | second_prop | |||
) |
Definition at line 82 of file fgitem.cpp.
References hitpoints, and monster_index.
Referenced by main().
void FGItem::set_numframes | ( | int | first_prop | ) |
void FGItem::set_rate_div | ( | int | rate | ) |
Definition at line 91 of file fgitem.cpp.
References rate_div.
Referenced by set_needkey(), and set_teleporterinfo().
void FGItem::update | ( | ) | [virtual] |
Implements FGEntity.
Definition at line 158 of file fgitem.cpp.
References FGEntity::box, FGEntity::current_box, FGITEM_DEBUG, FGEntity::onscreen, FGEntity::pinfo, paul_info::tile_ax_in_win, paul_info::tile_ay_in_win, paul_info::tile_start_x, paul_info::tile_start_y, paul_info::tile_stop_x, paul_info::tile_stop_y, and paul_info::tilesize.
int FGItem::activate | ( | ) | [virtual] |
Reimplemented from FGEntity.
Definition at line 95 of file fgitem.cpp.
References FGEntity::animate, FGEntity::current_frame, damage, direction, DOOR_BEGIN, DOOR_END, EXIT_BEGIN, EXIT_END, GENERATOR_BEGIN, GENERATOR_END, FGEntity::get_index(), GOLD_BEGIN, GOLD_END, paul_info::hitpoints, KEY_BEGIN, KEY_END, paul_info::keys, need_key, num_frames, FGEntity::pinfo, point_change, POWERUP_BEGIN, POWERUP_END, rate_count, rate_div, paul_info::score, score_change, SCROLL_BEGIN, SCROLL_END, TELEPORTER_BEGIN, TELEPORTER_END, TRAPS_BEGIN, TRAPS_END, and FGEntity::walkable.
int FGItem::x [private] |
int FGItem::y [private] |
int FGItem::next_level [private] |
int FGItem::num_frames [private] |
int FGItem::direction [private] |
Reimplemented from FGEntity.
Definition at line 50 of file fgitem.h.
Referenced by activate(), FGItem(), and set_teleporterinfo().
int FGItem::need_key [private] |
int FGItem::point_change [private] |
int FGItem::score_change [private] |
int FGItem::monster_index [private] |
int FGItem::hitpoints [private] |
int FGItem::damage [private] |
int FGItem::rate_div [private] |
int FGItem::rate_count [private] |