Skip to content
Samuel Arminana edited this page Mar 20, 2017 · 5 revisions

IAgent

The Agent interface is used to give you information about an agent.

Get Team

Team.Type GetTeam()

Returns the team that the agent belongs to.

Get Animation Controller (Prohibited)

AnimationController GetAnimationController()

Returns the animation controller class who's use is prohibited

Get Health

int GetHealth()

Returns the current amount of health the agent has.

Get Max Health

int GetMaxHealth()

Returns the max amount of health the agent has.

Damage (Prohibited)

int Damage(int damage, Vector3 damagerLocation)

This method is used in the Bullet class and it's use is prohibited.

Get Flag Holder

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.

Drop Flag

void DropFlag()

Drops the flag for the Agent. This can only be used if the agent belongs to you.

Grab Flag

void GrabFlag(IGrabable flag)

Grabs the specified flag.

Has Flag

bool HasFlag()

Returns whether or not this agent has a flag.

Get 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

Is Dead

'bool IsDead()'

Returns true if this agent's health is less than or equal to 0.

Clone this wiki locally