game.events.conditions
Class Condition

java.lang.Object
  |
  +--game.events.conditions.Condition

public class Condition
extends java.lang.Object

A class for named conditions specified in the scenario file.


Constructor Summary
Condition()
          Constructor.
Condition(java.lang.String _name)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object object)
          Equals test.
 java.lang.String getName()
          Accessor for name.
 void setName(java.lang.String value)
          Accessor for name.
 java.lang.String toString()
          Implementation of the Object method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Condition

public Condition()
Constructor.


Condition

public Condition(java.lang.String _name)
Constructor.

Parameters:
_name - the name of the condition.
Method Detail

setName

public void setName(java.lang.String value)
Accessor for name.

Parameters:
value - the name.

getName

public java.lang.String getName()
Accessor for name.

Returns:
the name.

equals

public boolean equals(java.lang.Object object)
Equals test.

Overrides:
equals in class java.lang.Object

toString

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

Overrides:
toString in class java.lang.Object
Returns:
a string representation.