#include <Enemy.h>
Inheritance diagram for Enemy:

Public Member Functions | |
| Enemy (List *enemyInfo, int x, int y) | |
| ~Enemy () | |
| void | update () |
| void | die () |
| virtual Object * | copy () |
| void | activate () |
| void | disable () |
| void | load (List *enemyInfo, bool fromConstructor=true) |
Private Attributes | |
| List * | _deathScript |
| AItype | _brain |
| List * | _script |
| int | _brainWait |
| int | _scriptWait |
| int | _brainTime |
| int | _scriptTime |
| int | _brainBurst |
| int | _brainBurstTime |
| int | _pointValue |
| bool | _active |
Definition at line 10 of file Enemy.h.
|
||||||||||||||||
|
Definition at line 13 of file Enemy.cpp. References Object::_depth, Object::_type, ENEMY, and load(). Referenced by copy(). |
|
|
Definition at line 23 of file Enemy.cpp. References _deathScript, and _script. |
|
|
Definition at line 19 of file Enemy.h. References _active. |
|
|
Reimplemented from Person. Definition at line 29 of file Enemy.cpp. References _deathScript, Person::_primaryWeapon, _script, Weapon::copy(), and Enemy(). |
|
|
Schedules the calling object for deletion. Reimplemented from Person. Definition at line 184 of file Enemy.cpp. References _brain, _deathScript, Person::_invincible, _pointValue, _script, Person::_state, Person::_xVelocity, Person::_yVelocity, Level::addKill(), Level::addScore(), DEAD, Person::die(), Level::instance(), CommandManager::instance(), NONE, and CommandManager::startPlaying(). |
|
|
Definition at line 20 of file Enemy.h. References _active. |
|
||||||||||||
|
Reimplemented from Person. Definition at line 40 of file Enemy.cpp. References _brain, FACTORYBOSS, FOLLOWSHOOT, FOLLOWSHOOTAHEAD, JUMP, Person::load(), NONE, RUNAWAY, SITANDSHOOT, and STREETBOSS. Referenced by Enemy(). |
|
|
Reimplemented from Person. Definition at line 114 of file Enemy.cpp. References _active, _brain, _brainBurst, _brainBurstTime, _brainTime, _brainWait, _script, _scriptTime, _scriptWait, DOWN, FACTORYBOSS, FOLLOWSHOOT, FOLLOWSHOOTAHEAD, CommandManager::instance(), JUMP, NONE, RUNAWAY, SITANDSHOOT, CommandManager::startPlaying(), STREETBOSS, Person::touchingBelow(), and Person::update(). |
|
|
Definition at line 39 of file Enemy.h. Referenced by activate(), disable(), and update(). |
|
|
|
|
|
Definition at line 35 of file Enemy.h. Referenced by update(). |
|
|
Definition at line 36 of file Enemy.h. Referenced by update(). |
|
|
Definition at line 32 of file Enemy.h. Referenced by update(). |
|
|
Definition at line 29 of file Enemy.h. Referenced by update(). |
|
|
|
|
|
Definition at line 38 of file Enemy.h. Referenced by die(). |
|
|
|
|
|
Definition at line 33 of file Enemy.h. Referenced by update(). |
|
|
Definition at line 30 of file Enemy.h. Referenced by update(). |
1.4.6-NO