home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Esportes / CrossingCup.swf / scripts / __Packages / CTeam.as < prev    next >
Text File  |  2007-12-11  |  906b  |  33 lines

  1. class CTeam
  2. {
  3.    function CTeam(_id, _flagid, _teamname, _shirtcolor1, _pantscolor1, _shirtcolor2, _pantscolor2, _goalie, _cornerkicker, _kicker)
  4.    {
  5.       this.id = _id;
  6.       this.flagid = _flagid;
  7.       this.teamname = _teamname;
  8.       this.shirtcolor1 = _shirtcolor1;
  9.       this.pantscolor1 = _pantscolor1;
  10.       this.shirtcolor2 = _shirtcolor2;
  11.       this.pantscolor2 = _pantscolor2;
  12.       this.goalie = _goalie;
  13.       this.cornerkicker = _cornerkicker;
  14.       this.kicker = _kicker;
  15.    }
  16.    function restartTeam(_group)
  17.    {
  18.       this.group = _group;
  19.       this.won = 0;
  20.       this.lost = 0;
  21.       this.tied = 0;
  22.       this.score = 0;
  23.       this.gap = 0;
  24.       this.points = 0;
  25.       this.goalin = 0;
  26.    }
  27.    function calculateScore()
  28.    {
  29.       this.score = this.won * 3 + this.tied;
  30.       this.points = this.score * 1000 + this.gap * 100 + this.goalin * 10;
  31.    }
  32. }
  33.