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); }
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); }
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); }