Tower defense (OOP4Fun Book)

TLA details

Name
Task 4.1
Description

Teacher should discuss Enemy's act() method. Teacher explains how to use local variables in the code, for example to use “rotation” variable. Teacher should describe difference between this.rotation and rotation. Teacher should describe getOneIntersectingObject(_cls_) method behavior. It is used and instance is stored in proper local variable (class casting is required). If there is no intersection object it returns null value. Based on the performed boolean evaluation, an appropriate acting is performed (i.e., rotating or turning). The results are discussed by the teacher and peers.

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
15
Activity delivery
Online
On-site
Hybrid
Synchronous
Asynchronous
Teacher-present
Teacher not present
Collaboration
Work in groups
Feedback

Assessment