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 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
|
class player
{
public:
/*player(int cls1, int lvl1, int exp1, int maxh1, int health1, int maxm1, int mana1, int maxs1, int stamina1, int weapon1, int armor1, int dmg1, int def1, int loc1)
{
setcls(cls1);
setlvl(lvl1);
setexp(exp1);
setmaxh(maxh1);
setmaxm(maxm1);
setmana(mana1);
setmaxs(maxs1);
setstamina(stamina1);
setweapon(weapon1);
setarmor(armor1);
setdmg(dmg1);
setdef(def1);
setloc(loc1);
}*/
void setstats(int cls1, int lvl1, int exp1, int maxh1, int health1, int maxm1, int mana1, int maxs1, int stamina1, int weapon1, int armor1, int dmg1, int def1, int loc1)
{
cls=cls1;
lvl=lvl1;
exp=exp1;
maxh=maxh1;
health=health1;
maxm=maxm1;
mana=mana1;
maxs=maxs1;
stamina=stamina1;
weapon=weapon1;
armor=armor1;
dmg=dmg1;
def=def1;
loc=loc1;
}
int getcls()
{
return cls;
}
int getlvl()
{
return lvl;
}
int getexp()
{
return exp;
}
int getmaxh()
{
return maxh;
}
int gethealth()
{
return health;
}
int getmaxm()
{
return maxm;
}
int getmana()
{
return mana;
}
int getmaxs()
{
return maxs;
}
int getstamina()
{
return stamina;
}
int getweapon()
{
return weapon;
}
int getarmor()
{
return armor;
}
int getdmg()
{
return dmg;
}
int getdef()
{
return def;
}
int getloc()
{
return loc;
}
void setcls(int x)
{
cls=x;
}
void setlvl(int x)
{
lvl=x;
}
void setexp(int x)
{
exp=x;
}
void setmaxh(int x)
{
maxh=x;
}
void sethealth(int x)
{
health=x;
}
void setmaxm(int x)
{
maxm=x;
}
void setmana(int x)
{
mana=x;
}
void setmaxs(int x)
{
maxs=x;
}
void setstamina(int x)
{
stamina=x;
}
void setweapon(int x)
{
weapon=x;
}
void setarmor(int x)
{
armor=x;
}
void setdmg(int x)
{
dmg=x;
}
void setdef(int x)
{
def=x;
}
void setloc(int x)
{
loc=x;
}
private:
int cls;
int lvl;
int exp;
int maxh;
int health;
int maxm;
int mana;
int maxs;
int stamina;
int weapon;
int armor;
int dmg;
int def;
int loc;
friend void fight(player &hero);
};
class SharathCity
{
};
//id, hp, damage, defense, expirience, level, aggresivnes.
class npc
{
public:
npc(int id1,int hp1, int dmg1, int def1, int exp1, int lvl1,int agro)
{
setid(id1);
sethp(hp1);
setdmg(dmg1);
setdef(def1);
setexp(exp1);
setlvl(lvl1);
setagression(agro);
}
int gethp()
{
return hp;
}
int getdmg()
{
return dmg;
}
int getexp()
{
return exp;
}
void setid(int a)
{
id=a;
}
void sethp(int a)
{
hp=a;
}
void setdmg(int a)
{
dmg=a;
}
void setdef(int a)
{
def=a;
}
void setexp(int a)
{
exp=a;
}
void setlvl(int a)
{
lvl=a;
}
void setagression (int a)
{
agro=a;
}
private:
int id;
int hp;
int dmg;
int def;
int exp;
int lvl;
int agro;
};
| |