Tower defense (OOP4Fun Book)

TLA:n tiedot

Nimi
Task 6.7
Kuvaus

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).

Oppimistyypi
Tuotanto
Kuvaus Oppiminen tuotannon kautta on tapa, jolla opettaja motivoi oppijaa vahvistamaan oppimaansa ilmaisemalla nykyistä käsitteellistä ymmärrystään ja miten hän on käyttänyt sitä käytännössä.
Example usage Essaihtien, raporttien, suunnitelmien, artefaktien, esitysten, sähköisten portfoliot, blogien,…
Työmäärä
30
Aktiviteetin toimitus
Verkkotyöskentely
Paikan päällä
Hybrid
Synnkroninen
Asynkroninen
Opettaja läsnä
Opettaja ei läsnä
Yhteistyö
Työskentely ryhmissä
Palaute
Palauteen antaja
Opettaja
Automaattinen
Vertais
Muu

AI usage level
-

Arviointi