Package model

Class GoalRegion

java.lang.Object
model.GoalRegion
All Implemented Interfaces:
Region

public class GoalRegion
extends java.lang.Object
implements Region
GoalRegion represents the last region on a path.
  • Constructor Summary

    Constructors 
    Constructor Description
    GoalRegion()  
  • Method Summary

    Modifier and Type Method Description
    Position getNext()  
    Region getNextRegion()  
    Position getPosition()  
    void landOn​(Troop t)
    landOn() - When this class' landOn-method is invoked a troop has reached a goal.
    void onClick()  
    void setNextRegion​(Region r)  
    void setPosition​(int row, int col)  
    void setUp()  

    Methods inherited from class java.lang.Object

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