In process of adding luaconsole.cpp
This commit is contained in:
33
luprex/cpp/viewer.cpp
Normal file
33
luprex/cpp/viewer.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
#include "viewer.hpp"
|
||||
|
||||
Viewer::Viewer() {
|
||||
world_.reset(new World);
|
||||
world_->init_standalone();
|
||||
}
|
||||
|
||||
Viewer::~Viewer() {
|
||||
}
|
||||
|
||||
int64_t Viewer::get_player_id() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Get the menu of the specified tangible.
|
||||
//
|
||||
std::vector<std::string> Viewer::get_menu(int64_t id) {
|
||||
std::vector<std::string> result;
|
||||
result.push_back("north");
|
||||
result.push_back("south");
|
||||
result.push_back("east");
|
||||
result.push_back("west");
|
||||
result.push_back("build");
|
||||
result.push_back("destroy");
|
||||
return result;
|
||||
}
|
||||
|
||||
void Viewer::choose_menu_item(int64_t id, const std::string &item) {
|
||||
}
|
||||
|
||||
void Viewer::advance_clock() {
|
||||
};
|
||||
Reference in New Issue
Block a user