A. Create a constructor to create a Hero character
- A Hero has a name
- A Hero has health
- A Hero has a favourite food
- A Hero can talk saying their name
- A Hero has a collection of tasks to complete
B. Create a constructor to create Task objects
- A task has a difficulty level
- A task has an urgency level
- A task has a reward
- A task should be able to be marked as completed
C. Create a constructor to create Food objects.
- Food should have a name
- Food should have a replenishment value
D. Extend your hero.
- A hero should be able to eat food, and health should go up by the replenishment value
- If the food is their favourite food, their health should go up by 1.5 * value.
- A hero should be able to sort their tasks by difficulty, urgency or reward.
- A hero should be able to view tasks that are marked as completed or incomplete.
- Create a constructor to create Rat objects.
- Rats should be able to touch food, if they do the food becomes poisonous.
- Heroes that eat poisonous food should lose health.
Be creative. Extend the game! Give the hero super powers.
Create a super-villain who wants to take over the world!