// getters
inline int getId() { return id; }
- inline QString getName() { return name; }
+ QString getName();
inline double getPositionRatio() { return positionRatio; }
inline double getPosition() { return position; }
inline int getOrientation() { return orientation; }
// setters
void setOriginPoint();
- inline void setId(int id){ this->id = id; }
- inline void setName(QString name){ this->name = name; }
+ inline void setId(int id){ this->id = id; }
inline void setPositionRatio(double ratio) { positionRatio = ratio; }
inline void setOrientation(int _orientation){ orientation = _orientation; }
private:
- int id;
- QString name;
+ int id;
double positionRatio;
int position; // position in pixels on the "orientation side" of the owner
int orientation; // north, south, east, west