Added invoke_plan, removed viewer
This commit is contained in:
@@ -112,12 +112,21 @@ public:
|
||||
//
|
||||
void update_gui(int64_t actor_id, int64_t place_id, Gui *gui);
|
||||
|
||||
// Invoke an action plan.
|
||||
//
|
||||
void invoke_plan(int64_t actor_id, int64_t place_id, const std::string &action, Gui *gui);
|
||||
|
||||
// fetch
|
||||
//
|
||||
// Given a lua state, fetch the world model associated with
|
||||
// that lua state.
|
||||
//
|
||||
static World *fetch(lua_State *L);
|
||||
|
||||
// Snapshot and rollback - temporary.
|
||||
//
|
||||
void snapshot() { lua_snap_.snapshot(); }
|
||||
void rollback() { lua_snap_.rollback(); }
|
||||
};
|
||||
|
||||
#endif // WORLD_HPP
|
||||
|
||||
Reference in New Issue
Block a user