コード例 #1
0
ファイル: Client.cs プロジェクト: cdfeasy/Zombies
 public void sendTurn(TurnActionEnum act,int position, long cardId,int turnNum)
 {
     UserAction action = new UserAction();
     action.Name = locname;
     action.Token = token;
     action.Action = (int)ActionTypeEnum.TURN;
     TurnAction turn=new TurnAction();
     turn.Action = (int)act;
     turn.Position = position;
     turn.CardId = cardId;
     turn.TurnNumber = turnNum;
     action.TurnAction = turn;
     send(action);
 }
コード例 #2
0
ファイル: Client.cs プロジェクト: cdfeasy/Zombies
 public void sendTurnAction(int turnNumber, long cardId, int position)
 {
     UserAction action = new UserAction();
      action.Name = locname;
      action.Token = token;
      action.Action = (int)ActionTypeEnum.TURN;
      TurnAction ta = new TurnAction();
      ta.Action = (int)TurnActionEnum.turn;
      ta.CardId = cardId;
      ta.Position = position;
      ta.TurnNumber = turnNumber;
      action.TurnAction = ta;
      send(action);
 }
コード例 #3
0
ファイル: Client.cs プロジェクト: cdfeasy/Zombies
 public void sendSurrender(int turnNumber)
 {
     UserAction action = new UserAction();
     action.Name = locname;
     action.Token = token;
     action.Action = (int)ActionTypeEnum.TURN;
     TurnAction ta = new TurnAction();
     ta.Action=(int)TurnActionEnum.surrender;
     ta.TurnNumber=turnNumber;
     action.TurnAction = ta;
     send(action);
 }