Question: PowerPlay Player now gains abilities with each Level ( using strategy pattern ) . Level: Basic Attack Heal Spell - heal 2 x strength on

PowerPlay
Player now gains abilities with each Level (using strategy pattern).
Level:
Basic Attack
Heal Spell - heal 2x strength on distribution (2SP)
Fury Attack - attack first two creatures twice and makes them afraid, permanently lose 1 strength.
Player class has STL set of std::unique_ptr
iSrategy has the following
const char commandToActivate;
const std::string actionName;
Object* owner;
virtualvoidexecute(std::vector >& objects)=0;
Your turn:
Level:
4: Fireball Spell - deals basic attack damage to first 3 creatures. (5SP)
5: Fear Spell -50% chance of causing fear. Affects all creatures. Reduces there chance to attack to 50%(3SP)
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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!