B15F Board 15 Famulus Edition

dot.cpp
1 #include "dot.h"
2
3 Dot::Dot(uint16_t x, uint16_t y, uint8_t curve) : x(x), y(y), curve(curve)
4 {
5 if(curve >= 64)
6 throw std::range_error("Kurvenindex muss im Bereich [0, 63] liegen");
7 }
8
9 uint16_t Dot::getX() const
10 {
11 return x;
12 }
13
14 uint16_t Dot::getY() const
15 {
16 return y;
17 }
18
19 uint8_t Dot::getCurve(void) const
20 {
21 return curve;
22 }
Dot::getX
uint16_t getX(void) const
Definition: dot.cpp:9
Dot::getY
uint16_t getY(void) const
Definition: dot.cpp:14
Dot::getCurve
uint8_t getCurve(void) const
Definition: dot.cpp:19
Dot::Dot
Dot(uint16_t x, uint16_t y, uint8_t curve)
Definition: dot.cpp:3