Package marauroa.common.game
Class RPObject.ID
java.lang.Object
marauroa.common.game.RPObject.ID
- Enclosing class:
- RPObject
This class stores the basic identification for a RPObject
-
Constructor Details
-
ID
Constructor- Parameters:
objectid
- the object idzone
- the zone
-
ID
Constructor- Parameters:
objectid
- the object idzoneid
- the zone-id
-
ID
Constructor- Parameters:
attr
- an RPObject containing object_id attribute
-
ID
Constructor- Parameters:
attr
- an RPAction containing sourceid attribute
-
-
Method Details
-
getObjectID
public int getObjectID()This method returns the object id- Returns:
- the object id.
-
getZoneID
returns the zone id as string- Returns:
- zone id
-
equals
This method returns true of both ids are equal. -
hashCode
public int hashCode()We need it for HashMap -
toString
This method returns a String that represent the object
-