Rebel Fork Framework
Urho3D::TileMapObject2D Class Reference

Tile map object. More...

#include <Urho3D/Urho2D/TileMapDefs2D.h>

Inheritance diagram for Urho3D::TileMapObject2D:

Public Member Functions

TileMapObjectType2D GetObjectType () const
const ea::string & GetName () const
const ea::string & GetType () const
const Vector2GetPosition () const
const Vector2GetSize () const
unsigned GetNumPoints () const
const Vector2GetPoint (unsigned index) const
 Return point at index (use for script).
unsigned GetTileGid () const
bool GetTileFlipX () const
bool GetTileFlipY () const
bool GetTileSwapXY () const
Sprite2DGetTileSprite () const
bool HasProperty (const ea::string &name) const
 Return has property.
const ea::string & GetProperty (const ea::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.
RefCountedoperator= (const RefCounted &rhs)=delete
 Prevent assignment.
int AddRef ()
int ReleaseRef ()
int Refs () const
int WeakRefs () const
RefCountRefCountPtr () const
 Return pointer to the reference count structure.
bool HasScriptObject () const
 Return true if script runtime object wrapping this native object exists.
bool IsScriptStrongRef () const
 Return true if script reference is strong.

Private Attributes

TileMapObjectType2D objectType_ {}
 Object type.
ea::string name_
ea::string type_
Vector2 position_
Vector2 size_
 Size (for rectangle and ellipse).
ea::vector< Vector2points_
 Points(for polygon and polyline).
unsigned gid_ {}
 Gid (for tile).
SharedPtr< Sprite2Dsprite_
 Sprite (for tile).
SharedPtr< PropertySet2DpropertySet_
 Property set.


class TmxObjectGroup2D

Detailed Description

Tile map object.

Member Function Documentation

◆ GetName()

const ea::string& Urho3D::TileMapObject2D::GetName ( ) const

Return name.

◆ GetNumPoints()

unsigned Urho3D::TileMapObject2D::GetNumPoints ( ) const

Return number of points (use for script).

◆ GetObjectType()

TileMapObjectType2D Urho3D::TileMapObject2D::GetObjectType ( ) const

Return type.

◆ GetPosition()

const Vector2& Urho3D::TileMapObject2D::GetPosition ( ) const

Return position.

◆ GetSize()

const Vector2& Urho3D::TileMapObject2D::GetSize ( ) const

Return size (for rectangle and ellipse).

◆ GetTileFlipX()

bool Urho3D::TileMapObject2D::GetTileFlipX ( ) const

Return tile flip X.

◆ GetTileFlipY()

bool Urho3D::TileMapObject2D::GetTileFlipY ( ) const

Return tile flip Y.

◆ GetTileGid()

unsigned Urho3D::TileMapObject2D::GetTileGid ( ) const

Return tile Gid.

◆ GetTileSprite()

Sprite2D * Urho3D::TileMapObject2D::GetTileSprite ( ) const

Return tile sprite.

◆ GetTileSwapXY()

bool Urho3D::TileMapObject2D::GetTileSwapXY ( ) const

Return tile swap X and Y.

◆ GetType()

const ea::string& Urho3D::TileMapObject2D::GetType ( ) const

Return type.

The documentation for this class was generated from the following files: