Urho3D::TileMapObject2D Class Reference
Urho3D::TileMapObject2D Class Reference
Tile map object. More...
#include <Urho3D/Urho2D/TileMapDefs2D.h>
Inheritance diagram for Urho3D::TileMapObject2D:
Collaboration diagram for Urho3D::TileMapObject2D:
Public Member Functions | |
TileMapObjectType2D | GetObjectType () const |
const String & | GetName () const |
const String & | GetType () const |
const Vector2 & | GetPosition () const |
const Vector2 & | GetSize () const |
unsigned | GetNumPoints () const |
const Vector2 & | GetPoint (unsigned index) const |
Return point at index (use for script). | |
unsigned | GetTileGid () const |
bool | GetTileFlipX () const |
bool | GetTileFlipY () const |
bool | GetTileSwapXY () const |
Sprite2D * | GetTileSprite () const |
bool | HasProperty (const String &name) const |
Return has property. | |
const String & | GetProperty (const String &name) const |
Return property value. | |
Public Member Functions inherited from Urho3D::RefCounted | |
RefCounted () | |
Construct. Allocate the reference count structure and set an initial self weak reference. | |
virtual | ~RefCounted () |
Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist. | |
RefCounted (const RefCounted &rhs)=delete | |
Prevent copy construction. | |
RefCounted & | operator= (const RefCounted &rhs)=delete |
Prevent assignment. | |
void | AddRef () |
Increment reference count. Can also be called outside of a SharedPtr for traditional reference counting. | |
void | ReleaseRef () |
Decrement reference count and delete self if no more references. Can also be called outside of a SharedPtr for traditional reference counting. | |
int | Refs () const |
int | WeakRefs () const |
RefCount * | RefCountPtr () |
Return pointer to the reference count structure. | |
Private Attributes | |
TileMapObjectType2D | objectType_ {} |
Object type. | |
String | name_ |
Name. | |
String | type_ |
Type. | |
Vector2 | position_ |
Position. | |
Vector2 | size_ |
Size (for rectangle and ellipse). | |
Vector< Vector2 > | points_ |
Points(for polygon and polyline). | |
unsigned | gid_ {} |
Gid (for tile). | |
SharedPtr< Sprite2D > | sprite_ |
Sprite (for tile). | |
SharedPtr< PropertySet2D > | propertySet_ |
Property set. | |
Friends | |
class | TmxObjectGroup2D |
Detailed Description
Tile map object.
Member Function Documentation
◆ GetName()
|
inline |
Return name.
◆ GetNumPoints()
unsigned Urho3D::TileMapObject2D::GetNumPoints | ( | ) | const |
Return number of points (use for script).
Here is the caller graph for this function:
◆ GetObjectType()
|
inline |
Return type.
Here is the caller graph for this function:
◆ GetPosition()
|
inline |
Return position.
Here is the caller graph for this function:
◆ GetSize()
|
inline |
Return size (for rectangle and ellipse).
◆ GetTileFlipX()
|
inline |
Return tile flip X.
Here is the caller graph for this function:
◆ GetTileFlipY()
|
inline |
Return tile flip Y.
◆ GetTileGid()
|
inline |
Return tile Gid.
Here is the caller graph for this function:
◆ GetTileSprite()
Sprite2D * Urho3D::TileMapObject2D::GetTileSprite | ( | ) | const |
Return tile sprite.
Here is the caller graph for this function:
◆ GetTileSwapXY()
|
inline |
Return tile swap X and Y.
◆ GetType()
|
inline |
Return type.
The documentation for this class was generated from the following files:
- Source/Urho3D/Urho2D/TileMapDefs2D.h
- Source/Urho3D/Urho2D/TileMapDefs2D.cpp