Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Stats::Stats(int SetHealth, int SetAttack, int SetDefence, int SetSpecialAttack) {
- Health = SetHealth;
- Attack = SetAttack;
- Defence = SetDefence;
- SpecialAttack = SetSpecialAttack;
- }
- // This is the first monster battle interaction.
- void FelixBattle(int FelixBattle) {
- // This creates a pointer object from the Monster class.
- // Monster FightController*;
- // Creates the stringstream object to facilitate the use of game text for this battle scenario.
- std::stringstream FelixString;
- // This is game text that will be moved around when the game logic is implemented.
- FelixString << "Felix steps forward, wielding a blunt sword and an old helmet.";
- FelixString << "You Feel tense but confident that you can defeat him with ease.";
- }
- void Monster::FighController() {
- int playerTurn;
- int MonsterTurn;
- // Creates the variable for looping the if statements
- bool BattleLoop;
- // Both of these will loop until someone dies.
- // This is the scenario where the player is attacking the monster.
- while (BattleLoop == true) {
- if (playerTurn) {
- int MonsterDefence;
- int PlayerAttack;
- if (PlayerAttack > MonsterDefence) {
- // Take the difference from the Monster Defence value
- // Call the Stats constructor here and set the required variables up for the battle.
- }
- }
- }
- // This is the scenario where the monster is attacking the player.
- while (BattleLoop == true) {
- if (MonsterTurn) {
- int MonsterAttack;
- int PlayerDefence;
- if (MonsterAttack > PlayerDefence) {
- // Take the differnce from the Player Defence value
- }
- }
- }
- }
- FelixBattle(' ');
Add Comment
Please, Sign In to add comment