Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F630293
PlayerSelectController.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
PlayerSelectController.h
View Options
#ifndef PLAYERSELECTCONTROLLER_H
#define PLAYERSELECTCONTROLLER_H
#include
"SDL.h"
#include
"FighterEnum.h"
#include
"common.h"
class
CPlayerSelectView
;
/**
Controller part model-view-controller architecture of the player selection.
\ingroup PlayerSelect
*/
class
CPlayerSelectController
{
public
:
CPlayerSelectController
(
bool
a_bNetworkGame
);
~
CPlayerSelectController
();
void
DoPlayerSelect
();
protected
:
void
HandleEvents
();
void
HandleKey
(
int
a_iPlayer
,
int
a_iKey
);
bool
HandleChatKey
(
SDL_Event
&
a_roEvent
);
void
HandleNetwork
();
void
GetThisTick
();
void
MarkFighters
();
void
SetPlayerActive
(
int
a_iPlayer
,
bool
a_bActive
);
void
ActivateNextPlayer
(
int
a_iCurrentPlayer
);
int
GetTeamSize
(
int
a_iPlayer
);
bool
IsFighterSelectable
(
FighterEnum
a_enFighter
);
protected
:
CPlayerSelectView
*
m_poView
;
bool
m_bNetworkGame
;
bool
m_bTeamMode
;
bool
m_bChatActive
;
char
m_acChatMsg
[
256
];
int
m_iNumberOfSelectableFighters
;
bool
m_abPlayerActive
[
MAXPLAYERS
];
int
m_iGameSpeed
;
int
m_iThisTick
;
int
m_iLastTick
;
};
#endif
// PLAYERSELECTCONTROLLER_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 9:09 AM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
133675
Default Alt Text
PlayerSelectController.h (1 KB)
Attached To
Mode
R76 OpenMortal
Attached
Detach File
Event Timeline