rl.centurion.game
Class CenturionElementVisibility

java.lang.Object
  extended by rl.centurion.game.CenturionElementVisibility

public class CenturionElementVisibility
extends java.lang.Object


Nested Class Summary
static class CenturionElementVisibility.Mode
           
 
Constructor Summary
CenturionElementVisibility(CenturionGame game)
           
 
Method Summary
 void addListener(CenturionElementVisibilityListener l)
           
 boolean elementIsLocated(GameElement ge)
           
 Affiliation getAffiliation(GameElement source, GameElement target)
           
 java.util.Vector<GameElement> getCarryingElements(int turn, GameElement element)
           
 java.util.Vector<GameElement> getElementsInLocation(int turn, Location location)
           
 Location getLocationForGameElement(GameElement ge)
           
 java.util.Vector<GameElement> getVisibleElements(GameElement element)
           
 boolean isCarryingElements(int turn, GameElement element)
           
 boolean isElementOffboard(GameElement ge)
           
 boolean isElementTransported(GameElement ge)
           
 boolean isElementVisible(Player p, GameElement ge)
           
 void removeGameElement(int turn, GameElement ge)
           
 void removeListener(CenturionElementVisibilityListener l)
           
 void sendAllElementLocations()
           
 void setLocation(GameElement element, Location location)
           
 void setMode(CenturionElementVisibility.Mode mode)
           
 boolean wasElementVisible(Player p, GameElement ge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CenturionElementVisibility

public CenturionElementVisibility(CenturionGame game)
Method Detail

setMode

public void setMode(CenturionElementVisibility.Mode mode)

addListener

public void addListener(CenturionElementVisibilityListener l)

removeListener

public void removeListener(CenturionElementVisibilityListener l)

isElementVisible

public boolean isElementVisible(Player p,
                                GameElement ge)

wasElementVisible

public boolean wasElementVisible(Player p,
                                 GameElement ge)

elementIsLocated

public boolean elementIsLocated(GameElement ge)

getLocationForGameElement

public Location getLocationForGameElement(GameElement ge)

isElementOffboard

public boolean isElementOffboard(GameElement ge)

isElementTransported

public boolean isElementTransported(GameElement ge)

getVisibleElements

public java.util.Vector<GameElement> getVisibleElements(GameElement element)

setLocation

public void setLocation(GameElement element,
                        Location location)

removeGameElement

public void removeGameElement(int turn,
                              GameElement ge)

getAffiliation

public Affiliation getAffiliation(GameElement source,
                                  GameElement target)

sendAllElementLocations

public void sendAllElementLocations()

getElementsInLocation

public java.util.Vector<GameElement> getElementsInLocation(int turn,
                                                           Location location)

isCarryingElements

public boolean isCarryingElements(int turn,
                                  GameElement element)

getCarryingElements

public java.util.Vector<GameElement> getCarryingElements(int turn,
                                                         GameElement element)