rl.leviathan.game
Class LeviathanElementVisibility

java.lang.Object
  extended by rl.leviathan.game.LeviathanElementVisibility

public class LeviathanElementVisibility
extends java.lang.Object


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

Constructor Detail

LeviathanElementVisibility

public LeviathanElementVisibility(LeviathanGame game)
Method Detail

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)