|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.gtroids.stats.GameStats
Handles the game stats like player points, ships, bombs, current level, etc.
| Constructor Summary | |
GameStats()
Constructor for GameStats. |
|
| Method Summary | |
void |
addBomb()
Adds a bomb to the players account |
void |
addExtraShip()
Adds an extra ship to the players account |
void |
addPoints(int points2add)
Add Points to the players account |
boolean |
checkoutBomb()
Checks out a bomb from the players account. |
boolean |
checkoutShip()
Checks out a ship from the players account. |
void |
countEnemyKilled()
Counts the killed enemies of the player. |
void |
decreasePointsFactor()
Decreases the pointsFactor |
protected void |
finalize()
|
WordReader |
getHighScoreReader()
Returns the highScoreReader. |
int |
getKillsLeftForNextBoss()
Returns the number of enemy kills left for next boss |
int |
getLevel()
Returns the current level |
int |
getPointsFactor()
Returns the pointsFactor |
void |
increaseLevel()
Increases the current level |
void |
increasePointsFactor()
Increases the pointsFactor |
boolean |
isEnteringHighScore()
Returns true, if the game is in entering highScore mode. |
boolean |
isGameRunning()
Returns true, if a game is running. |
boolean |
isPaused()
Returns true, if the game is paused |
void |
markCheatUsed()
Mark the game as played with cheatcodes Saving highscore will be disabled, if using cheats. |
void |
paint(java.awt.Graphics g,
Vector2D panelBounds)
Paints the stats into the passed Graphics |
void |
resetEnemiesKilled()
Resets the number of enemies killed |
void |
saveHighScore()
Saves a highscore to the remote list |
void |
setHighScoreList(java.util.List highScoreList)
Sets the highScoreList |
void |
setPaused(boolean paused)
If set to true, some actions for pausing the game will be done |
void |
startNewGame()
Starts a new game |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GameStats()
| Method Detail |
public void startNewGame()
public void saveHighScore()
public void paint(java.awt.Graphics g,
Vector2D panelBounds)
g - Graphics to paint intopanelBounds - the bounds of the gamePanelpublic void addPoints(int points2add)
points2add - the points to addpublic void addExtraShip()
public boolean checkoutShip()
public boolean isGameRunning()
public boolean isEnteringHighScore()
public boolean isPaused()
public void setPaused(boolean paused)
paused - true = pause, false = unpausepublic boolean checkoutBomb()
public void addBomb()
public void setHighScoreList(java.util.List highScoreList)
highScoreList - The highScoreList to set.public WordReader getHighScoreReader()
public void increasePointsFactor()
public void decreasePointsFactor()
public int getPointsFactor()
public void markCheatUsed()
public int getLevel()
public void increaseLevel()
public void countEnemyKilled()
public void resetEnemiesKilled()
public int getKillsLeftForNextBoss()
protected void finalize()
throws java.lang.Throwable
java.lang.ThrowableObject.finalize()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||