changed namespace, class and function names to ensure consistent spelling

pull/7/head
Marc Zinnschlag 15 years ago
parent d6541d4f3c
commit c806415f08

@ -119,7 +119,7 @@ OMW::Engine::~Engine()
delete mEnvironment.mSoundManager;
delete mEnvironment.mGlobalScripts;
delete mEnvironment.mMechanicsManager;
delete mEnvironment.mDialogManager;
delete mEnvironment.mDialogueManager;
delete mScriptManager;
delete mScriptContext;
}
@ -254,7 +254,7 @@ void OMW::Engine::go()
mEnvironment.mWorld->getStore(), *mEnvironment.mWindowManager);
// Create dialog system
mEnvironment.mDialogManager = new MWDialog::DialogManager (mEnvironment);
mEnvironment.mDialogueManager = new MWDialogue::DialogueManager (mEnvironment);
// load cell
ESM::Position pos;

@ -5,11 +5,11 @@
#include <iostream>
namespace MWDialog
namespace MWDialogue
{
DialogManager::DialogManager (MWWorld::Environment& environment) : mEnvironment (environment) {}
DialogueManager::DialogueManager (MWWorld::Environment& environment) : mEnvironment (environment) {}
void DialogManager::startDialog (const MWWorld::Ptr& actor)
void DialogueManager::startDialogue (const MWWorld::Ptr& actor)
{
std::cout << "talking with " << MWWorld::Class::get (actor).getName (actor) << std::endl;
}

@ -1,5 +1,5 @@
#ifndef GAME_MMDIALOG_DIALOGMANAGER_H
#define GAME_MWDIALOG_DIALOGMANAGER_H
#ifndef GAME_MMDIALOG_DIALOGUEMANAGER_H
#define GAME_MWDIALOG_DIALOGUEMANAGER_H
#include "../mwworld/ptr.hpp"
@ -8,17 +8,17 @@ namespace MWWorld
class Environment;
}
namespace MWDialog
namespace MWDialogue
{
class DialogManager
class DialogueManager
{
MWWorld::Environment& mEnvironment;
public:
DialogManager (MWWorld::Environment& environment);
DialogueManager (MWWorld::Environment& environment);
void startDialog (const MWWorld::Ptr& actor);
void startDialogue (const MWWorld::Ptr& actor);
};
}

@ -21,9 +21,9 @@ namespace MWMechanics
class MechanicsManager;
}
namespace MWDialog
namespace MWDialogue
{
class DialogManager;
class DialogueManager;
}
namespace MWWorld
@ -36,7 +36,7 @@ namespace MWWorld
public:
Environment()
: mWorld (0), mSoundManager (0), mGlobalScripts (0), mWindowManager (0),
mMechanicsManager (0), mDialogManager (0), mFrameDuration (0)
mMechanicsManager (0), mDialogueManager (0), mFrameDuration (0)
{}
World *mWorld;
@ -44,7 +44,7 @@ namespace MWWorld
MWScript::GlobalScripts *mGlobalScripts;
MWGui::WindowManager *mWindowManager;
MWMechanics::MechanicsManager *mMechanicsManager;
MWDialog::DialogManager *mDialogManager;
MWDialogue::DialogueManager *mDialogueManager;
float mFrameDuration;
};
}

Loading…
Cancel
Save