Point extends DrawObject
Representation of a point inside a object layer.
This class represents a point inside an object layer
Tags
Table of Contents
- $gid : int|null
- A reference to a tile.
- $height : float
- The height of the object in pixels.
- $id : int|null
- Unique ID of the object.
- $name : string|null
- The name of the object.
- $propertyBag : PropertyBag|null
- $rotation : string
- The rotation of the object in degrees clockwise around (x, y).
- $type : string|null
- The type of the object.
- $visible : bool
- Whether the object is shown (1) or hidden (0).
- $width : float
- The width of the object in pixels.
- $x : float
- The x coordinate of the object in pixels.
- $y : float
- The y coordinate of the object in pixels.
- getGid() : int|null
- getHeight() : float
- getId() : int|null
- getName() : string|null
- getPropertyBag() : PropertyBag|null
- getRotation() : string
- getType() : string|null
- getWidth() : float
- getX() : float
- getY() : float
- isVisible() : bool
- setGid() : DrawObject
- setHeight() : DrawObject
- setId() : DrawObject
- setName() : DrawObject
- setPropertyBag() : self
- setRotation() : DrawObject
- setType() : DrawObject
- setVisible() : DrawObject
- setWidth() : DrawObject
- setX() : DrawObject
- setY() : DrawObject
Properties
$gid
A reference to a tile.
private
int|null
$gid
= null
Tags
$height
The height of the object in pixels.
private
float
$height
= 0.0
Tags
$id
Unique ID of the object.
private
int|null
$id
= null
Tags
$name
The name of the object.
private
string|null
$name
= null
Tags
$propertyBag
private
PropertyBag|null
$propertyBag
= null
Tags
$rotation
The rotation of the object in degrees clockwise around (x, y).
private
string
$rotation
= '0'
Tags
$type
The type of the object.
private
string|null
$type
= null
Tags
$visible
Whether the object is shown (1) or hidden (0).
private
bool
$visible
= true
Tags
$width
The width of the object in pixels.
private
float
$width
= 0.0
Tags
$x
The x coordinate of the object in pixels.
private
float
$x
= 0.0
Tags
$y
The y coordinate of the object in pixels.
private
float
$y
= 0.0
Tags
Methods
getGid()
public
getGid() : int|null
Return values
int|null —getHeight()
public
getHeight() : float
Return values
float —getId()
public
getId() : int|null
Return values
int|null —getName()
public
getName() : string|null
Return values
string|null —getPropertyBag()
public
getPropertyBag() : PropertyBag|null
Return values
PropertyBag|null —getRotation()
public
getRotation() : string
Return values
string —getType()
public
getType() : string|null
Return values
string|null —getWidth()
public
getWidth() : float
Return values
float —getX()
public
getX() : float
Return values
float —getY()
public
getY() : float
Return values
float —isVisible()
public
isVisible() : bool
Return values
bool —setGid()
public
setGid(int|null $gid) : DrawObject
Parameters
- $gid : int|null
Return values
DrawObject —setHeight()
public
setHeight(float $height) : DrawObject
Parameters
- $height : float
Return values
DrawObject —setId()
public
setId(int|null $id) : DrawObject
Parameters
- $id : int|null
Return values
DrawObject —setName()
public
setName(string|null $name) : DrawObject
Parameters
- $name : string|null
Return values
DrawObject —setPropertyBag()
public
setPropertyBag(PropertyBag|null $propertyBag) : self
Parameters
- $propertyBag : PropertyBag|null
Return values
self —setRotation()
public
setRotation(string $rotation) : DrawObject
Parameters
- $rotation : string
Return values
DrawObject —setType()
public
setType(string|null $type) : DrawObject
Parameters
- $type : string|null
Return values
DrawObject —setVisible()
public
setVisible(bool $visible) : DrawObject
Parameters
- $visible : bool
Return values
DrawObject —setWidth()
public
setWidth(float $width) : DrawObject
Parameters
- $width : float
Return values
DrawObject —setX()
public
setX(float $x) : DrawObject
Parameters
- $x : float
Return values
DrawObject —setY()
public
setY(float $y) : DrawObject
Parameters
- $y : float