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

A rectangular part of a tileset. More...

#include <gf/Tmx.h>

Public Attributes

TmxProperties properties
 The properties of the tile. More...
 
unsigned id
 The local id of the tile. More...
 
std::string type
 The type of the tile. More...
 
std::array< unsigned, 4 > terrain
 The terrain if the corners (top-left, top-right, bottom-left, bottom-right) More...
 
unsigned probability
 The probability of the tile. More...
 
std::unique_ptr< TmxImageimage
 The image of this tile. More...
 
std::unique_ptr< TmxObjectLayerobjects
 The objects in the tile. More...
 
std::unique_ptr< TmxAnimationanimation
 The animation data of the tile. More...
 

Detailed Description

A rectangular part of a tileset.

See also
gf::TmxTileset

Member Data Documentation

◆ animation

std::unique_ptr<TmxAnimation> gf::TmxTile::animation

The animation data of the tile.

◆ id

unsigned gf::TmxTile::id

The local id of the tile.

◆ image

std::unique_ptr<TmxImage> gf::TmxTile::image

The image of this tile.

◆ objects

std::unique_ptr<TmxObjectLayer> gf::TmxTile::objects

The objects in the tile.

◆ probability

unsigned gf::TmxTile::probability

The probability of the tile.

◆ properties

TmxProperties gf::TmxTile::properties

The properties of the tile.

◆ terrain

std::array<unsigned, 4> gf::TmxTile::terrain

The terrain if the corners (top-left, top-right, bottom-left, bottom-right)

◆ type

std::string gf::TmxTile::type

The type of the tile.