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
4namespace nanommo {
5
6/// What the mouse is over in the world.
7enum 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.
13void UpdateCursor(Pointing pointing);
14
15} // namespace nanommo
16
17#endif // NANOMMO_CLIENT_CURSOR_H_
Definition chat.cc:9
void UpdateCursor(Pointing pointing)
Definition cursor.cc:35
Pointing
What the mouse is over in the world.
Definition cursor.h:7