Luninariel

Monsters - Ninja

Dec 7th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. package edu.missouriwestern.cpozo.csc254.monsters;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. public class Ninja extends Warrior implements Nocturnal {
  6.  
  7. public Ninja (){
  8. super();
  9. symbol = "\uD83D\uDC31\u200D\uD83D\uDC64";
  10. aggressiveness = 1.0;
  11. strength = 1.4;
  12. setStamina(1.0 + Math.random());
  13. attackMessage = ninjaAttacks();
  14. passiveMessage = "fades into the shadows";
  15.  
  16. }
  17. public String ninjaAttacks(){
  18. ArrayList<String> attackphrases = new ArrayList<String>();
  19. attackphrases.add(" swings his Ninja sword expertly");
  20. attackphrases.add("shoots a poisoned dart from his blowgun");
  21. attackphrases.add("bashes with his nunchaku");
  22. attackphrases.add("flings a throwing star");
  23. int pick = (int)(Math.random()*4.0);
  24. return attackphrases.get(pick);
  25. }
  26. @Override
  27. public void changeMessages() {
  28.  
  29. }
  30.  
  31. public static void main(String[] args) {
  32.  
  33.  
  34. }
  35.  
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment