BioinstSim
2
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
homingbehavior.h
1
#ifndef HOMINGBEHAVIOR_H_
2
#define HOMINGBEHAVIOR_H_
3
4
/******************************************************************************/
5
/******************************************************************************/
6
7
#include "behavior.h"
8
9
/******************************************************************************/
10
/******************************************************************************/
11
12
class
CHomingBehavior
:
public
CBehavior
13
{
14
public
:
15
CHomingBehavior
(
double
f_sensory_radius,
CAgent
* pc_agent_to_follow);
16
17
virtual
void
SimulationStep();
18
virtual
bool
TakeControl();
19
virtual
void
Action();
20
21
protected
:
22
double
m_fSensoryRadius;
23
TVector2d
m_tCenterOfMass;
24
CAgent
* m_pcAgentToFollow;
25
};
26
27
28
/******************************************************************************/
29
/******************************************************************************/
30
31
#endif
Generated on Wed Jun 19 2013 18:02:33 for BioinstSim by
1.8.3.1