Tower defense (OOP4Fun Book)

TLA details

Name
Task: Movement of enemies respecting delay
Description

The act() method of the Enemy class will be updated so that the Enemy moves only after the specified number of moveDelay calls of the method. Additionally, a new attribute called nextMoveCounter of type int will be introduced and initialized to 0. The act() method will be modified to call this.move(1) only when nextMoveCounter reaches 0. After the movement, nextMoveCounter will be reset to the value of moveDelay. If the Enemy instance cannot move because nextMoveCounter has not yet reached 0, nextMoveCounter will be decreased by 1.

Learning type
Practice
Description Learning through practice enables the learner to adapt their actions to the task goal, and use the feedback to improve their next action. Feedback may come from self-reflection, from peers, from the teacher, or from the activity itself.
Example usage Practising exercises, labs and virtual labs, field trips, simulations, using models, doing practice-based projects,…
Workload
30
Activity delivery
Online
On-site
Hybrid
Synchronous
Asynchronous
Teacher-present
Teacher not present
Collaboration
Work in groups
Feedback

Assessment