-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.cpp
27 lines (25 loc) · 1.11 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "Entities/Entities.h"
#include <iostream>
int main() {
Character * orc = new Orc();
std::cout << "I'm " << orc->getDescription() << ".\n";
orc->wield(new Brick());
std::cout << "I'm " << orc->getDescription() << ".\n";
orc->carry(new Socks());
std::cout << "I'm " << orc->getDescription() << ".\n";
orc = new HalfWit(orc);
std::cout << "I'm " << orc->getDescription() << ".\n";
orc->setName("John");
std::cout << "I'm " << orc->getDescription() << ".\n";
orc->wear(new PlateArmor());
std::cout << "I'm " << orc->getDescription() << ".\n";
orc->carry(new SeveredHand());
std::cout << "I'm " << orc->getDescription() << ".\n";
std::cout << "My weight is " << orc->getWeight() << ".\n";
std::cout << "My strength is " << orc->getStrength() << ".\n";
std::cout << "My inteligence is " << orc->getInteligence() << ".\n";
std::cout << "My dexterity is " << orc->getDexterity() << ".\n";
std::cout << "My speed is " << orc->getSpeed() << ".\n";
std::cout << "My armor is " << orc->getArmor() << ".\n";
std::cout << "My power is " << orc->getPower() << ".\n";
}