Enemy Class Reference

#include <Enemy.h>

Inheritance diagram for Enemy:

Person Object List of all members.

Public Member Functions

 Enemy (List *enemyInfo, int x, int y)
void update ()
void die ()
void load (List *enemyInfo)

Private Attributes

AItype _brain

Detailed Description

Definition at line 8 of file Enemy.h.


Constructor & Destructor Documentation

Enemy::Enemy List enemyInfo,
int  x,
int  y
 

Definition at line 11 of file Enemy.cpp.

References Object::_type, ENEMY, and load().


Member Function Documentation

void Enemy::die  )  [virtual]
 

Schedules the calling object for deletion.

Reimplemented from Person.

Definition at line 72 of file Enemy.cpp.

References Level::addScore(), Person::die(), and Level::instance().

void Enemy::load List enemyInfo  )  [virtual]
 

Reimplemented from Person.

Definition at line 19 of file Enemy.cpp.

References _brain, List::empty(), List::firstList(), List::firstString(), FOLLOWSHOOT, FOLLOWSHOOTAHEAD, JUMP, List::rest(), and SITANDSHOOT.

Referenced by Enemy().

void Enemy::update  )  [virtual]
 

Reimplemented from Person.

Definition at line 46 of file Enemy.cpp.

References _brain, FOLLOWSHOOT, FOLLOWSHOOTAHEAD, JUMP, SITANDSHOOT, and Person::update().


Member Data Documentation

AItype Enemy::_brain [private]
 

Definition at line 17 of file Enemy.h.

Referenced by load(), and update().


The documentation for this class was generated from the following files:
Generated on Sat Apr 22 15:05:21 2006 for ProjectX by  doxygen 1.4.6-NO