freg  0.3
Free-Roaming Elementary Game
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Xyz.cpp
Go to the documentation of this file.
1  /* freg, Free-Roaming Elementary Game with open and interactive world
2  * Copyright (C) 2012-2014 Alexander 'mmaulwurff' Kromm
3  * mmaulwurff@gmail.com
4  *
5  * This file is part of FREG.
6  *
7  * FREG is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * FREG is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with FREG. If not, see <http://www.gnu.org/licenses/>. */
19 
20 #include "Xyz.h"
21 
22 Xy::Xy(const short i, const short j) : x_self(i), y_self(j) {}
23 Xy::Xy() : x_self(), y_self() {}
24 
25 Xyz::Xyz(const short i, const short j, const short k) : Xy(i, j), z_self(k) {}
26 Xyz::Xyz() : Xy(), z_self() {}
27 
28 short Xy ::X() const { return x_self; }
29 short Xy ::Y() const { return y_self; }
30 short Xyz::Z() const { return z_self; }
31 
32 void Xyz::SetXyz(const short x, const short y, const short z) {
33  x_self = x;
34  y_self = y;
35  z_self = z;
36 }
short y_self
Definition: Xyz.h:32
short z_self
Definition: Xyz.h:44
short Z() const
Definition: Xyz.cpp:30
short X() const
Definition: Xyz.cpp:28
void SetXyz(short x, short y, short z)
Definition: Xyz.cpp:32
short x_self
Definition: Xyz.h:32
Definition: Xyz.h:23
short Y() const
Definition: Xyz.cpp:29
Xyz()
Definition: Xyz.cpp:26
Xy()
Definition: Xyz.cpp:23