public Unit(Point location, EntityOwner owner, UnitType unitType, int health) { Location = location; Owner = owner; Type = unitType; Health = health; }
public void DefaultPostAdvance(ICommandElement element) { if (element.StateEvent != ActionStateEvents.None) { Post(Target?.Target ?? EntityOwner, EntityOwner.GetPosition(), EntityOwner.GetRotation(), element.StateEvent); } Advance(); }
public override void StartCommand() { base.StartCommand(); _current = 0; LastStateEvent = null; CurrentData = -1; Target = EntityOwner.Find <CommandTarget>(); if (Current != null) { Current.Start(EntityOwner); } }