Advertisement
Jnk1296

Starfield Profile

Feb 24th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.41 KB | None | 0 0
  1. package net.risenphoenix.jnk.StarField.Profiles;
  2.  
  3. import java.io.Serializable;
  4.  
  5. import net.risenphoenix.jnk.StarField.Entity.PlayerEntity;
  6. import net.risenphoenix.jnk.StarField.Settings.EntityEngineStateObject;
  7.  
  8. public class Profile implements Serializable{
  9.    
  10.     private static final long serialVersionUID = -6596791076833052603L;
  11.  
  12.     /* PROFILE INFORMATION */
  13.     private String profileName;
  14.    
  15.     /* ENTITY-ENGINE STATE INFORMATION */
  16.     private EntityEngineStateObject eeso = null;
  17.    
  18.     /* PLAYER INFORMATION */
  19.     private PlayerEntity player = null;
  20.    
  21.     /* ACHIEVEMENTS */
  22.     private boolean achMove = false;            // ACHIEVEMENT_MOVE
  23.     private boolean achFire = false;            // ACHIEVEMENT_FIRE
  24.     private boolean achHunBull = false;         // ACHIEVEMENT_HUNDRED_BULLETS
  25.     private boolean achThousBull = false;       // ACHIEVEMENT_THOUSAND_BULLETS
  26.     private boolean achEmptyClip = false;       // ACHIEVEMENT_EMPTY_CLIP
  27.     private boolean achTenThousBull = false;    // ACHIEVEMENT_TEN_THOUSAND_BULLETS
  28.     private boolean achTakeDam = false;         // ACHIEVEMENT_TAKE_DAMAGE
  29.     private boolean achKillAst = false;         // ACHIEVEMENT_KILL_ASTEROID
  30.     private boolean achKillScout = false;       // ACHIEVEMENT_KILL_SCOUT
  31.    
  32.     public Profile(String profileName) {
  33.         this.profileName = profileName;
  34.     }
  35.    
  36.     /* GETTERS */
  37.     public Profile getProfile() {
  38.         return this;
  39.     }
  40.    
  41.     public String getProfileName() {
  42.         return this.profileName;
  43.     }
  44.    
  45.     public EntityEngineStateObject getEntityEngineStateObject() {
  46.         return this.eeso;
  47.     }
  48.    
  49.     public PlayerEntity getPlayer() {
  50.         return this.player;
  51.     }
  52.    
  53.     public int getScore() {
  54.         return this.player.getHUD().getScore();
  55.     }
  56.    
  57.     public boolean hasAchievementMove() {
  58.         return this.achMove;
  59.     }
  60.    
  61.     public boolean hasAchievementFire() {
  62.         return this.achFire;
  63.     }
  64.    
  65.     public boolean hasAchievementHundredBullets() {
  66.         return this.achHunBull;
  67.     }
  68.    
  69.     public boolean hasAchievementThousandBullets() {
  70.         return this.achThousBull;
  71.     }
  72.    
  73.     public boolean hasAchievementEmptyClip() {
  74.         return this.achEmptyClip;
  75.     }
  76.    
  77.     public boolean hasAchievementTenThousandBullets() {
  78.         return this.achTenThousBull;
  79.     }
  80.    
  81.     public boolean hasAchievementTakeDamage() {
  82.         return this.achTakeDam;
  83.     }
  84.    
  85.     public boolean hasAchievementKillAsteroid() {
  86.         return this.achKillAst;
  87.     }
  88.    
  89.     public boolean hasAchievementKillScout() {
  90.         return this.achKillScout;
  91.     }
  92.    
  93.     /* SETTERS */
  94.     public void setEntityEngineStateObject(EntityEngineStateObject eeso) {
  95.         this.eeso = eeso;
  96.     }
  97.    
  98.     public void setPlayer(PlayerEntity player) {
  99.         this.player = player;
  100.     }
  101.    
  102.     public void setScore(int score) {
  103.         this.player.getHUD().setScore(score);
  104.     }
  105.    
  106.     public void setAchievementMove(boolean value) {
  107.         this.achMove = value;
  108.     }
  109.    
  110.     public void setAchievementFire(boolean value) {
  111.         this.achFire = value;
  112.     }
  113.    
  114.     public void setAchievementHundredBullets(boolean value) {
  115.         this.achHunBull = value;
  116.     }
  117.    
  118.     public void setAchievementThousandBullets(boolean value) {
  119.         this.achThousBull = value;
  120.     }
  121.    
  122.     public void setAchievementEmptyClip(boolean value) {
  123.         this.achEmptyClip = value;
  124.     }
  125.    
  126.     public void setAchievementTenThousandBullets(boolean value) {
  127.         this.achTenThousBull = value;
  128.     }
  129.    
  130.     public void setAchievementTakeDamage(boolean value) {
  131.         this.achTakeDam = value;
  132.     }
  133.    
  134.     public void setAchievementKillAsteroid(boolean value) {
  135.         this.achKillAst = value;
  136.     }
  137.    
  138.     public void setAchievementKillScout(boolean value) {
  139.         this.achKillScout = value;
  140.     }
  141.    
  142. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement