Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Human extends Entity{
- public Human (){
- this(1.0);
- }
- public Human(double health){
- super();
- setSymbol();
- setHealth(health);
- setStamina(0.80);
- strength = 1.0;
- aggressiveness = Math.random();
- attackMessage = "Swings a sword";
- }
- private void setSymbol(){
- symbol = (Math.random() > 0.5)? "\uD83D\uDC69" : "\uD83D\uDC68";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement