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.
-
Rank()
-
-
addInternal(Atom)
- Internal routine so overloading add()'s don't get confused
-
argument(String)
- The argument to a container is the class to constrain
contained objects to
-
containsAtAll(Player)
-
-
doesImply(Rank)
-
-
establish(Player)
- Given that the player is now linked into this Group,
he's online, so we're going to link him in
-
getImplications()
-
-
getImplies()
-
-
getTargets()
-
-
isOutRankedBy(Rank)
-
-
loadFrom(DataInput)
-
-
removeInternal(Atom)
-
-
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.
-
shouldContain(Atom)
-
-
writeTo(DataOutput)
-
Rank
public Rank()
argument
public void argument(String args)
- The argument to a container is the class to constrain
contained objects to
- Overrides:
- argument in class Group
addInternal
protected void addInternal(Atom added) throws BadKeyException, NonUniqueKeyException
- Internal routine so overloading add()'s don't get confused
- Overrides:
- addInternal in class Group
removeInternal
protected void removeInternal(Atom removed) throws NonUniqueKeyException, NoSuchElementException, BadKeyException
- Overrides:
- removeInternal in class Container
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).
doesImply
public boolean doesImply(Rank r)
isOutRankedBy
public boolean isOutRankedBy(Rank rank)
loadFrom
public void loadFrom(DataInput from) throws IOException
- Overrides:
- loadFrom in class Container
writeTo
public void writeTo(DataOutput to) throws IOException
- Overrides:
- writeTo in class Container
getTargets
public Targets getTargets()
getImplications
public Enumeration getImplications()
getImplies
public Implications getImplies()
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
containsAtAll
public boolean containsAtAll(Player p)
shouldContain
public boolean shouldContain(Atom p)
All Packages Class Hierarchy This Package Previous Next Index