java.lang.Object
it.polimi.ingsw.server.controller.god.God
it.polimi.ingsw.server.controller.god.Apollo

public class Apollo
extends God
Represents the card of the God Apollo. Allows to follow the instructions and to apply the effect of this specific God.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.String description  

    Fields inherited from class it.polimi.ingsw.server.controller.god.God

    godController
  • Constructor Summary

    Constructors 
    Constructor Description
    Apollo​(GodController godController)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDescription()  
    GodController getGodController()  
    void move​(Worker worker)
    The difference from the super class method is that here the worker can also move into another enemy worker's position, swapping the position of the two workers.
    WorkerMoveMap updateMoveMap​(Worker worker)
    Updates the worker's MoveMap, taking into account that Apollo can also move into an enemy neighbor position.

    Methods inherited from class it.polimi.ingsw.server.controller.god.God

    build, evolveTurn, toString, updateBuildMap, win

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait