Class Resource


  • public class Resource
    extends java.lang.Object
    A Resource reflects a needed resource for e.g. building roads (stones, building) e.g. a building (stones, wood, iron, silver e.g. recruiting (silver, potion?)
    • Constructor Detail

      • Resource

        public Resource()
        Creates a new Resource object.
      • Resource

        public Resource​(int amount)
        Creates a new Resource object.
    • Method Detail

      • getAmount

        public int getAmount()
        DOCUMENT-ME
      • setAmount

        public void setAmount​(int amount)
        DOCUMENT-ME
      • getObjectType

        public ObjectType getObjectType()
        DOCUMENT-ME
      • setObjectType

        public void setObjectType​(ObjectType type)
        DOCUMENT-ME
      • toString

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