-
Notifications
You must be signed in to change notification settings - Fork 0
/
monsters.h
36 lines (28 loc) · 854 Bytes
/
monsters.h
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
28
29
30
31
32
33
34
35
36
#pragma once
#include <iostream>
#include "Windows.h"
class monsters
{
public:
int monster_lvl;
const int monster_maxHealth;
int monster_currentHealth;
std::string name;
monsters() : monster_maxHealth(100){
monster_currentHealth = 100;
};
void monster_intro(){
system("Color 0C");
std::cout << "haha be ready to fight " << std::endl;
system("Color 07");
}
};
int vamp_squid(){
monsters vampireSquid;
vampireSquid.monster_lvl = 2;
vampireSquid.name = "Vampire Squid";
std::cout << "a Vampire Squid of level " << vampireSquid.monster_lvl << " appears !" << "\n";
std::cout << "this is no blood sucker, it got poisnous fangs that can rot you in less than 5 seconds" << "\n";
vampireSquid.monster_intro();
return 0;
}