sdr 0.7

net.cscott.sdr.calls
Class PhantomDancer

java.lang.Object
  extended by net.cscott.sdr.calls.PhantomDancer
All Implemented Interfaces:
Dancer

public class PhantomDancer
extends Object
implements Dancer

An object representing a phantom dancer.


Constructor Summary
PhantomDancer()
          You can create as many phantom dancers as you need.
PhantomDancer(Set<TaggedFormation.Tag> tags)
          Sometimes you want to create phantoms which match specific primitive dancer tags.
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
          Repeatable hashcode: return the id field of this phantom, which is incremented by one for each dancer.
 boolean isBoy()
          Phantoms are (usually) not boys.
 boolean isGirl()
          Phantoms are (usually) not girls.
 boolean isHead()
          Phantoms are (usually) not heads.
 boolean isSide()
          Phantoms are (usually) not sides.
 boolean matchesTag(TaggedFormation.Tag tag)
          Phantoms aren't couple 1, dancer 2, boy/girl etc.
 TaggedFormation.Tag primitiveTag()
          Phantoms can't be primitively-selected.
 String toString()
          Human-readable representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhantomDancer

public PhantomDancer()
You can create as many phantom dancers as you need.


PhantomDancer

public PhantomDancer(Set<TaggedFormation.Tag> tags)
Sometimes you want to create phantoms which match specific primitive dancer tags.

Method Detail

isHead

public boolean isHead()
Phantoms are (usually) not heads.

Specified by:
isHead in interface Dancer

isSide

public boolean isSide()
Phantoms are (usually) not sides.

Specified by:
isSide in interface Dancer

isBoy

public boolean isBoy()
Phantoms are (usually) not boys.

Specified by:
isBoy in interface Dancer

isGirl

public boolean isGirl()
Phantoms are (usually) not girls.

Specified by:
isGirl in interface Dancer

matchesTag

public boolean matchesTag(TaggedFormation.Tag tag)
Phantoms aren't couple 1, dancer 2, boy/girl etc.

Specified by:
matchesTag in interface Dancer

primitiveTag

public TaggedFormation.Tag primitiveTag()
Phantoms can't be primitively-selected.

Specified by:
primitiveTag in interface Dancer

toString

public String toString()
Human-readable representation.

Overrides:
toString in class Object

hashCode

public int hashCode()
Repeatable hashcode: return the id field of this phantom, which is incremented by one for each dancer.

Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian