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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
#include "stdafx.h"
#include "Class_Pokemon.h"
#include "Misc_header.h"
class Player
{
public:
Pokemon m_cVenusaur;
Pokemon m_cBlastoise;
Pokemon m_cBlaziken;
Player(name eName, name eName2, name eName3)
: m_cVenusaur(eName), m_cBlastoise(eName2), m_cBlaziken(eName3)
{
}
};
#endif
#pragma once
#ifndef CLASS_POKEMON_H
#define CLASS_POKEMON_H
#include <cstdlib>
#include "stdafx.h"
#include "Misc_header.h"
class Pokemon
{
friend void BattleTurn(Pokemon &X, Pokemon &Y);
private:
int m_nHP;
int m_nSpeed;
int m_nAttack;
int m_nDefense;
type m_eType;
name m_eName;
bool m_bActive;
public:
Pokemon(name eName)
{
switch (eName)
{
case VENUSAUR:
m_nHP = 300;
m_nSpeed = 80;
m_nAttack = 82;
m_nDefense = 83;
m_eType = GRASS;
m_eName = eName;
break;
case BLAZIKEN:
m_nHP = 300;
m_nSpeed = 100;
m_nAttack = 120;
m_nDefense = 70;
m_eType = GRASS;
m_eName = eName;
break;
case BLASTOISE:
m_nHP = 300;
m_nSpeed = 78;
m_nAttack = 83;
m_nDefense = 100;
m_eType = GRASS;
m_eName = eName;
break;
default: exit(0);
}
m_bActive = false;
}
Pokemon()
{
int m_nHP = 0;
int m_nSpeed = 0;
int m_nAttack = 0;
int m_nDefense = 0;
type m_eType = CUNT;
}
int GetHP() { return m_nHP; }
int GetSpeed() { return m_nSpeed; }
int GetAttack() { return m_nAttack; }
int GetDefense() { return m_nDefense; }
int GetType() { return m_eType; }
bool GetIsActive() { return m_bActive; }
};
#endif
#pragma once
#ifndef MISC_HEADER_H
#define MISC_HEADER_H
#include "stdafx.h"
#include "Class_Pokemon.h"
#include "Class_Player.h"
unsigned int generate(int nMax);
enum move
{
NONE, // 0
FLAMETHROWER = 95, // 1
SURF = 96, // 2
PETALDANCE = 70, // 3
FIREBLAST = 120, // 4
HYDROPUMP = 121, // 5
FRENZYPLANT = 150, // 6
HYPERBEAM = 151, // 7
SLASH = 95, // 8
};
enum name
{
SHIT, // 0
VENUSAUR,
BLAZIKEN,
BLASTOISE,
};
enum type
{
NILL, // 0
GRASS,
FIRE,
WATER,
GROUND,
FLYING,
NORMAL,
DRAGON,
};
#endif
|