Class MenuRow


  • public class MenuRow
    extends java.lang.Object
    Created with IntelliJ IDEA.
    Since:
    : 9/19/2015 Time : 11:42 AM
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FORMAT_RS_ARROW  
    • Constructor Summary

      Constructors 
      Constructor Description
      MenuRow​(int index, java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode, int targetRegionIndex, boolean shift)  
      MenuRow​(java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode, int targetRegionIndex)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      MenuRow clone()  
      boolean compareAction​(java.lang.String action)
      Compare action a inputted action, and determines if the action associated with this menu row matches the given action.
      boolean compareEntity​(Entity e)  
      boolean compareObject​(java.lang.String object)
      Compares a inputted object, and determines if the object associated with this menu row matches the given object.
      boolean equals​(java.lang.Object o)  
      java.lang.String getAction()
      -- GETTER -- Gets action associated with this menu row.
      int getId()
      Gets ID of this menu row.
      int getID()
      Deprecated.
      int getIndex()  
      int getItemIdCode()  
      java.lang.String getObject()
      -- GETTER -- Gets object reference associated with this menu row.
      int getOpCode()
      -- GETTER -- Get opcode of this menu row.
      java.lang.String getRawAction()  
      java.lang.String getRawObject()  
      int getTargetRegionIndex()  
      int getXCode()
      Get x code of this menu row.
      int getYCode()
      Get y code of this menu row.
      int hashCode()  
      boolean isShift()  
      void setAction​(java.lang.String action)
      -- GETTER -- Gets action associated with this menu row.
      void setId​(int id)  
      void setIndex​(int index)  
      void setItemIdCode​(int itemIdCode)  
      void setObject​(java.lang.String object)
      -- GETTER -- Gets object reference associated with this menu row.
      void setOpCode​(int opCode)
      -- GETTER -- Get opcode of this menu row.
      void setShift​(boolean shift)  
      void setTargetRegionIndex​(int targetRegionIndex)  
      void setXCode​(int xCode)  
      void setYCode​(int yCode)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • MenuRow

        public MenuRow​(java.lang.String action,
                       java.lang.String object,
                       int opCode,
                       int id,
                       int xCode,
                       int yCode,
                       int itemIdCode,
                       int targetRegionIndex)
      • MenuRow

        public MenuRow​(int index,
                       java.lang.String action,
                       java.lang.String object,
                       int opCode,
                       int id,
                       int xCode,
                       int yCode,
                       int itemIdCode,
                       int targetRegionIndex,
                       boolean shift)
    • Method Detail

      • getId

        public int getId()
        Gets ID of this menu row.
        Returns:
        the ID of this menu row
      • getID

        @Deprecated
        public int getID()
        Deprecated.
      • getXCode

        public int getXCode()
        Get x code of this menu row.
        Returns:
        the x code of this menu row
      • getYCode

        public int getYCode()
        Get y code of this menu row.
        Returns:
        the y code of this menu row
      • compareAction

        public boolean compareAction​(java.lang.String action)
        Compare action a inputted action, and determines if the action associated with this menu row matches the given action.
        Parameters:
        action - the action to compare
        Returns:
        true if the two actions match, otherwise false
      • compareObject

        public boolean compareObject​(java.lang.String object)
        Compares a inputted object, and determines if the object associated with this menu row matches the given object.
        Parameters:
        object - the object to compare
        Returns:
        true if the two objects match, otherwise false
      • compareEntity

        public boolean compareEntity​(Entity e)
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • setIndex

        public void setIndex​(int index)
      • getIndex

        public int getIndex()
      • setAction

        public void setAction​(java.lang.String action)
        -- GETTER -- Gets action associated with this menu row.
      • getAction

        public java.lang.String getAction()
        -- GETTER -- Gets action associated with this menu row.
        Returns:
        the action
      • getRawAction

        public java.lang.String getRawAction()
      • setObject

        public void setObject​(java.lang.String object)
        -- GETTER -- Gets object reference associated with this menu row.
      • getObject

        public java.lang.String getObject()
        -- GETTER -- Gets object reference associated with this menu row.
        Returns:
        the object
      • getRawObject

        public java.lang.String getRawObject()
      • setId

        public void setId​(int id)
      • setXCode

        public void setXCode​(int xCode)
      • setYCode

        public void setYCode​(int yCode)
      • setOpCode

        public void setOpCode​(int opCode)
        -- GETTER -- Get opcode of this menu row.
      • getOpCode

        public int getOpCode()
        -- GETTER -- Get opcode of this menu row.
        Returns:
        the int
      • setItemIdCode

        public void setItemIdCode​(int itemIdCode)
      • getItemIdCode

        public int getItemIdCode()
      • setTargetRegionIndex

        public void setTargetRegionIndex​(int targetRegionIndex)
      • getTargetRegionIndex

        public int getTargetRegionIndex()
      • setShift

        public void setShift​(boolean shift)
      • isShift

        public boolean isShift()