Monopoly — Portage moderne
0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
BoardGeometry.cpp
Go to the documentation of this file.
1
#include "
BoardGeometry.hpp
"
2
3
namespace
monopoly::boardgeometry
4
{
5
namespace
6
{
7
// display.cpp : BoardLocations[42][2]
8
constexpr
std::array<Point2D, 42>
Locations2D
9
{{
10
{344,344},
11
{312,344},
12
{279,344},
13
{248,344},
14
{216,344},
15
{183,344},
16
{151,344},
17
{119,344},
18
{ 87,344},
19
{ 55,344},
20
21
{ 3,344},
22
{ 3,312},
23
{ 3,279},
24
{ 3,248},
25
{ 3,216},
26
{ 3,183},
27
{ 3,151},
28
{ 3,119},
29
{ 3, 87},
30
{ 3, 55},
31
32
{ 3, 3},
33
{ 55, 3},
34
{ 87, 3},
35
{119, 3},
36
{151, 3},
37
{183, 3},
38
{215, 3},
39
{248, 3},
40
{279, 3},
41
{312, 3},
42
43
{344, 3},
44
{344, 55},
45
{344, 87},
46
{344,119},
47
{344,151},
48
{344,183},
49
{344,216},
50
{344,248},
51
{344,279},
52
{344,313},
53
54
// SQ_IN_JAIL
55
{ 17,345},
56
57
// SQ_OFF_BOARD
58
{314,312}
59
}};
60
61
62
// UDBoard.cpp : pt3DBoardLocations[42][3]
63
constexpr
std::array<Point3D, 42>
Locations3D
64
{{
65
{ 0.0f, 0.0f, 64.5f},
66
{ 0.0f, 0.0f, 104.0f},
67
{ 0.0f, 0.0f, 143.5f},
68
{ 0.0f, 0.0f, 183.0f},
69
{ 0.0f, 0.0f, 222.5f},
70
{ 0.0f, 0.0f, 262.0f},
71
{ 0.0f, 0.0f, 301.5f},
72
{ 0.0f, 0.0f, 341.0f},
73
{ 0.0f, 0.0f, 380.5f},
74
{ 0.0f, 0.0f, 420.0f},
75
76
{ 64.5f, 0.0f, 486.0f},
77
{104.0f, 0.0f, 486.0f},
78
{143.5f, 0.0f, 486.0f},
79
{183.0f, 0.0f, 486.0f},
80
{222.5f, 0.0f, 486.0f},
81
{262.0f, 0.0f, 486.0f},
82
{301.5f, 0.0f, 486.0f},
83
{341.0f, 0.0f, 486.0f},
84
{380.5f, 0.0f, 486.0f},
85
{420.0f, 0.0f, 486.0f},
86
87
{486.0f, 0.0f, 421.5f},
88
{486.0f, 0.0f, 382.0f},
89
{486.0f, 0.0f, 342.5f},
90
{486.0f, 0.0f, 303.0f},
91
{486.0f, 0.0f, 263.5f},
92
{486.0f, 0.0f, 224.0f},
93
{486.0f, 0.0f, 184.5f},
94
{486.0f, 0.0f, 145.0f},
95
{486.0f, 0.0f, 105.5f},
96
{486.0f, 0.0f, 66.0f},
97
98
{421.5f, 0.0f, 0.0f},
99
{382.0f, 0.0f, 0.0f},
100
{342.5f, 0.0f, 0.0f},
101
{303.0f, 0.0f, 0.0f},
102
{263.5f, 0.0f, 0.0f},
103
{224.0f, 0.0f, 0.0f},
104
{184.5f, 0.0f, 0.0f},
105
{145.0f, 0.0f, 0.0f},
106
{105.5f, 0.0f, 0.0f},
107
{ 66.0f, 0.0f, 0.0f},
108
109
// jail
110
{ 64.5f, 0.0f, 466.5f},
111
112
// off board
113
{ 64.5f, 0.0f, 104.0f}
114
}};
115
}
116
117
118
const
std::array<Point2D, 42>&
119
locations2D
()
120
{
121
return
Locations2D
;
122
}
123
124
125
const
std::array<Point3D, 42>&
126
locations3D
()
127
{
128
return
Locations3D
;
129
}
130
}
BoardGeometry.hpp
index
unsigned index
Definition
ModernIBarSkin.cpp:25
monopoly::boardgeometry
Definition
BoardGeometry.cpp:4
monopoly::boardgeometry::locations3D
const std::array< Point3D, 42 > & locations3D()
Definition
BoardGeometry.cpp:126
monopoly::boardgeometry::locations2D
const std::array< Point2D, 42 > & locations2D()
Definition
BoardGeometry.cpp:119
BoardGeometry.cpp
Generated by
1.9.8