Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pl.gda.biomed.wjp;
- /**
- * Klasa pomocnicza z zapisem stanu gry
- * @author Jacek Rumiński
- */
- class GameStatus{
- /** Liczba zgromadzonych punktów na danynm poziomie*/
- public int points;
- /** Numer poziomu */
- public int level;
- /** Czas gry na danym poziomie*/
- public double time;
- /**
- * Zeruj parametry gry
- */
- public void reset(){
- points=0;
- level=1;
- time=0.0;
- }//reset()
- /**
- * Zeruj licznę punktów
- */
- public void resetPoints(){
- points=0;
- }//resetPoints()
- /**
- * Zwiększ wskaźnik poziomu
- */
- public void nextLevel(){
- level++;
- }//nextLevel()
- }//koniec class GameStatus
Advertisement
Add Comment
Please, Sign In to add comment