All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class key.Rank

java.lang.Object
   |
   +----key.Atom
           |
           +----key.Container
                   |
                   +----key.Scape
                           |
                           +----key.Group
                                   |
                                   +----key.Rank

public class Rank
extends Group
implements Targetable
A specialised group that has 'implies' as well as the ability to use a 'joined' type effect for another scape. elements() and contains() are not overridden, so they don't always return the _true_ values that they could.


Constructor Index

 o Rank()

Method Index

 o addInternal(Atom)
Internal routine so overloading add()'s don't get confused
 o argument(String)
The argument to a container is the class to constrain contained objects to
 o containsAtAll(Player)
 o doesImply(Rank)
 o establish(Player)
Given that the player is now linked into this Group, he's online, so we're going to link him in
 o getImplications()
 o getImplies()
 o getTargets()
 o isOutRankedBy(Rank)
 o loadFrom(DataInput)
 o removeInternal(Atom)
 o removeInternal(Atom, Rank)
This routine removes the atom 'removed' from this rank, ensure that it isn't in this rank in any way, shape, or form.
 o shouldContain(Atom)
 o writeTo(DataOutput)

Constructors

 o Rank
 public Rank()

Methods

 o argument
 public void argument(String args)
The argument to a container is the class to constrain contained objects to

Overrides:
argument in class Group
 o addInternal
 protected void addInternal(Atom added) throws BadKeyException, NonUniqueKeyException
Internal routine so overloading add()'s don't get confused

Overrides:
addInternal in class Group
 o removeInternal
 protected void removeInternal(Atom removed) throws NonUniqueKeyException, NoSuchElementException, BadKeyException
Overrides:
removeInternal in class Container
 o removeInternal
 protected void removeInternal(Atom removed,
                               Rank s) throws NonUniqueKeyException, NoSuchElementException, BadKeyException
This routine removes the atom 'removed' from this rank, ensure that it isn't in this rank in any way, shape, or form. It will then re-add the player to any ranks that this rank implies, except for rank s (which may be null).

 o doesImply
 public boolean doesImply(Rank r)
 o isOutRankedBy
 public boolean isOutRankedBy(Rank rank)
 o loadFrom
 public void loadFrom(DataInput from) throws IOException
Overrides:
loadFrom in class Container
 o writeTo
 public void writeTo(DataOutput to) throws IOException
Overrides:
writeTo in class Container
 o getTargets
 public Targets getTargets()
 o getImplications
 public Enumeration getImplications()
 o getImplies
 public Implications getImplies()
 o establish
 public void establish(Player p) throws BadKeyException, NonUniqueKeyException
Given that the player is now linked into this Group, he's online, so we're going to link him in

Overrides:
establish in class Group
 o containsAtAll
 public boolean containsAtAll(Player p)
 o shouldContain
 public boolean shouldContain(Atom p)

All Packages  Class Hierarchy  This Package  Previous  Next  Index