Luninariel

Monsters - Human

Dec 6th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. package edu.missouriwestern.cpozo.csc254.monsters;
  2.  
  3. public class Human extends Entity{
  4. public Human (){
  5. this(1.0);
  6. }
  7.  
  8. public Human(double health){
  9. super();
  10. setSymbol();
  11. setHealth(health);
  12. setStamina(0.80);
  13. strength = 1.0;
  14. aggressiveness = Math.random();
  15. attackMessage = "Swings a sword";
  16. }
  17. private void setSymbol(){
  18.  
  19. symbol = (Math.random() > 0.5)? "\uD83D\uDC69" : "\uD83D\uDC68";
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment