- A
Character
should have aname
and ahealth
pool. - A
Character
'shealth
is initialized at100
and cannot go above this value. - A
Character
can either bealive
ordead
- when it reaches0
health
points. - A
Character
canattack
anotherCharacter
and deal1
damage point to its enemy'shealth
if it isn't alreadydead
. ACharacter
cannot attack itself... - A
Character
canheal
anotherCharacter
and return1
point to its ally'shealth
pool. ACharacter
can heal itself!
A
Character
can now have a job! Create ajobs
package to store them.
- A
Warrior
is aCharacter
that deals between0
and9
damage points to its enemy'shealth
! Moreover, aWarrior
can attack itself... - A
Warrior
can only heal itself.
- A
Mage
is aCharacter
that cannot deal any damage. - A
Mage
can heal anotherCharacter
and return between5
and10
points to its ally'shealth
pool. - From now on, a
Character
cannot exist without a job.
A
Character
may now belong to aFaction
!
- A newly created
Character
doesn't belong to anyFaction
. - A
Character
canjoin
aFaction
. - A
Character
canleave
itsFaction
. - A
Character
cannot deal damage to anotherCharacter
of the sameFaction
. - A
Character
can only heal anotherCharacter
of the sameFaction
.
- A
Character
can now damage non-character entities. - Anything that has
health
is considered anEntity
. - An
Entity
cannot deal damage and cannot heal nor be healed. - An
Entity
cannot belong to aFaction
.
- A
Faction
may now declare one or moreFaction
s as friends. - A
Character
cannot deal damage to anotherCharacter
of the sameFaction
or of one of its friends. - A
Character
can only heal anotherCharacter
of the sameFaction
or of one of its friends.
- A
Character
may now belong to one or moreFaction
s...