Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package edu.missouriwestern.cpozo.csc254.monsters;
- import java.util.ArrayList;
- public class Ninja extends Warrior implements Nocturnal {
- public Ninja (){
- super();
- symbol = "\uD83D\uDC31\u200D\uD83D\uDC64";
- aggressiveness = 1.0;
- strength = 1.4;
- setStamina(1.0 + Math.random());
- attackMessage = ninjaAttacks();
- passiveMessage = "fades into the shadows";
- }
- public String ninjaAttacks(){
- ArrayList<String> attackphrases = new ArrayList<String>();
- attackphrases.add(" swings his Ninja sword expertly");
- attackphrases.add("shoots a poisoned dart from his blowgun");
- attackphrases.add("bashes with his nunchaku");
- attackphrases.add("flings a throwing star");
- int pick = (int)(Math.random()*4.0);
- return attackphrases.get(pick);
- }
- @Override
- public void changeMessages() {
- }
- public static void main(String[] args) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment