X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fconsole.hpp;h=a128d607dbe0845188efa1cd89650ef105ac5b30;hb=d84d73b701cc7fa2bd74f3490b9be1bf8b6f705a;hp=a51f86affa3ec2cf73b9dc6fa05d130f3e2822df;hpb=3cf9d34deb5eb90bad99cd7baa0d391113c1b547;p=supertux.git diff --git a/src/console.hpp b/src/console.hpp index a51f86aff..a128d607d 100644 --- a/src/console.hpp +++ b/src/console.hpp @@ -94,7 +94,7 @@ private: std::auto_ptr background; /**< console background image */ std::auto_ptr background2; /**< second, moving console background image */ - HSQUIRRELVM vm; /**< squirrel thread for the console (with custom roottable */ + HSQUIRRELVM vm; /**< squirrel thread for the console (with custom roottable) */ HSQOBJECT vm_object; int backgroundOffset; /**< current offset of scrolling background image */ @@ -110,9 +110,13 @@ private: static ConsoleStreamBuffer inputBuffer; /**< stream buffer used by input stream */ static ConsoleStreamBuffer outputBuffer; /**< stream buffer used by output stream */ + void addLines(std::string s); /**< display a string of (potentially) multiple lines in the console */ void addLine(std::string s); /**< display a line in the console */ void parse(std::string s); /**< react to a given command */ - + + /** ready a virtual machine instance, creating a new thread and loading default .nut files if needed */ + void ready_vm(); + /** execute squirrel script and output result */ void execute_script(const std::string& s);