2 回答
TA贡献1868条经验 获得超4个赞
GAME_PLAYER、MAX_COUNT 应该都是常量吧?
1 2 3 4 5 6 7 8 9 10 | public class CMD_S_GameStart {
public byte[] cbValueOrder=new byte[GAME_PLAYER]; //等级数值 int[,]wPersistInfo=new int[GAME_PLAYER,2]; //游戏信息
public byte[] cbCardData=new byte[MAX_COUNT]; //扑克列表 public byte[] bCardCount=new byte[GAME_PLAYER]; //每个人发的牌的张数
} |
TA贡献1866条经验 获得超5个赞
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | public class CMD_S_GameStart { const int GAME_PLAYER=1;//自己去找这两个宏的值 const int MAX_COUNT=10; public byte[] cbValueOrder; //等级数值 public int[][]wPersistInfo; //游戏信息
public byte[] cbCardData; //扑克列表 public byte[] bCardCount; //每个人发的牌的张数 public CMD_S_GameStart() { cbValueOrder=new byte[GAME_PLAYER]; wPersistInfo=new int[GAME_PLAYER][]; for (int i = 0; i < wPersistInfo.Length; i++) { wPersistInfo[i]=new int[2]; } cbCardData=new byte[MAX_COUNT]; bCardCount=new byte[GAME_PLAYER]; }
} |
- 2 回答
- 0 关注
- 805 浏览
添加回答
举报