Click or drag to resize

Agent Class

Base class for Agents, including Clutter and Living agents
Inheritance Hierarchy

Namespace:  Mannequin.Bindings
Assembly:  Collapse (in Collapse.exe) Version: 0.4.6.1290 (0.4.6.1290)
Syntax
C#
public class Agent : Killable

The Agent type exposes the following members.

Constructors
  NameDescription
Public methodAgent
Initializes a new instance of the Agent class
Top
Properties
  NameDescription
Public propertyCurrentTile
Get the Tile this Agent is standing on.
Public propertyFaction
Get or set this Agent's Faction.
Public propertyGridPosition
The Agent's position on the Grid.
Public propertyHealth
The health (hit points) this Agent has
Public propertyIsBullet
Is this a Bullet?
Public propertyIsClutter
Is this Clutter?
Public propertyIsLiving
Is this a living object (Living)?
Public propertyMaxHealth
The maximum health (hit points) this Agent can have
Public propertyName
The name of this Agent
Public propertyPosition
The Point where this Agent lies
Public propertyVisible
Whether this Agent is visible or not.
Top
Methods
  NameDescription
Public methodCode exampleDamage
Have attacker "damage" this Agent. Note that this will fire AgentDamage.
Public methodKill
Kill this Agent, removing it from its respective Scene. Note that this will fire the AgentDeath.
Top
See Also