Esempio n. 1
0
        override public Action Available(Agent agent)
        {
            SeekTarget baseAction = (SeekTarget)base.Available(agent);

            if (baseAction != null)
            {
                return(new Consume(baseAction));
            }

            return(null);
        }
Esempio n. 2
0
 public Consume(SeekTarget seek) : base(seek.MoveCoords, seek.Direction, seek.Target)
 {
     this.Consuming = this.TargetCoords == this.MoveCoords;
 }
Esempio n. 3
0
 public Kamikaze(SeekTarget seek)
     : base(seek.MoveCoords, seek.Direction, seek.Target)
 {
     this.Target = (ElectricSlime)seek.Target;
 }