#include <agentpolice.h>
Inheritance diagram for AgentPolice:

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 | |
| Agent * | SeeBadGuy (direction_t dir) |
| void | Look () |
| void | Pursue () |
| void | Collaborate () |
| void | SetState (police_state_t state) |
| void | NoticePursue (Agent *agent) |
| Agent * | FindBadGuy (bool test_backward=true) |
| void | LostPursue () |
| Agent * | IsNearBadGuy () |
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< Destination > | m_path |
Private Member Functions | |
| void | followPath () |
Definition at line 34 of file agentpolice.h.
1.4.2