Exemplo n.º 1
0
    public bool tryAttackCharacter(int attacker_id, int target_id, Position attacker_pos, Position target_pos)
    {
        JSONObject message = JSONWriter.AttackCharacterJSON(attacker_id, target_id, attacker_pos, target_pos);

        send(message.ToString());
        return(readAck("Attack" + control.getPlayerId() + " ack"));
    }