racewarinfo.h
来自「天之炼狱1服务器端源文件游戏服务端不完整」· C头文件 代码 · 共 71 行
H
71 行
//--------------------------------------------------------------------------------// // Filename : RaceWarInfo.h // Written By : // Description : // //--------------------------------------------------------------------------------#ifndef __RACE_WAR_LIST_H__#define __RACE_WAR_LIST_H__// include files#include "Packet.h"#include "PacketFactory.h"#include "WarInfo.h"//--------------------------------------------------------------------------------//// class WarInfo;//// 窍唱狼 傈里俊 措茄 沥焊////--------------------------------------------------------------------------------class RaceWarInfo : public WarInfo {public : typedef ValueList<ZoneID_t> ZoneIDList;public : RaceWarInfo() {} ~RaceWarInfo() {} // 涝仿胶飘覆(滚欺)栏肺何磐 单捞鸥甫 佬绢辑 菩哦阑 檬扁拳茄促. void read(SocketInputStream & iStream) throw(ProtocolException, Error); // 免仿胶飘覆(滚欺)栏肺 菩哦狼 官捞呈府 捞固瘤甫 焊辰促. void write(SocketOutputStream & oStream) const throw(ProtocolException, Error); PacketSize_t getSize() const throw() { return WarInfo::getSize() + m_CastleIDs.getPacketSize(); } static PacketSize_t getMaxSize() throw() { return WarInfo::getMaxSize() + ZoneIDList::getPacketMaxSize(); } // get packet's debug string string toString() const throw();public : WarType_t getWarType() const { return WAR_RACE; } ZoneIDList& getCastleIDs() { return m_CastleIDs; } void addCastleID(ZoneID_t zid) { m_CastleIDs.addValue( zid ); } void operator = (const RaceWarInfo& RWI) { m_StartTime = RWI.m_StartTime; m_RemainTime = RWI.m_RemainTime; m_CastleIDs = RWI.m_CastleIDs; }private : ZoneIDList m_CastleIDs; // 傈里吝牢 己};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?