Exemplo n.º 1
0
        // Send a move to a match
        public void SendMove(OpenMatch m,string move)
        {
            IDictionary<string, int> _rewardItems = new Dictionary<string,int>();
            IDictionary<string, int> _attackItems = new Dictionary<string,int>();
            IDictionary<string, int> _selectedItems = new Dictionary<string,int>();

            //
             // _rewardItems.put("bomb_01", 1); _rewardItems.put("amazing_powerup",
             //* 1);
             //
            _attackItems.Add(move, 1);
            //*
             //* _selectedItems.put("bomb_01", 1);
             //* _selectedItems.put("amazing_powerup",1);
             //

            m.sendMove(match.getMoveNum(), "test attack for move: " + m.getMoveNum(),_rewardItems, _attackItems, false, _selectedItems).async(delegate(ActionMatchMove action) {
                GetMatchStatus(m);
            });
        }
Exemplo n.º 2
0
 // Select items to be used in a move
 public void SelectItems(OpenMatch m, IDictionary<string, int> it)
 {
     m.selectItems(it,m.getMoveNum()).async (delegate(ActionMatchSelectItems action) {
     });
 }