OverSim
realWorldRoaming Class Reference

realWorldRoaming class More...

#include <realWorldRoaming.h>

Inheritance diagram for realWorldRoaming:
MovementGenerator

Public Member Functions

 realWorldRoaming (double areaDimension, double speed, NeighborMap *Neighbors, GlobalCoordinator *coordinator, CollisionList *CollisionRect)
virtual ~realWorldRoaming ()
virtual void move ()
 Defined in subclasses only.
void setPosition (Vector2D position)
- Public Member Functions inherited from MovementGenerator
 MovementGenerator (double areaDimension, double speed, NeighborMap *Neighbors, GlobalCoordinator *coordinator, CollisionList *CollisionRect)
 Initialize the generator with the movement area dimensions and node movement speed.
virtual ~MovementGenerator ()
Vector2D getPosition ()
 Get the nodes current position.

Additional Inherited Members

- Protected Member Functions inherited from MovementGenerator
bool testBounds ()
 Prevents the node from leaving the defined area and checks for obstacle hits.
void flock ()
 Simple flocking algorithm.
void generateScenery (unsigned int seed)
 Generates scenery objects.
- Protected Attributes inherited from MovementGenerator
double areaDimension
double speed
Vector2D direction
Vector2D position
Vector2D target
NeighborMapNeighbors
NeighborMap::iterator itNeighbors
GlobalCoordinatorcoordinator
CollisionListCollisionRect

Detailed Description

realWorldRoaming class

Definition at line 31 of file realWorldRoaming.h.

Constructor & Destructor Documentation

realWorldRoaming::realWorldRoaming ( double  areaDimension,
double  speed,
NeighborMap Neighbors,
GlobalCoordinator coordinator,
CollisionList CollisionRect 
)

Definition at line 26 of file realWorldRoaming.cc.

virtual realWorldRoaming::~realWorldRoaming ( )
inlinevirtual

Definition at line 35 of file realWorldRoaming.h.

{}

Member Function Documentation

virtual void realWorldRoaming::move ( )
inlinevirtual

Defined in subclasses only.

Implements MovementGenerator.

Definition at line 36 of file realWorldRoaming.h.

{}
void realWorldRoaming::setPosition ( Vector2D  position)

Definition at line 30 of file realWorldRoaming.cc.

{
this->position = position;
}

The documentation for this class was generated from the following files: