71 std::vector<Common::UString> modules;
74 for (std::vector<Common::UString>::const_iterator m = modules.begin(); m != modules.end(); ++m) {
75 if (m->equalsIgnoreCase(ctx.
getParams()[0].getString())) {
81 warning(
"Can't start module \"%s\": No such module", ctx.
getParams()[0].getString().c_str());
A container of The Witcher objects.
void setFacing(float facing)
Set the location's orientation.
void setPosition(float x, float y, float z)
Set the location's position.
Context of an NWScript function.
static Area * toArea(Aurora::NWScript::Object *object)
void setArea(Area *area)
Set the location's area.
Module & getModule()
Return the module context.
void getPositionFromLocation(Aurora::NWScript::FunctionContext &ctx)
static void getModules(std::vector< Common::UString > &modules)
Return a list of all modules.
Utility templates and functions.
void getModule(Aurora::NWScript::FunctionContext &ctx)
void setVector(float x, float y, float z)
void warning(const char *s,...)
void startNewModule(Aurora::NWScript::FunctionContext &ctx)
static Location * toLocation(Aurora::NWScript::EngineType *engineType)
void getPosition(float &x, float &y, float &z) const
Return the location's position.
void location(Aurora::NWScript::FunctionContext &ctx)
void load(const Common::UString &module, const Common::UString &entryLocation="")
Load a module.
The context needed to run a The Witcher module.
The Witcher engine functions.
void getNextPC(Aurora::NWScript::FunctionContext &ctx)
A location within a The Witcher area.
The context handling the gameplay in The Witcher.
Creature * getPC()
Return the currently playing PC.
void getFirstPC(Aurora::NWScript::FunctionContext &ctx)