com.threerings.parlor.tourney.data
Class EntryFee

java.lang.Object
  extended by com.threerings.io.SimpleStreamableObject
      extended by com.threerings.parlor.tourney.data.EntryFee
All Implemented Interfaces:
Streamable

public abstract class EntryFee
extends SimpleStreamableObject

Extensible entry fee class that specifies entry requirements for a tourney.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Constructor Summary
EntryFee()
           
 
Method Summary
abstract  String getDescription()
          Returns a description of the entry fee.
abstract  boolean hasFee(BodyObject body)
          Checks if the user has the required entry fee.
abstract  void reserveFee(BodyObject body, ResultListener<Void> listener)
          Attempts to reserve the entry fee.
abstract  void returnFee(BodyObject body)
          Returns the entry fee.
 
Methods inherited from class com.threerings.io.SimpleStreamableObject
toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntryFee

public EntryFee()
Method Detail

getDescription

public abstract String getDescription()
Returns a description of the entry fee.


hasFee

public abstract boolean hasFee(BodyObject body)
Checks if the user has the required entry fee.


reserveFee

public abstract void reserveFee(BodyObject body,
                                ResultListener<Void> listener)
Attempts to reserve the entry fee.


returnFee

public abstract void returnFee(BodyObject body)
Returns the entry fee.