2014-10-15

posted Oct 15, 2014, 8:14 AM by Samuel Konstantinovich   [ updated Oct 15, 2014, 8:22 AM ]
Adventurer()
STR
DEX
INT
HP
name

get__()  //all instance variables
set__()  // STR,DEX,INT, HP

String toString()

boolean hit(Adventurer other)  

void attack(Adventurer other)
   determine if you hit/miss then print out the results
   if a hit is made, reduce the other HP by a small amount.

void specialAttack(Adventurer other)
   determine if you hit/miss then print out the results
   if a hit is made, reduce the other HP by a larger amount.


The following classes need some methods overridden.
Warrior
  rage  ( +get/set)

  attack+special attack are stronger,
  special attack uses rage.
  
Wizard
  mana( +get/set)
  attack is weaker
  special attack uses mana and is very powerful

Rogue
  endurance( +get/set)
  attack is the same as an Adventurer
  special attack uses endurance and is more powerful


Things to think about:
How much damage should be dealt?  
How should wizard calculate hit%?  - Magic shouldn't be dex!  (we need a hitMagic() method to do a similar calculation)
Comments