org.deken.game.map.wrapping
Class AllMapWrapping

java.lang.Object
  extended by org.deken.game.map.wrapping.MapWrapping
      extended by 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
           
 
Fields inherited from class org.deken.game.map.wrapping.MapWrapping
xHigh, xLow, yHigh, yLow
 
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.
 
Method Summary
 Sprite doWrapping(Sprite sprite)
           
 int getxHigh()
           
 int getxLow()
           
 int getyHigh()
           
 int getyLow()
           
 void setxHigh(int xHigh)
           
 void setxLow(int xLow)
           
 void setyHigh(int yHigh)
           
 void setyLow(int yLow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xMove

protected int xMove

yMove

protected int yMove
Constructor Detail

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 -
Method Detail

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