override public Action Available(Agent agent) { SeekTarget baseAction = (SeekTarget)base.Available(agent); if (baseAction != null) { return(new Consume(baseAction)); } return(null); }
public Consume(SeekTarget seek) : base(seek.MoveCoords, seek.Direction, seek.Target) { this.Consuming = this.TargetCoords == this.MoveCoords; }
public Kamikaze(SeekTarget seek) : base(seek.MoveCoords, seek.Direction, seek.Target) { this.Target = (ElectricSlime)seek.Target; }