Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sk.tuke.oop.aliens;
- /**
- * Created by richa_000 on 21.10.2016.
- */
- public class Mjolnir extends Hammer
- {
- private int uses;
- public Mjolnir()
- {
- uses = 4;
- }
- public int getUses()
- {
- return this.uses;
- }
- public void use()
- {
- this.uses = (this.uses - 1);
- if(this.uses == 0)
- {
- this.getWorld().removeActor(this);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement