HoverRace
2.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
engine
Display
HudCell.h
Go to the documentation of this file.
1
2
// HudCell.h
3
//
4
// Copyright (c) 2014 Michael Imamura.
5
//
6
// Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
7
// you may not use this file except in compliance with the License.
8
//
9
// A copy of the license should have been attached to the package from which
10
// you have taken this file. If you can not find the license you can not use
11
// this file.
12
//
13
//
14
// The author makes no representations about the suitability of
15
// this software for any purpose. It is provided "as is" "AS IS",
16
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17
// implied.
18
//
19
// See the License for the specific language governing permissions
20
// and limitations under the License.
21
22
#pragma once
23
24
namespace
HoverRace
{
25
namespace
Display {
26
28
enum class
HudCell
{
29
FILL
,
30
N
,
31
NE
,
32
E
,
33
SE
,
34
S
,
35
SW
,
36
W
,
37
NW
,
38
};
39
40
inline
std::ostream &
operator<<
(std::ostream &os,
const
HudCell
cell)
41
{
42
switch
(cell) {
43
case
HudCell::FILL
: os <<
"FILL"
;
break
;
44
case
HudCell::N
: os <<
"N"
;
break
;
45
case
HudCell::NE
: os <<
"NE"
;
break
;
46
case
HudCell::E
: os <<
"E"
;
break
;
47
case
HudCell::SE
: os <<
"SE"
;
break
;
48
case
HudCell::S
: os <<
"S"
;
break
;
49
case
HudCell::SW
: os <<
"SW"
;
break
;
50
case
HudCell::W
: os <<
"W"
;
break
;
51
case
HudCell::NW
: os <<
"NW"
;
break
;
52
default
: os << static_cast<int>(cell);
53
}
54
return
os;
55
}
56
57
}
// namespace Display
58
}
// namespace HoverRace
HoverRace::Display::HudCell::W
Left half.
HoverRace::Display::HudCell::NW
Upper-left quadrant.
HoverRace::Display::HudCell::NE
Upper-right quadrant.
HoverRace::Display::HudCell::SW
Lower-left quadrant.
HoverRace::Display::operator<<
std::ostream & operator<<(std::ostream &os, const Color &c)
Definition:
Color.cpp:61
HoverRace::Display::HudCell::FILL
Fill the screen.
HoverRace::Display::HudCell::S
Lower half.
HoverRace::Display::HudCell::N
Upper half.
HoverRace
Definition:
Announcement.h:24
HoverRace::Display::HudCell::SE
Lower-right quadrant.
HoverRace::Display::HudCell::E
Right half.
HoverRace::Display::HudCell
HudCell
Split-screen HUD grid locations.
Definition:
HudCell.h:28
1.8.11