game.events
Class ControlLocationEvent

java.lang.Object
  |
  +--game.events.AbstractEvent
        |
        +--game.events.AbstractSquareEvent
              |
              +--game.events.ControlLocationEvent
All Implemented Interfaces:
Event

public class ControlLocationEvent
extends AbstractSquareEvent

Class to represent visiting a square by the first civilization to do so.


Constructor Summary
ControlLocationEvent()
           
 
Method Summary
static XML getXML()
           
protected  boolean success(Square square)
          Method to check whether his square succeeds, must be overridden by extending classes.
 java.lang.String toString()
          Implementation of the Object method.
 
Methods inherited from class game.events.AbstractSquareEvent
addLocation, addLocation, addRange, hasOccurred
 
Methods inherited from class game.events.AbstractEvent
activate, addActivateEvent, addBulletin, addDisplay, addEnableTechnology, addEventAction, addGiveResearch, addRemoveEvent, addRemoveFeature, addSaveCondition, addSaveCondition, addUnits, autocenter, cancel, getAfterTurn, getCivilization, getCivilizationName, getName, getNegative, isCancelled, isCurrent, performActions, setAfter, setCancelCondition, setCancelTurn, setCenterView, setCenterView, setCivilization, setInactive, setName, setNegative
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControlLocationEvent

public ControlLocationEvent()
Method Detail

success

protected boolean success(Square square)
Method to check whether his square succeeds, must be overridden by extending classes.

Specified by:
success in class AbstractSquareEvent
Parameters:
square - the square to check.

toString

public java.lang.String toString()
Implementation of the Object method.

Overrides:
toString in class AbstractSquareEvent
Returns:
a string representation.

getXML

public static XML getXML()