Gamedev Framework (gf)  0.10.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
[legend]

Public Types

enum  Kind {
  Rectangle,
  Ellipse,
  Polyline,
  Polygon,
  Tile,
  Text
}
 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...
 
int 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...
 
Vector2f 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
gf::TmxObjectLayer

Member Enumeration Documentation

◆ Kind

The kind of object.

Enumerator
Rectangle 

A rectangle object.

Ellipse 

An ellipse object.

Polyline 

A polyline object.

Polygon 

A polygon object.

Tile 

A tile object.

Text 

A text object.

Constructor & Destructor Documentation

◆ ~TmxObject()

virtual gf::TmxObject::~TmxObject ( )
virtual

Destructor.

Member Data Documentation

◆ id

int 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

Vector2f 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.