Fission FSN
Loading...
Searching...
No Matches
fsIObject.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsIObject.h
4*
5* Purpose: Interface to an object, component of an object group
6* layer on a map
7*
8*********************************************************************/
9
10#ifndef fsIObjectTileMaphdr
11#define fsIObjectTileMaphdr
12
13#include <fsCore/fsBaseTypes.h>
14#include <fsCore/fsStr.h>
15
16class fsPoint;
17
18namespace fsNTileMap
19{
21 {
22 public:
23
24 virtual fsStr nameGet() const = 0;
25 virtual fsPoint posGet() const = 0;
26
28 virtual fsStr typeGet() const = 0;
29
30 virtual fsS32 widthGet() const = 0;
31 virtual fsS32 heightGet() const = 0;
32
33 virtual fsBool propertyExistsGet(const fsStr& pName) const = 0;
34
35 virtual fsStr stringPropertyGet(const fsStr& pName, const fsStr& pDefault = "") const = 0;
36 virtual fsS32 intPropertyGet(const fsStr& pName, fsS32 pDefault = 0) const = 0;
37 virtual fsF32 floatPropertyGet(const fsStr& pName, fsF32 pDefault = 0.0f) const = 0;
38 virtual fsBool boolPropertyGet(const fsStr& pName, fsBool pDefault = false) const = 0;
39
40 virtual ~fsIObject() = default;
41
42 protected:
43
44 fsIObject() = default;
45
46 private:
47
48 };
49}
50
51#endif
52
virtual fsBool boolPropertyGet(const fsStr &pName, fsBool pDefault=false) const =0
virtual fsStr stringPropertyGet(const fsStr &pName, const fsStr &pDefault="") const =0
virtual fsBool propertyExistsGet(const fsStr &pName) const =0
virtual fsPoint posGet() const =0
virtual ~fsIObject()=default
virtual fsS32 widthGet() const =0
virtual fsStr typeGet() const =0
The object's type, as set against it in the Tiled editor (empty if none).
virtual fsS32 heightGet() const =0
virtual fsS32 intPropertyGet(const fsStr &pName, fsS32 pDefault=0) const =0
virtual fsF32 floatPropertyGet(const fsStr &pName, fsF32 pDefault=0.0f) const =0
virtual fsStr nameGet() const =0
Definition fsStr.h:23
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
float fsF32
Definition fsBaseTypes.h:28
Definition fsILayer.h:21
Definition fsPoint.h:17