home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
CrossingCup.swf
/
scripts
/
__Packages
/
CTeam.as
< prev
next >
Wrap
Text File
|
2007-12-11
|
906b
|
33 lines
class CTeam
{
function CTeam(_id, _flagid, _teamname, _shirtcolor1, _pantscolor1, _shirtcolor2, _pantscolor2, _goalie, _cornerkicker, _kicker)
{
this.id = _id;
this.flagid = _flagid;
this.teamname = _teamname;
this.shirtcolor1 = _shirtcolor1;
this.pantscolor1 = _pantscolor1;
this.shirtcolor2 = _shirtcolor2;
this.pantscolor2 = _pantscolor2;
this.goalie = _goalie;
this.cornerkicker = _cornerkicker;
this.kicker = _kicker;
}
function restartTeam(_group)
{
this.group = _group;
this.won = 0;
this.lost = 0;
this.tied = 0;
this.score = 0;
this.gap = 0;
this.points = 0;
this.goalin = 0;
}
function calculateScore()
{
this.score = this.won * 3 + this.tied;
this.points = this.score * 1000 + this.gap * 100 + this.goalin * 10;
}
}