Added viewer
This commit is contained in:
0
luprex/syscpp/viewer.cpp
Normal file
0
luprex/syscpp/viewer.cpp
Normal file
35
luprex/syscpp/viewer.hpp
Normal file
35
luprex/syscpp/viewer.hpp
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
#ifndef VIEWER_HPP
|
||||||
|
#define VIEWER_HPP
|
||||||
|
|
||||||
|
class Viewer {
|
||||||
|
public:
|
||||||
|
// Initialize a standalone game.
|
||||||
|
//
|
||||||
|
void init_standalone();
|
||||||
|
|
||||||
|
// Get the player ID of the current player.
|
||||||
|
//
|
||||||
|
int64_t get_player_id();
|
||||||
|
|
||||||
|
// Get a list of the tangibles in viewing radius of the player.
|
||||||
|
//
|
||||||
|
std::vector<int64_t> get_tangibles_near_player();
|
||||||
|
|
||||||
|
// Get the animation viewer of the specified tangible.
|
||||||
|
//
|
||||||
|
AnimView *get_animation_view(int64_t id);
|
||||||
|
|
||||||
|
// Get the menu of the specified tangible.
|
||||||
|
//
|
||||||
|
std::vector<std::string> get_menu(int64_t id);
|
||||||
|
|
||||||
|
// Select the specified menu item.
|
||||||
|
//
|
||||||
|
void choose_menu_item(int64_t id, const std::string &item);
|
||||||
|
|
||||||
|
// Advance the simulation clock. Called 1/sec.
|
||||||
|
//
|
||||||
|
void advance_clock();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // VIEWER_HPP
|
||||||
Reference in New Issue
Block a user