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

color
Color color()

Gets the identifying color of this object.

color
Color color(Color c)

Sets the identifying color of this object.

serialize
Tag serialize()

Serializes the object into an SDL tag

Variables

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.

MapObjectFlags
enum MapObjectFlags

Defines various flags for objects

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

flags
BitFlags!MapObjectFlags flags;

Contains property flags

mainTag
Tag mainTag;

Tag that holds the data related to this mapobject + ancillary tags

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