Advertisement
CoderNoOne

Untitled

Jan 24th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. public enum GameEngineEnum {
  2.  
  3.   INSTANCE("Duke");
  4.  
  5.   private int hp = 100;
  6.   private String characterName = "";
  7.  
  8.   GameEngineEnum(String name) {
  9.     this.characterName = name;
  10.  
  11.   }
  12.  
  13.   public int getHp() {
  14.     return hp;
  15.   }
  16.  
  17.   public String getCharacterName() {
  18.     return characterName;
  19.   }
  20.  
  21.   public void run() {
  22.     while (true) {
  23.       //czekamy na input gracza
  24.       //zmienamy stan gry
  25.       //renderujemy grafike
  26.     }
  27.   }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement