Commit 2ea4d696 authored by Chen Bill's avatar Chen Bill

update DuelMode init

parent 8cd5a43b
...@@ -127,7 +127,6 @@ inline bool check_msg_size(int size) { ...@@ -127,7 +127,6 @@ inline bool check_msg_size(int size) {
class DuelMode { class DuelMode {
public: public:
DuelMode(): host_player(nullptr), pduel(0), duel_stage(0) {}
virtual ~DuelMode() {} virtual ~DuelMode() {}
virtual void Chat(DuelPlayer* dp, unsigned char* pdata, int len) {} virtual void Chat(DuelPlayer* dp, unsigned char* pdata, int len) {}
virtual void JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {} virtual void JoinGame(DuelPlayer* dp, void* pdata, bool is_creater) {}
...@@ -147,16 +146,16 @@ public: ...@@ -147,16 +146,16 @@ public:
virtual void Surrender(DuelPlayer* dp) {} virtual void Surrender(DuelPlayer* dp) {}
virtual void GetResponse(DuelPlayer* dp, void* pdata, unsigned int len) {} virtual void GetResponse(DuelPlayer* dp, void* pdata, unsigned int len) {}
virtual void TimeConfirm(DuelPlayer* dp) {} virtual void TimeConfirm(DuelPlayer* dp) {}
virtual void EndDuel() {}; virtual void EndDuel() {}
public: public:
event* etimer; event* etimer { nullptr };
DuelPlayer* host_player; DuelPlayer* host_player{ nullptr };
HostInfo host_info; HostInfo host_info;
int duel_stage; int duel_stage{};
intptr_t pduel; intptr_t pduel{};
wchar_t name[20]; wchar_t name[20]{};
wchar_t pass[20]; wchar_t pass[20]{};
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment