Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Ripley(){
- this("ellen");
- }
- public Ripley(String name){
- super(name);
- backpack=new BackpackImpl(5);
- setName("Ellen");
- setPosition(20,20);
- Animation animation;
- animation=new Animation("resources/sprites/player.png",32,32,100);
- animation.setPingPong(true);
- setAnimation(animation);
- weapon = new MockWeapon(20,100);
- //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- ripleyState= new Running(this);
- health=new Health(100);
- health.onDie(() -> {ripleyState=new Dying(this);
- });
- //!!!!!!!!!!!!!!!!!!!!!!!!
- // energy=80;
- ammo=500;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement