Urho3D
Public Member Functions | Private Attributes | Friends | List of all members
Dviglo::TileMapObject2D Class Reference

Tile map object. More...

#include </home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Urho2D/TileMapDefs2D.h>

Inheritance diagram for Dviglo::TileMapObject2D:
Dviglo::RefCounted

Public Member Functions

TileMapObjectType2D GetObjectType () const
 
const StringGetName () const
 
const StringGetType () 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 String &name) const
 Return has property.
 
const StringGetProperty (const String &name) const
 Return property value.
 
- Public Member Functions inherited from Dviglo::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.
 
void AddRef ()
 
void ReleaseRef ()
 
int Refs () const
 
int WeakRefs () const
 
RefCountRefCountPtr ()
 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< Vector2points_
 Points(for polygon and polyline).
 
unsigned gid_ {}
 Gid (for tile).
 
SharedPtr< Sprite2Dsprite_
 Sprite (for tile).
 
SharedPtr< PropertySet2DpropertySet_
 Property set.
 

Friends

class TmxObjectGroup2D
 

Detailed Description

Tile map object.

Member Function Documentation

◆ GetName()

const String& Dviglo::TileMapObject2D::GetName ( ) const
inline

Return name.

◆ GetNumPoints()

unsigned Dviglo::TileMapObject2D::GetNumPoints ( ) const

Return number of points (use for script).

◆ GetObjectType()

TileMapObjectType2D Dviglo::TileMapObject2D::GetObjectType ( ) const
inline

Return type.

◆ GetPosition()

const Vector2& Dviglo::TileMapObject2D::GetPosition ( ) const
inline

Return position.

◆ GetSize()

const Vector2& Dviglo::TileMapObject2D::GetSize ( ) const
inline

Return size (for rectangle and ellipse).

◆ GetTileFlipX()

bool Dviglo::TileMapObject2D::GetTileFlipX ( ) const
inline

Return tile flip X.

◆ GetTileFlipY()

bool Dviglo::TileMapObject2D::GetTileFlipY ( ) const
inline

Return tile flip Y.

◆ GetTileGid()

unsigned Dviglo::TileMapObject2D::GetTileGid ( ) const
inline

Return tile Gid.

◆ GetTileSprite()

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

Return tile sprite.

◆ GetTileSwapXY()

bool Dviglo::TileMapObject2D::GetTileSwapXY ( ) const
inline

Return tile swap X and Y.

◆ GetType()

const String& Dviglo::TileMapObject2D::GetType ( ) const
inline

Return type.


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