Question: Player now gains abilities with each Level ( using strategy pattern ) . Level: Basic Attack Heal Spell - heal 2 x strength on distribution
Player now gains abilities with each Level using strategy pattern
Level:
Basic Attack
Heal Spell heal x strength on distribution SP
Fury Attack attack first two creatures twice and makes them afraid, permanently lose strength.
Player class has STL set of std::uniqueptr
iSrategy has the following
const char commandToActivate;
const std::string actionName;
Object owner;
virtualvoidexecutestd::vector & objects;
Your turn:
Level:
: Fireball Spell deals basic attack damage to first creatures. SP
: Fear Spell chance of causing fear. Affects all creatures. Reduces there chance to attack to SP
For fun:
Give monsters spell resistance based on type.
reduces fireball damage by percentage
reduces chance of causing fear by percentage
Give monsters differing attacks and spells!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
