Package model
Class EnterRegion
java.lang.Object
model.EnterRegion
- All Implemented Interfaces:
Region
public class EnterRegion extends java.lang.Object implements Region
***** UNDER CONSTRUCTION *****
EnterRegion is a region type that holds its own position and the position as well the corresponding region of
its next region, i.e. the region to send incoming troops to. This region is supposed to be used as a teleporter.
-
Constructor Summary
Constructors Constructor Description EnterRegion()
-
Method Summary
Modifier and Type Method Description void
create(Region r)
Position
getNext()
Region
getNextRegion()
Position
getPosition()
Region
getPrevRegion()
void
landOn(Troop t)
void
onClick()
void
restoreOldRegion()
void
setExit(ExitRegion r)
void
setNextRegion(Region r)
void
setPosition(int row, int col)
void
setPrevRegion(Region r)
void
setUp()
-
Constructor Details
-
EnterRegion
public EnterRegion()
-
-
Method Details
-
getNext
-
landOn
-
getNextRegion
- Specified by:
getNextRegion
in interfaceRegion
-
setNextRegion
- Specified by:
setNextRegion
in interfaceRegion
-
setPosition
public void setPosition(int row, int col)- Specified by:
setPosition
in interfaceRegion
-
getPosition
- Specified by:
getPosition
in interfaceRegion
-
setUp
public void setUp() -
onClick
public void onClick() -
create
-
setExit
-
setPrevRegion
-
getPrevRegion
-
restoreOldRegion
public void restoreOldRegion()
-