EventPoint Class Reference

#include <EventPoint.h>

Inheritance diagram for EventPoint:

Object List of all members.

Public Member Functions

 EventPoint (List *info, int x, int y)
 ~EventPoint ()
void draw ()
void update ()
void collide (Object *o)
void findAndReplace (std::string find, std::string replace)
void load (List *info)

Private Attributes

bool _hasSprite
bool _collideEvent
bool _active
List_collideList
Sprite_sprite

Detailed Description

Definition at line 9 of file EventPoint.h.


Constructor & Destructor Documentation

EventPoint::EventPoint List info,
int  x,
int  y
 

Definition at line 10 of file EventPoint.cpp.

References Object::_collidable, Object::_type, EVENTPOINT, and load().

EventPoint::~EventPoint  ) 
 

Definition at line 23 of file EventPoint.cpp.

References _collideList.


Member Function Documentation

void EventPoint::collide Object o  )  [virtual]
 

Reimplemented from Object.

Definition at line 58 of file EventPoint.cpp.

References _active, _collideEvent, _collideList, Object::getType(), CommandManager::instance(), PLAYER, and CommandManager::startPlaying().

void EventPoint::draw  )  [virtual]
 

Implements Object.

Definition at line 73 of file EventPoint.cpp.

References _active, Object::_box, _hasSprite, _sprite, and Sprite::draw().

void EventPoint::findAndReplace std::string  find,
std::string  replace
 

Definition at line 66 of file EventPoint.cpp.

References _collideEvent, _collideList, and List::findAndReplace().

void EventPoint::load List info  )  [virtual]
 

Reimplemented from Object.

Definition at line 28 of file EventPoint.cpp.

References _collideList, List::empty(), List::firstList(), List::firstString(), Parser::parse(), and List::rest().

Referenced by EventPoint().

void EventPoint::update  )  [inline, virtual]
 

Reimplemented from Object.

Definition at line 15 of file EventPoint.h.


Member Data Documentation

bool EventPoint::_active [private]
 

Definition at line 23 of file EventPoint.h.

Referenced by collide(), and draw().

bool EventPoint::_collideEvent [private]
 

Definition at line 22 of file EventPoint.h.

Referenced by collide(), and findAndReplace().

List* EventPoint::_collideList [private]
 

Definition at line 25 of file EventPoint.h.

Referenced by collide(), findAndReplace(), load(), and ~EventPoint().

bool EventPoint::_hasSprite [private]
 

Definition at line 21 of file EventPoint.h.

Referenced by draw().

Sprite* EventPoint::_sprite [private]
 

Definition at line 27 of file EventPoint.h.

Referenced by draw().


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