Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. public Ripley(){
  2. this("ellen");
  3. }
  4.  
  5. public Ripley(String name){
  6.  
  7. super(name);
  8. backpack=new BackpackImpl(5);
  9. setName("Ellen");
  10. setPosition(20,20);
  11. Animation animation;
  12. animation=new Animation("resources/sprites/player.png",32,32,100);
  13. animation.setPingPong(true);
  14. setAnimation(animation);
  15. weapon = new MockWeapon(20,100);
  16.  
  17.  
  18. //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  19. ripleyState= new Running(this);
  20. health=new Health(100);
  21. health.onDie(() -> {ripleyState=new Dying(this);
  22. });
  23.  
  24. //!!!!!!!!!!!!!!!!!!!!!!!!
  25.  
  26.  
  27. // energy=80;
  28. ammo=500;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement