Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class HyperspaceLocation : public Object {
- private:
- String location;
- String scene;
- Vector3 position;
- public:
- HyperspaceLocation(String location, String scene, Vector3 position) {
- this->location = location;
- this->scene = scene;
- this->position = position;
- }
- HyperspaceLocation(DataTableRow* row) {
- parseDataTableRow(row);
- }
- inline String& getLocation() {
- return location;
- }
- inline String& getScene() {
- return scene;
- }
- inline int getX() {
- return position.getX();
- }
- inline int getY() {
- return position.getY();
- }
- inline int getZ() {
- return position.getZ();
- }
- void parseDataTableRow(DataTableRow* row) {
- float x, y, z;
- row->getValue(0, location);
- row->getValue(1, scene);
- row->getValue(2, x);
- row->getValue(3, y);
- row->getValue(4, Z);
- position.setX(x);
- position.setY(y);
- position.setZ(z);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement