home *** CD-ROM | disk | FTP | other *** search
- class CGameOverScreen extends CScreen
- {
- var txChamp;
- var fc1;
- var fc2;
- var fc3;
- var fc4;
- var fc5;
- function CGameOverScreen()
- {
- super();
- if(_global.AppStarted == undefined)
- {
- return undefined;
- }
- CTournament.ins().endTournament();
- CTournament.ins().finishedPhase();
- if(CTournament.ins().tournamentPhase == 8)
- {
- var _loc4_ = CTournament.ins().winnerof(CTournament.ins().FinalMatches[0]);
- if(_loc4_ == CTeamManager.ins().currentTeam)
- {
- this.txChamp._visible = true;
- this.fc1._visible = true;
- this.fc2._visible = true;
- this.fc3._visible = true;
- this.fc4._visible = true;
- this.fc5._visible = true;
- this.txChamp.text = _loc4_.teamname;
- this.fc1.toid = _loc4_.flagid;
- this.fc1.setFlag(_loc4_.flagid);
- this.fc2.toid = _loc4_.flagid;
- this.fc2.setFlag(_loc4_.flagid);
- this.fc3.toid = _loc4_.flagid;
- this.fc3.setFlag(_loc4_.flagid);
- this.fc4.toid = _loc4_.flagid;
- this.fc4.setFlag(_loc4_.flagid);
- this.fc5.toid = _loc4_.flagid;
- this.fc5.setFlag(_loc4_.flagid);
- this.gotoAndStop(2);
- }
- }
- else
- {
- this.txChamp._visible = false;
- this.fc1._visible = false;
- this.fc2._visible = false;
- this.fc3._visible = false;
- this.fc4._visible = false;
- this.fc5._visible = false;
- }
- }
- function endButton()
- {
- _global.__DISPATCH({type:"endScreen",name:this._name});
- }
- }
-