Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
4007CEM_Monster_Souls/monsters.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
36 lines (28 sloc)
854 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} | |