rl.leviathan.game
Class LeviathanElementVisibility
java.lang.Object
rl.leviathan.game.LeviathanElementVisibility
public class LeviathanElementVisibility
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LeviathanElementVisibility
public LeviathanElementVisibility(LeviathanGame game)
addListener
public void addListener(LeviathanElementVisibilityListener l)
removeListener
public void removeListener(LeviathanElementVisibilityListener l)
setMode
public void setMode(LeviathanElementVisibility.Mode mode)
elementIsLocated
public boolean elementIsLocated(GameElement ge)
getLocationForGameElement
public Location getLocationForGameElement(GameElement ge)
isElementOffboard
public boolean isElementOffboard(GameElement ge)
isElementTransported
public boolean isElementTransported(GameElement ge)
setLocation
public void setLocation(GameElement element,
Location location)
addGameElement
public void addGameElement(GameElement ge,
Player p)
removeGameElement
public void removeGameElement(GameElement ge)
sendAllElementLocations
public void sendAllElementLocations()
getElementsInLocation
public java.util.Vector<GameElement> getElementsInLocation(int turn,
Location location)
getAffiliation
public Affiliation getAffiliation(GameElement source,
GameElement target)
getAffiliation
public Affiliation getAffiliation(Player owner,
Player p)
getLocations
public java.util.Vector<Location> getLocations()
getLocations
public java.util.Vector<Location> getLocations(java.util.Vector<GameElement> elements)
offsetAllLocations
public void offsetAllLocations(int xOffset,
int yOffset)
getVisibleElements
public java.util.Vector<GameElement> getVisibleElements(GameElement element)
getPlayerForElement
public Player getPlayerForElement(GameElement element)