Repository navigation
IAgent
The Agent interface is used to give you information about an agent.
Team.Type GetTeam()
Returns the team that the agent belongs to.
AnimationController GetAnimationController()
Returns the animation controller class who's use is prohibited
int GetHealth()
Returns the current amount of health the agent has.
int GetMaxHealth()
Returns the max amount of health the agent has.
int Damage(int damage, Vector3 damagerLocation)
This method is used in the Bullet class and it's use is prohibited.
Transform GetFlagHolder()
Returns the Transform of the flag holder object in the spine2 object of the soldier which will be used as the parent of the flag once grabbed.
void DropFlag()
Drops the flag for the Agent. This can only be used if the agent belongs to you.
void GrabFlag(IGrabable flag)
Grabs the specified flag.
bool HasFlag()
Returns whether or not this agent has a flag.
'Transform GetFlag()'
Returns the Flag trasnform, if it exists, otherwise null will be returned.
Modifying the flag's postion or other similar attributes is not allowed
'bool IsDead()'
Returns true if this agent's health is less than or equal to 0.
Version 1.0