org.deken.game.map.wrapping
Class AllMapWrapping
java.lang.Object
org.deken.game.map.wrapping.MapWrapping
org.deken.game.map.wrapping.AllMapWrapping
public class AllMapWrapping
- extends MapWrapping
Title: MapWrapping
Description: This allows Sprites to "wrap" from one side of the map to the
other side of the map.
Copyright: Copyright (c) Mar 17, 2012
- Version:
- 1.0
- Author:
- Gary Deken
Field Summary |
protected int |
xMove
|
protected int |
yMove
|
Constructor Summary |
AllMapWrapping(int xLow,
int xHigh,
int yLow,
int yHigh)
The X and Y's low and high defines the edges of the map, where a sprite
will wrap to the other side. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xMove
protected int xMove
yMove
protected int yMove
AllMapWrapping
public AllMapWrapping(int xLow,
int xHigh,
int yLow,
int yHigh)
- The X and Y's low and high defines the edges of the map, where a sprite
will wrap to the other side.
- Parameters:
xLow
- xHigh
- yLow
- yHigh
-
getxHigh
public int getxHigh()
getxLow
public int getxLow()
getyHigh
public int getyHigh()
getyLow
public int getyLow()
setxHigh
public void setxHigh(int xHigh)
setxLow
public void setxLow(int xLow)
setyHigh
public void setyHigh(int yHigh)
setyLow
public void setyLow(int yLow)
doWrapping
public Sprite doWrapping(Sprite sprite)
- Specified by:
doWrapping
in class MapWrapping