Package org.progettoedids.entities
Class Entity
java.lang.Object
org.progettoedids.entities.Entity
An Entity is the superclass of all the finer types of entities of the game.
You can think of an Entity as something that could be physically located inside the Room(s) of a Labyrinth.
An Entity is composed of a UUID that uniquely identifies each instance of an Entity, a name
which is used for display purposes to the user and a systemName which is used internally to the game
to identify a concrete subclass type of Entity.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Entity
Initializes an Entity.- Parameters:
systemName- The system name is used to uniquely identify a certain type of Entity. Must not be nullname- The name is displayed to the user and is used to identify an instance of an Entity by the user. Must not be null
-
-
Method Details
-
getUUID
Returns the unique UUID of an Entity.- Returns:
- The UUID that identifies the specific instance of an Entity
-
getSystemName
Returns the system name of an Entity.- Returns:
- The system name characterizing an Entity
-
getName
-
setName
Sets the name of an Entity- Parameters:
name- The new name of the Entity. Must not be null.
-
toString
-