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