Gamedev Framework (gf)  0.7.0
A C++14 framework for 2D games
Public Types | Public Member Functions | Public Attributes | List of all members
gf::TmxObject Struct Reference

A geometrical object. More...

#include <gf/Tmx.h>

Inheritance diagram for gf::TmxObject:
Inheritance graph

Public Types

enum  Kind {
 The kind of object. More...

Public Member Functions

virtual ~TmxObject ()
 Destructor. More...

Public Attributes

Kind kind
 The kind of the object. More...
TmxProperties properties
 The properties of the object. More...
Id id
 The id of the object. More...
std::string name
 The name of the object. More...
std::string type
 The type of the object. More...
Vector2u position
 The position of the object. More...
double rotation
 The rotation of the object. More...
bool visible
 The visibility of the object. More...

Detailed Description

A geometrical object.

There are six kinds of objects:

See also

Member Enumeration Documentation

◆ Kind

The kind of object.


A rectangle object.


An ellipse object.


A polyline object.


A polygon object.


A tile object.


A text object.

Constructor & Destructor Documentation

◆ ~TmxObject()

virtual gf::TmxObject::~TmxObject ( )


Member Data Documentation

◆ id

Id gf::TmxObject::id

The id of the object.

◆ kind

Kind gf::TmxObject::kind

The kind of the object.

◆ name

std::string gf::TmxObject::name

The name of the object.

◆ position

Vector2u gf::TmxObject::position

The position of the object.

◆ properties

TmxProperties gf::TmxObject::properties

The properties of the object.

◆ rotation

double gf::TmxObject::rotation

The rotation of the object.

◆ type

std::string gf::TmxObject::type

The type of the object.

◆ visible

bool gf::TmxObject::visible

The visibility of the object.