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 voidcreate(Region r)PositiongetNext()RegiongetNextRegion()PositiongetPosition()RegiongetPrevRegion()voidlandOn(Troop t)voidonClick()voidrestoreOldRegion()voidsetExit(ExitRegion r)voidsetNextRegion(Region r)voidsetPosition(int row, int col)voidsetPrevRegion(Region r)voidsetUp()
-
Constructor Details
-
EnterRegion
public EnterRegion()
-
-
Method Details
-
getNext
-
landOn
-
getNextRegion
- Specified by:
getNextRegionin interfaceRegion
-
setNextRegion
- Specified by:
setNextRegionin interfaceRegion
-
setPosition
public void setPosition(int row, int col)- Specified by:
setPositionin interfaceRegion
-
getPosition
- Specified by:
getPositionin interfaceRegion
-
setUp
public void setUp() -
onClick
public void onClick() -
create
-
setExit
-
setPrevRegion
-
getPrevRegion
-
restoreOldRegion
public void restoreOldRegion()
-