Tower defense (OOP4Fun Book)

Détails de l'AEA

Nom
Task 6.7
Description

Refactoring code related to entity movement.
Code refactoring related to entity movement was performed. Previously identified attributes moveDelay and nextMoveCounter from Bullet and Enemy subclasses are moved to the ancestor class MovingActor. Parametric constructor to initialize these attributes is defined in MovingActor class. This constructor with proper parameters was invoked from the Bullet and Enemy subclasses using the super keyword. The code responsible for movement in act() method of subclasses Bullet and Enemy was moved to act() method of MovingActor class, while the rest of the implementation remains unchanged in the subclasses. Finally, parent version of method act() is invoked as first line of method act() in subclasses Bullet and Enemy.It should be discussed that subclasses can incorporate additional properties not available in the parent class (i.e., different implementation of act() method).

Type d'apprentissage
Production
Description L'apprentissage par la production est la manière dont l'enseignant motive l'apprenant à consolider ce qu'il a appris en articulant sa compréhension conceptuelle actuelle et la manière dont il l'a utilisée en pratique.
Example usage Dissertations, rapports, conceptions, artefacts, présentations, e-portfolios, blogs,…
Charge de travail
30
Prestation de l'activité
En ligne
Sur place
Hybride
Synchrone
Asynchrone
Enseignant présent
Enseignant non présent
Collaboration
Travail en groupes
Rétroaction
Fournisseur de rétroaction
Enseignant
Automatisé
Pair
Autre

Niveau d'utilisation de l'IA
-

Évaluation