BoxObject

Implements a Box object. Adds a single Coordinate property to the default MapObject

Constructors

this
this(int pID, int gID, string name, Box position)

Creates a new instance from scratch.

this
this(Tag t, int gID)

Deserializes itself from a Tag.

Members

Functions

serialize
Tag serialize()

Serializes the object into an SDL tag

Variables

color
Color color;

identifying color

position
Box position;

position of object on the layer

Inherited Members

From MapObject

MapObjectType
enum MapObjectType

Enumerator used for differentiating between multiple kinds of objects. The value serialized as a string as the name of a tag.

pID
int pID;

priority identifier

gID
int gID;

group identifier (equals with layer number)

name
string name;

name of object

_type
MapObjectType _type;

type of the object

ancillaryTags
Tag[] ancillaryTags;

Tags that hold extra information

type
MapObjectType type [@property getter]

Returns the type of this object

serialize
Tag serialize()

Serializes the object into an SDL tag

opEquals
bool opEquals(MapObject rhs)

Checks if two objects have the same identifier.

Meta