public CharacterRenderer(Character character, Camera camera, Texture2D texture, SpriteFont font)
     : base(character, camera, texture, font, new Point(64, 64), 50, new Point(32, 55), 2f)
 {
     this.character = character;
     animation = Animation.Idle;
     direction = Direction.South;
     frameCount = 1;
     animationRow = 8;
 }
 public AggressiveAi(Character host, float range) : base(host) 
 {
     this.range = range;
     attacker = (IAttacker)host;
 }
 public WalkingAi(Character host, float range) : base(host) 
 {
     this.range = range;
     Random = new Random();
     delay = TimeSpan.Zero;
 }
Example #4
0
 public Ai(Character host)
 {
     Host = host;
     startPoint = null;
     destination = null;
 }