Class Tool

All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, Temporal<TimeCoordinate>, Property
Direct Known Subclasses:
Machine

public abstract class Tool extends PhysicalObject
Represents a tool used to build or repair other objects. Tools are distinct from final consumption goods (like food) but similar to machines.
Since:
1.0
Version:
1.1
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

  • Method Details

    • getPurpose

      public String getPurpose()
    • setPurpose

      public void setPurpose(String purpose)
    • getTargets

      public PotentialResource[] getTargets()
    • setTargets

      public void setTargets(Resource[] targets)
    • getNumActions

      public int getNumActions()
    • setNumActions

      public void setNumActions(int acts)
    • getActionName

      public abstract String getActionName(int i)
      Returns the human-readable name for a specific action index.
    • act

      public abstract void act(int i, Object[] objects)
      Executes the specific action on a set of target objects.