Class CreatureInfo

  • All Implemented Interfaces:
    java.lang.Cloneable

    class CreatureInfo
    extends java.lang.Object
    implements java.lang.Cloneable
    Basic information about one creature, for split prediction.
    Author:
    David Ripton
    • Constructor Summary

      Constructors 
      Constructor Description
      CreatureInfo​(CreatureType type, boolean certain, boolean atSplit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CreatureInfo clone()  
      boolean equals​(java.lang.Object other)
      Two CreatureInfo objects match if the types match.
      (package private) java.lang.String getName()  
      CreatureType getType()  
      int hashCode()
      Two CreatureInfo objects match if the names match.
      (package private) boolean isAtSplit()  
      (package private) boolean isCertain()  
      (package private) void setAtSplit​(boolean atSplit)  
      (package private) void setCertain​(boolean certain)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • certain

        private boolean certain
      • atSplit

        private boolean atSplit
    • Constructor Detail

      • CreatureInfo

        CreatureInfo​(CreatureType type,
                     boolean certain,
                     boolean atSplit)
    • Method Detail

      • getName

        final java.lang.String getName()
      • setCertain

        void setCertain​(boolean certain)
      • isCertain

        boolean isCertain()
      • setAtSplit

        void setAtSplit​(boolean atSplit)
      • isAtSplit

        boolean isAtSplit()
      • clone

        public CreatureInfo clone()
        Overrides:
        clone in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Two CreatureInfo objects match if the types match.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Two CreatureInfo objects match if the names match.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object