#include <CInteractiveSobController.h>
Inherits WWCOMMON::ISobController.
Public Member Functions | |
| CInteractiveSobController (CActorProxy *sob) | |
| virtual | ~CInteractiveSobController () |
| void | update () |
| const char * | getControllerName () |
Private Member Functions | |
| void | doMove (int fwd_back) |
| void | doStrafe (int strafe) |
| void | doOrient (int orient) |
Private Attributes | |
| CActorProxy * | m_Subject |
| int | m_fwd_back |
| int | m_strafe |
| int | m_orient |
Static Private Attributes | |
| static const char * | m_Name = "interactive" |
Definition at line 50 of file CInteractiveSobController.h.
| WWCLIENT::CInteractiveSobController::CInteractiveSobController | ( | CActorProxy * | sob | ) |
Definition at line 60 of file CInteractiveSobController.cpp.
References m_fwd_back, m_orient, m_strafe, and m_Subject.
| WWCLIENT::CInteractiveSobController::~CInteractiveSobController | ( | ) | [virtual] |
Definition at line 65 of file CInteractiveSobController.cpp.
| void WWCLIENT::CInteractiveSobController::doMove | ( | int | fwd_back | ) | [private] |
Definition at line 89 of file CInteractiveSobController.cpp.
References WWCOMMON::ISimulationObj::getSobId(), WWCOMMON::ISingleton< CGameEventServer >::instance(), m_fwd_back, m_Subject, nlinfo, WWCOMMON::CStateFactory::ST_MV_BACKWARD, WWCOMMON::CStateFactory::ST_MV_FORWARD, and WWCOMMON::CStateFactory::ST_MV_IDLE.
Referenced by update().
| void WWCLIENT::CInteractiveSobController::doOrient | ( | int | orient | ) | [private] |
Definition at line 114 of file CInteractiveSobController.cpp.
References WWCOMMON::ISimulationObj::getSobId(), WWCOMMON::ISingleton< CGameEventServer >::instance(), m_orient, m_Subject, nlinfo, WWCOMMON::CStateFactory::ST_OR_IDLE, WWCOMMON::CStateFactory::ST_OR_TURNLEFT, and WWCOMMON::CStateFactory::ST_OR_TURNRIGHT.
Referenced by update().
| void WWCLIENT::CInteractiveSobController::doStrafe | ( | int | strafe | ) | [private] |
Definition at line 139 of file CInteractiveSobController.cpp.
References WWCOMMON::ISimulationObj::getSobId(), WWCOMMON::ISingleton< CGameEventServer >::instance(), m_strafe, m_Subject, nlinfo, WWCOMMON::CStateFactory::ST_ST_IDLE, WWCOMMON::CStateFactory::ST_ST_LEFT, and WWCOMMON::CStateFactory::ST_ST_RIGHT.
Referenced by update().
| const char * WWCLIENT::CInteractiveSobController::getControllerName | ( | ) | [virtual] |
Implements WWCOMMON::ISobController.
Definition at line 85 of file CInteractiveSobController.cpp.
References m_Name.
| void WWCLIENT::CInteractiveSobController::update | ( | ) | [virtual] |
Implements WWCOMMON::ISobController.
Definition at line 69 of file CInteractiveSobController.cpp.
References doMove(), doOrient(), doStrafe(), WWCOMMON::ISingleton< CInputTask >::instance(), WWCLIENT::CInputTask::kbDown(), NLMISC::KeyA, NLMISC::KeyD, NLMISC::KeyE, NLMISC::KeyQ, NLMISC::KeyS, NLMISC::KeyW, m_Subject, and nlinfo.
Definition at line 66 of file CInteractiveSobController.h.
Referenced by CInteractiveSobController(), and doMove().
const char * WWCLIENT::CInteractiveSobController::m_Name = "interactive" [static, private] |
Definition at line 60 of file CInteractiveSobController.h.
Referenced by getControllerName().
Definition at line 68 of file CInteractiveSobController.h.
Referenced by CInteractiveSobController(), and doOrient().
Definition at line 67 of file CInteractiveSobController.h.
Referenced by CInteractiveSobController(), and doStrafe().
Definition at line 59 of file CInteractiveSobController.h.
Referenced by CInteractiveSobController(), doMove(), doOrient(), doStrafe(), and update().
1.6.1