From 8335858ca95085f96360f603d671e0fc7eaf8389 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Mon, 18 Jan 2021 00:48:42 -0500 Subject: [PATCH] Added viewer --- luprex/syscpp/viewer.cpp | 0 luprex/syscpp/viewer.hpp | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 luprex/syscpp/viewer.cpp create mode 100644 luprex/syscpp/viewer.hpp diff --git a/luprex/syscpp/viewer.cpp b/luprex/syscpp/viewer.cpp new file mode 100644 index 00000000..e69de29b diff --git a/luprex/syscpp/viewer.hpp b/luprex/syscpp/viewer.hpp new file mode 100644 index 00000000..36f8a1a0 --- /dev/null +++ b/luprex/syscpp/viewer.hpp @@ -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 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 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