org.starhope.appius.game
Class AvatarDecoration
java.lang.Object
org.starhope.appius.game.AvatarDecoration
- All Implemented Interfaces:
- Serializable, CastsToJSON
public class AvatarDecoration
- extends Object
- implements CastsToJSON
- Author:
- brpocock@star-hope.org
- See Also:
- Serialized Form
Constructor Summary |
AvatarDecoration(String filename1,
Coord3D offset)
Create a new visible attachment that accompanies something
VisibleInWorld |
AvatarDecoration(String filename1,
double offsetX,
double offsetY,
double offsetZ)
Create a new visible attachment that accompanies something
VisibleInWorld |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- Java serialisation unique ID
- See Also:
- Constant Field Values
filename
private String filename
position
private Coord3D position
AvatarDecoration
public AvatarDecoration(String filename1,
Coord3D offset)
- Create a new visible attachment that accompanies something
VisibleInWorld
- Parameters:
filename1
- The filename of the attachment (model, graphic,
whatever it is)offset
- The relative offset to its carrier/owner
AvatarDecoration
public AvatarDecoration(String filename1,
double offsetX,
double offsetY,
double offsetZ)
- Create a new visible attachment that accompanies something
VisibleInWorld
- Parameters:
filename1
- The filename of the attachment (model, graphic,
whatever it is)offsetX
- The relative offset to its carrier/owner (X)offsetY
- The relative offset to its carrier/owner (Y)offsetZ
- The relative offset to its carrier/owner (Z)
getFilename
public String getFilename()
- Returns:
- the filename
getPosition
public Coord3D getPosition()
- Returns:
- the position
setFilename
public void setFilename(String filename1)
- Parameters:
filename1
- the filename to set
setPosition
public void setPosition(Coord3D position1)
- Parameters:
position1
- the position to set
toJSON
public org.json.JSONObject toJSON()
- Returns a JSON serialisation of the AvatarDecoration object
- Specified by:
toJSON
in interface CastsToJSON
- Returns:
- The string representing this object in JSON format
- See Also:
CastsToJSON.toJSON()