Skip to content

General Mobs Testing Plan

meganroxburgh edited this page Aug 29, 2023 · 15 revisions

To test each task of the General Mobs feature, a mix of Unit tests and other tests during Gameplay have been implemented.

Mob Base Entity Class

TEXT HERE

Xeno Grunt Designs and Animations

TEXT HERE

Mob Interactions with Towers/Projectiles

As the projectile shooting has not yet been incorporated with the mob entities, a print statement has been included which occurs whenever the ShootTask is initiated. This task prints to the terminal and is initiated in the start() function of the class.

  @Override
  public void start() {
    super.start();
    System.out.println(this.message);
  }

During gameplay, if the window is minimised and not on full-screen mode, these print statements can be seen whenever the player moves within range of the Xeno Mob Entity. In future work, the projectiles will be implemented with this class so that the mob shoots projectiles at a specified target. The expected print message is given below, where target is the Entity moving within range of the mob (in this case, the player).

this.message = "Shoot Task Activated " + target;

Mob Movement & Spawning

Clone this wiki locally