RovkirHexus

UnitClass

Jun 8th, 2016
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. package feAttempt;
  2.  
  3. public class UnitClass extends Sprite{
  4.     private Weapon heldWeapon;
  5.     private String unitClass;
  6.     private String name;
  7.     private int[] stats;
  8.  
  9.     public UnitClass(int[] stats, String unitClass, String name, String spriteName, Weapon heldWeapon){
  10.         super.setImageFileName(spriteName);
  11.         this.heldWeapon = heldWeapon;
  12.         this.unitClass = unitClass;
  13.         this.name = name;
  14.         this.stats = stats;
  15.     }
  16.    
  17.     public Weapon getWeapon(){
  18.         return heldWeapon;
  19.     }
  20.    
  21.     public String getName(){
  22.         return name;
  23.     }
  24.    
  25.     public String getUnitClass(){
  26.         return unitClass;
  27.     }
  28.    
  29.     public int[] getStats(){
  30.         return stats;
  31.     }
  32. }
Add Comment
Please, Sign In to add comment