nanoMMO
0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
cursor.h
Go to the documentation of this file.
1
#ifndef NANOMMO_CLIENT_CURSOR_H_
2
#define NANOMMO_CLIENT_CURSOR_H_
3
4
namespace
nanommo
{
5
6
/// What the mouse is over in the world.
7
enum class
Pointing
{
kNothing
,
kNpc
,
kMonster
};
8
9
/// Sets the mouse cursor for the frame: over the GUI, the GUI's own; over the
10
/// world, a hand on someone to talk to, and a crosshair on a monster to pick.
11
/// The GUI leaves the cursor to us (see Gui), so this runs each frame, once
12
/// the GUI is built.
13
void
UpdateCursor
(
Pointing
pointing);
14
15
}
// namespace nanommo
16
17
#endif
// NANOMMO_CLIENT_CURSOR_H_
nanommo
Definition
chat.cc:9
nanommo::UpdateCursor
void UpdateCursor(Pointing pointing)
Definition
cursor.cc:35
nanommo::Pointing
Pointing
What the mouse is over in the world.
Definition
cursor.h:7
nanommo::Pointing::kNothing
@ kNothing
Definition
cursor.h:7
nanommo::Pointing::kMonster
@ kMonster
Definition
cursor.h:7
nanommo::Pointing::kNpc
@ kNpc
Definition
cursor.h:7
client
cursor.h
Generated by
1.15.0