Am5os
 All Classes Functions Pages
element.h
1 //
2 // Projectname: amos-ss16-proj5
3 //
4 // Copyright (c) 2016 de.fau.cs.osr.amos2016.gruppe5
5 //
6 // This file is part of the AMOS Project 2016 @ FAU
7 // (Friedrich-Alexander University Erlangen-Nürnberg)
8 //
9 // This program is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU Affero General Public License as
11 // published by the Free Software Foundation, either version 3 of the
12 // License, or (at your option) any later version.
13 //
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU Affero General Public License for more details.
18 //
19 // You should have received a copy of the GNU Affero General Public
20 // License along with this program. If not, see
21 // <http://www.gnu.org/licenses/>.
22 //
23 
24 #ifndef ELEMENT_H
25 #define ELEMENT_H
26 
27 #include <vector>
28 
29 class Element {
30 
31 public:
32 
39  Element(std::vector<int> position, std::vector<int> box_size);
40 
41 
47  std::vector<int> GetPosition();
48 
54  std::vector<int> GetBoxSize();
55 
61  int GetMinX();
62 
68  int GetMinY();
69 
75  int GetMaxX();
76 
82  int GetMaxY();
83 
89  int GetCenterX();
90 
96  int GetCenterY();
97 
98 
99 private:
100 
101  std::vector<int> position_;
102  std::vector<int> box_size_;
103 
104 };
105 
106 
107 #endif // ELEMENT_H
std::vector< int > GetBoxSize()
Definition: element.cpp:39
int GetCenterY()
Definition: element.cpp:70
int GetMinY()
Definition: element.cpp:55
int GetMinX()
Definition: element.cpp:45
Definition: element.h:29
int GetCenterX()
Definition: element.cpp:65
Element(std::vector< int > position, std::vector< int > box_size)
Definition: element.cpp:26
std::vector< int > GetPosition()
Definition: element.cpp:33
int GetMaxY()
Definition: element.cpp:60
int GetMaxX()
Definition: element.cpp:50