Exemplo n.º 1
0
 /**
  * Returns true if the given Object is a TransitionChoice and has identical underlying choices and
  * choiceCount
  *
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(Object obj) {
   if (obj instanceof BasicChooseInformation) {
     BasicChooseInformation<?> other = (BasicChooseInformation<?>) obj;
     if (title == null) {
       if (other.title != null) {
         return false;
       }
     } else if (!title.equals(other.title)) {
       return false;
     }
     return setName.equals(other.setName) && pcs.equals(other.pcs);
   }
   return false;
 }
Exemplo n.º 2
0
 @Override
 public GroupingState getGroupingState() {
   return pcs.getGroupingState();
 }
Exemplo n.º 3
0
 /**
  * Returns a Set of objects contained within this ChoiceSet for the given PlayerCharacter.
  *
  * @param pc The PlayerCharacter for which the choices in this ChoiceSet should be returned.
  * @return a Set of objects contained within this ChoiceSet for the given PlayerCharacter.
  */
 @Override
 public Collection<T> getSet(PlayerCharacter pc) {
   return pcs.getSet(pc);
 }
Exemplo n.º 4
0
 /**
  * Returns the Class contained within this ChoiceSet
  *
  * @return the Class contained within this ChoiceSet
  */
 @Override
 public ClassIdentity<? super T> getClassIdentity() {
   return BasicClassIdentity.getInstance(pcs.getChoiceClass());
 }
Exemplo n.º 5
0
 /** Returns a representation of this ChoiceSet, suitable for storing in an LST file. */
 @Override
 public String getLSTformat() {
   return pcs.getLSTformat(false);
 }
 /**
  * Returns a Set of objects contained within this ChoiceSet for the given PlayerCharacter.
  *
  * @param pc The PlayerCharacter for which the choices in this ChoiceSet should be returned.
  * @return a Set of objects contained within this ChoiceSet for the given PlayerCharacter.
  */
 @Override
 public Collection<T> getSet(PlayerCharacter pc) {
   return Collections.unmodifiableCollection(pcs.getSet(pc));
 }