Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

AgentPolice Class Reference

#include <agentpolice.h>

Inheritance diagram for AgentPolice:

Agent List of all members.

Public Types

enum  police_state_t { POLICE_LOOK, POLICE_PURSUE, POLICE_LOST_PURSUE, POLICE_COLLABORATE }

Public Member Functions

 AgentPolice (Kernel &kernel, Environment &env, int x, int y)
virtual void processMessage ()
virtual void born ()
virtual void live ()
virtual void die ()
virtual void output (std::ostream &os) const

Protected Types

typedef std::vector< Destination
>::iterator 
m_path_it

Protected Member Functions

AgentSeeBadGuy (direction_t dir)
void Look ()
void Pursue ()
void Collaborate ()
void SetState (police_state_t state)
void NoticePursue (Agent *agent)
AgentFindBadGuy (bool test_backward=true)
void LostPursue ()
AgentIsNearBadGuy ()

Protected Attributes

police_state_t m_state
unsigned int m_sleep
unsigned int m_pursue
unsigned int m_lost_pursue
unsigned int m_index
std::vector< Destinationm_path

Private Member Functions

void followPath ()

Detailed Description

Specialized police agent
Author:
Victor STINNER

Definition at line 34 of file agentpolice.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 11 10:21:10 2006 for OpenCity by  doxygen 1.4.2