Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
daea0db
commit 492a781
Showing
5 changed files
with
91 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
package game.struct; | ||
|
||
import game.Global; | ||
import game.Player; | ||
import game.Str; | ||
import game.util.Strings; | ||
|
||
public class HighScore | ||
{ | ||
public String company = ""; | ||
public String title = ""; | ||
public int score = 0; | ||
|
||
public void initFromPlayer(Player p, int score) | ||
{ | ||
Global.SetDParam(0, p.getPresident_name_1()); | ||
Global.SetDParam(1, p.getPresident_name_2()); | ||
Global.SetDParam(2, p.getName_1()); | ||
Global.SetDParam(3, p.getName_2()); | ||
company = Strings.GetString(Str.STR_HIGHSCORE_NAME); // get manager/company name string | ||
|
||
this.score = score; //p.old_economy[0].performance_history; | ||
title = Strings.GetString( Player.EndGameGetPerformanceTitleFromValue(score) ); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters