mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 10:26:40 +00:00
FULLPIPE: Remove C* prefix from input classes
This commit is contained in:
parent
3bd3431ad4
commit
c354981037
@ -47,7 +47,7 @@ class BehaviorManager;
|
||||
class CBaseModalObject;
|
||||
class CGameLoader;
|
||||
class CGameVar;
|
||||
class CInputController;
|
||||
class InputController;
|
||||
class CInventory2;
|
||||
struct CursorInfo;
|
||||
struct EntranceInfo;
|
||||
@ -103,7 +103,7 @@ public:
|
||||
bool loadGam(const char *fname, int scene = 0);
|
||||
|
||||
CGameVar *getGameLoaderGameVar();
|
||||
CInputController *getGameLoaderInputController();
|
||||
InputController *getGameLoaderInputController();
|
||||
|
||||
int _gameProjectVersion;
|
||||
int _pictureScale;
|
||||
@ -124,7 +124,7 @@ public:
|
||||
StaticANIObject *_aniMan2;
|
||||
byte *_globalPalette;
|
||||
|
||||
CInputController *_inputController;
|
||||
InputController *_inputController;
|
||||
bool _inputDisabled;
|
||||
|
||||
int _currentCheat;
|
||||
|
@ -49,7 +49,7 @@ InteractionController *getGameLoaderInteractionController() {
|
||||
|
||||
CGameLoader::CGameLoader() {
|
||||
_interactionController = new InteractionController();
|
||||
_inputController = new CInputController();
|
||||
_inputController = new InputController();
|
||||
|
||||
_gameProject = 0;
|
||||
_gameName = 0;
|
||||
@ -503,7 +503,7 @@ CGameVar *FullpipeEngine::getGameLoaderGameVar() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
CInputController *FullpipeEngine::getGameLoaderInputController() {
|
||||
InputController *FullpipeEngine::getGameLoaderInputController() {
|
||||
if (_gameLoader)
|
||||
return _gameLoader->_inputController;
|
||||
else
|
||||
|
@ -31,7 +31,7 @@ namespace Fullpipe {
|
||||
|
||||
class SceneTag;
|
||||
class MctlCompound;
|
||||
class CInputController;
|
||||
class InputController;
|
||||
class InteractionController;
|
||||
class MotionController;
|
||||
|
||||
@ -91,7 +91,7 @@ class CGameLoader : public CObject {
|
||||
|
||||
GameProject *_gameProject;
|
||||
InteractionController *_interactionController;
|
||||
CInputController *_inputController;
|
||||
InputController *_inputController;
|
||||
CInventory2 _inventory;
|
||||
Sc2Array _sc2array;
|
||||
void *_sceneSwitcher;
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
namespace Fullpipe {
|
||||
|
||||
CInputController::CInputController() {
|
||||
InputController::InputController() {
|
||||
g_fullpipe->_inputController = this;
|
||||
|
||||
_flag = 0;
|
||||
@ -52,13 +52,13 @@ CInputController::CInputController() {
|
||||
_cursorItemPicture = 0;
|
||||
}
|
||||
|
||||
CInputController::~CInputController() {
|
||||
InputController::~InputController() {
|
||||
removeMessageHandler(126, -1);
|
||||
|
||||
g_fullpipe->_inputController = 0;
|
||||
}
|
||||
|
||||
void CInputController::setInputDisabled(bool state) {
|
||||
void InputController::setInputDisabled(bool state) {
|
||||
_flag = state;
|
||||
g_fullpipe->_inputDisabled = state;
|
||||
}
|
||||
@ -67,7 +67,7 @@ void setInputDisabled(bool state) {
|
||||
g_fullpipe->_inputController->setInputDisabled(state);
|
||||
}
|
||||
|
||||
void CInputController::addCursor(CursorInfo *cursor) {
|
||||
void InputController::addCursor(CursorInfo *cursor) {
|
||||
CursorInfo *newc = new CursorInfo(cursor);
|
||||
Common::Point p;
|
||||
|
||||
@ -82,14 +82,14 @@ void CInputController::addCursor(CursorInfo *cursor) {
|
||||
_cursorsArray.push_back(newc);
|
||||
}
|
||||
|
||||
void CInputController::setCursorMode(bool enabled) {
|
||||
void InputController::setCursorMode(bool enabled) {
|
||||
if (enabled)
|
||||
_inputFlags |= 1;
|
||||
else
|
||||
_inputFlags &= ~1;
|
||||
}
|
||||
|
||||
void CInputController::drawCursor(int x, int y) {
|
||||
void InputController::drawCursor(int x, int y) {
|
||||
if (_cursorIndex == -1)
|
||||
return;
|
||||
|
||||
@ -105,7 +105,7 @@ void CInputController::drawCursor(int x, int y) {
|
||||
_cursorBounds.top + _cursorsArray[_cursorIndex]->itemPictureOffsY, 0, 0);
|
||||
}
|
||||
|
||||
void CInputController::setCursor(int cursorId) {
|
||||
void InputController::setCursor(int cursorId) {
|
||||
if (_cursorIndex == -1 || _cursorsArray[_cursorIndex]->pictureId != cursorId) {
|
||||
_cursorIndex = -1;
|
||||
|
||||
|
@ -45,7 +45,7 @@ struct CursorInfo {
|
||||
|
||||
typedef Common::Array<CursorInfo *> CursorsArray;
|
||||
|
||||
class CInputController {
|
||||
class InputController {
|
||||
//CObject obj;
|
||||
int _flag;
|
||||
int _inputFlags;
|
||||
@ -59,8 +59,8 @@ class CInputController {
|
||||
Picture *_cursorItemPicture;
|
||||
|
||||
public:
|
||||
CInputController();
|
||||
~CInputController();
|
||||
InputController();
|
||||
~InputController();
|
||||
|
||||
void setInputDisabled(bool state);
|
||||
void addCursor(CursorInfo *cursor);
|
||||
|
Loading…
x
Reference in New Issue
Block a user