Tower defense (OOP4Fun Book)

TLA:n tiedot

Nimi
Task 7.7
Kuvaus

Change of manually controlled tower from centralized place.
Teacher should add method changeControlledInstance to change manually controlled tower. Parameter of the method will be the tower user wants to select. First, it should be checked whether the controlled instance is currently selected. If it is, nothing should change, but if the passed instance is different than we should change currently controlled instance (reference to the currently controlled instance should be changed). Test out the function manually and observe that the icons of the towers don’t change. Point out that only changing the reference of the controlled instance,wouldn’t change the control and that it should be done manually. Add the code which releases the currently controlled instance and, after updating the reference, add code which sets manual control of newly controlled instance. Highlight the need for checking null references which could appear if there is no currently controlled instance and if there is no newly controlled instance (when the parameter is null).

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ä
20
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