FastEcslent::Tactic Class Reference

#include <command.h>

Inheritance diagram for FastEcslent::Tactic:

FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Command FastEcslent::Flock FastEcslent::Flock FastEcslent::Flock FastEcslent::Flock FastEcslent::Flock

List of all members.

Public Member Functions

 Tactic (Group *grp, CommandType ct, GroupTarget *trgt)
int mostMassive (bool)
int closestToTarget (bool, Ogre::Vector3 tpos)
void changeLeadership (LeadershipType selector)
 Tactic (Group *grp, CommandType ct, GroupTarget *trgt)
int mostMassive (bool)
int closestToTarget (bool, Ogre::Vector3 tpos)
void changeLeadership (LeadershipType selector)
 Tactic (Group *grp, CommandType ct, GroupTarget *trgt)
int mostMassive (bool)
int closestToTarget (bool, Ogre::Vector3 tpos)
void changeLeadership (LeadershipType selector)
 Tactic (Group *grp, CommandType ct, GroupTarget *trgt)
int mostMassive (bool)
int closestToTarget (bool, Ogre::Vector3 tpos)
void changeLeadership (LeadershipType selector)
 Tactic (Group *grp, CommandType ct, GroupTarget *trgt)
int mostMassive (bool)
int closestToTarget (bool, Ogre::Vector3 tpos)
void changeLeadership (LeadershipType selector)

Public Attributes

GroupTargettarget
Groupgroup
GroupTargettarget
Groupgroup
GroupTargettarget
Groupgroup
GroupTargettarget
Groupgroup
GroupTargettarget
Groupgroup


Detailed Description

Definition at line 112 of file command.h.


Constructor & Destructor Documentation

FastEcslent::Tactic::Tactic ( Group grp,
CommandType  ct,
GroupTarget trgt 
) [inline]

Definition at line 116 of file command.h.

References group, and target.

FastEcslent::Tactic::Tactic ( Group grp,
CommandType  ct,
GroupTarget trgt 
) [inline]

Definition at line 82 of file command.h.

References group, and target.

FastEcslent::Tactic::Tactic ( Group grp,
CommandType  ct,
GroupTarget trgt 
) [inline]

Definition at line 82 of file command.h.

References group, and target.

FastEcslent::Tactic::Tactic ( Group grp,
CommandType  ct,
GroupTarget trgt 
) [inline]

Definition at line 82 of file command.h.

References group, and target.

FastEcslent::Tactic::Tactic ( Group grp,
CommandType  ct,
GroupTarget trgt 
) [inline]

Definition at line 82 of file command.h.

References group, and target.


Member Function Documentation

int FastEcslent::Tactic::mostMassive ( bool  massest  ) 

Reimplemented in FastEcslent::Flock, FastEcslent::Flock, FastEcslent::Flock, FastEcslent::Flock, and FastEcslent::Flock.

Definition at line 275 of file command.cpp.

References group, FastEcslent::Entity::mass, FastEcslent::Group::members, and FastEcslent::Group::nEntitiesInGroup.

Referenced by changeLeadership().

int FastEcslent::Tactic::closestToTarget ( bool  closest,
Ogre::Vector3  tpos 
)

Definition at line 301 of file command.cpp.

References group, FastEcslent::Group::members, FastEcslent::Group::nEntitiesInGroup, and FastEcslent::Entity::pos.

Referenced by changeLeadership().

void FastEcslent::Tactic::changeLeadership ( LeadershipType  selector  ) 

Definition at line 240 of file command.cpp.

References closestToTarget(), FastEcslent::Target::entity, group, FastEcslent::InvalidLocation(), FastEcslent::Group::leaderIndex, FastEcslent::Target::location, mostMassive(), FastEcslent::Entity::pos, randInt(), FastEcslent::GroupTarget::target, and target.

int FastEcslent::Tactic::mostMassive ( bool   ) 

Reimplemented in FastEcslent::Flock, FastEcslent::Flock, FastEcslent::Flock, FastEcslent::Flock, and FastEcslent::Flock.

int FastEcslent::Tactic::closestToTarget ( bool  ,
Ogre::Vector3  tpos 
)

void FastEcslent::Tactic::changeLeadership ( LeadershipType  selector  ) 

int FastEcslent::Tactic::mostMassive ( bool   ) 

Reimplemented in FastEcslent::Flock, FastEcslent::Flock, FastEcslent::Flock, FastEcslent::Flock, and FastEcslent::Flock.

int FastEcslent::Tactic::closestToTarget ( bool  ,
Ogre::Vector3  tpos 
)

void FastEcslent::Tactic::changeLeadership ( LeadershipType  selector  ) 

int FastEcslent::Tactic::mostMassive ( bool   ) 

Reimplemented in FastEcslent::Flock, FastEcslent::Flock, FastEcslent::Flock, FastEcslent::Flock, and FastEcslent::Flock.

int FastEcslent::Tactic::closestToTarget ( bool  ,
Ogre::Vector3  tpos 
)

void FastEcslent::Tactic::changeLeadership ( LeadershipType  selector  ) 

int FastEcslent::Tactic::mostMassive ( bool   ) 

Reimplemented in FastEcslent::Flock, FastEcslent::Flock, FastEcslent::Flock, FastEcslent::Flock, and FastEcslent::Flock.

int FastEcslent::Tactic::closestToTarget ( bool  ,
Ogre::Vector3  tpos 
)

void FastEcslent::Tactic::changeLeadership ( LeadershipType  selector  ) 


Member Data Documentation

GroupTarget* FastEcslent::Tactic::target

Definition at line 114 of file command.h.

Referenced by changeLeadership(), and Tactic().

Group* FastEcslent::Tactic::group

Definition at line 115 of file command.h.

Referenced by changeLeadership(), closestToTarget(), FastEcslent::Flock::init(), mostMassive(), Tactic(), and FastEcslent::Flock::tick().

GroupTarget* FastEcslent::Tactic::target

Definition at line 80 of file command.h.

Group* FastEcslent::Tactic::group

Definition at line 81 of file command.h.

GroupTarget* FastEcslent::Tactic::target

Definition at line 80 of file command.h.

Group* FastEcslent::Tactic::group

Definition at line 81 of file command.h.

GroupTarget* FastEcslent::Tactic::target

Definition at line 80 of file command.h.

Group* FastEcslent::Tactic::group

Definition at line 81 of file command.h.

GroupTarget* FastEcslent::Tactic::target

Definition at line 80 of file command.h.

Group* FastEcslent::Tactic::group

Definition at line 81 of file command.h.


The documentation for this class was generated from the following files:
Generated on Fri Dec 13 14:54:20 2013 for FastECSLent by  doxygen 1.5.4