Package model
Class ExitRegion
java.lang.Object
model.ExitRegion
- All Implemented Interfaces:
Region
public class ExitRegion extends java.lang.Object implements Region
***** UNDER CONSTRUCTION ******
ExitRegion is a type of region that a troop appears at if it went into a EnterRegion.
-
Constructor Summary
Constructors Constructor Description ExitRegion() -
Method Summary
Modifier and Type Method Description voidcreate(Region r)PositiongetNext()RegiongetNextRegion()PositiongetPosition()RegiongetPrevRegion()voidlandOn(Troop t)voidonClick()voidrestoreOldRegion()voidsetNextRegion(Region r)voidsetPosition(int row, int col)voidsetPrevRegion(Region r)voidsetUp()
-
Constructor Details
-
ExitRegion
public ExitRegion()
-
-
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
-
setPrevRegion
-
getPrevRegion
-
restoreOldRegion
public void restoreOldRegion()
-