Ejemplo n.º 1
0
        public InternalPlayerMethods(int team, int id, int champion, GamePLay myGame)
        {
            MyTeam      = team;
            PlayerId    = id;
            MyChampion  = champion;
            this.myGame = myGame;
            switch (champion)
            {
            case 0:
                maxHp = 1000;
                break;

            case 2:
                maxHp = 800;
                break;

            case 1:
                maxHp = 1500;
                break;

            default:
                //WTF HAPPENED
                break;
            }
            currentHp = maxHp;
        }
Ejemplo n.º 2
0
 public Match(PlayerDataHolder player, MatchType type)
 {
     matchType = type;
     if (matchType != MatchType.Tutorial)
     {
         return;
     }
     _mapOrder.Add(Dictionaries.dictionaries.Maps[1]); //Maps.ParseIntToMap(mapOrder);
     _matchID      = Random.Range(1, 10000000);
     currentPlayer = player;
     player.SetMatchId(_matchID);
     myGamePLay = new GamePLay(_currentBindMapId, this);
     Dictionaries.dictionaries.Matches.Add(_matchID, this);
     _currentBindMapId = 1;
 }