java.lang.Object
it.polimi.ingsw.server.controller.god.God
Direct Known Subclasses:
Apollo, Artemis, Athena, Atlas, Charon, Demeter, Hephaestus, Hera, Hestia, Minotaur, Pan, Prometheus, Triton, Zeus

public abstract class God
extends java.lang.Object
This abstract class allows to see the Gods' main methods and their default implementation.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected GodController godController  
  • Constructor Summary

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

    Modifier and Type Method Description
    void build​(Worker worker)
    Lets the worker build a block or a dome.
    void evolveTurn​(Worker worker)
    Default evolution of the turn: move, checks if win condition is met, builds.
    abstract java.lang.String getDescription()  
    GodController getGodController()  
    void move​(Worker worker)
    Default rules to move the worker during a turn of the game.
    java.lang.String toString()  
    WorkerBuildMap updateBuildMap​(Worker worker)
    Sets the permissions to build of the selected worker.
    WorkerMoveMap updateMoveMap​(Worker worker)
    Sets the permissions to move of the selected worker.
    void win​(Worker worker)
    Checks if default win conditions are met.

    Methods inherited from class java.lang.Object

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