#include <iostream>
using namespace std;
int Hours = 0;
string arm[] = { "sword", "bomb", "arrow" };
class Dragon {
public:
float morale;//怒气
int weapon;
static int strength;
};
class Ninja {
public:
int weapon1;
int weapon2;
static int strength;
};
class Iceman {
public:
int weapon;
static int strength;
};
class Lion {
public:
int loyalty;//忠诚度
static int strength;
};
class Wolf {
public:
static int strength;
};
class Headquarter {
int nDragon;
int nNinja;
int nIceman;
int nLion;
int nWolf;
int i;
int idNumber;
public:
int M;//生命源
string name;//司令部名
Headquarter(int v1 = 0, int v2 = 0, int v3 = 0, int v4 = 0, int v5 = 0, int v6 = 0, int v7 = 1) :nDragon(v1), nNinja(v2), nIceman(v3), nLion(v4), nWolf(v5), i(v6) , idNumber(v7){}
void born(int worriors[]) {
while (i < 5) {
if (worriors[i] == 0 && M >= Dragon::strength) {
Dragon dr
poj 魔兽世界之二:装备
最新推荐文章于 2022-12-07 22:29:42 发布