Zexanima

imp.cpp

Sep 29th, 2011
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include "Imp.h"
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. Imp::Imp()
  6. {
  7.     //ctor
  8. }
  9. void Imp::IncrStat(int s, int d, int a, int h, int e, int g, int l){
  10.  
  11.     Strg += s;
  12.     Def += d;
  13.     Agil += a;
  14.     Health += h;
  15.     Exp += e;
  16.     Gold += g;
  17.     Lvl += l;
  18.  
  19. }
  20.  
  21. void Imp::DecrStat(int s, int d, int a, int h, int e, int g, int l){
  22.  
  23.     Strg -= s;
  24.     Def -= d;
  25.     Agil -= a;
  26.     Health -= h;
  27.     Exp -= e;
  28.     Gold += g;
  29.     Lvl += l;
  30.  
  31. }
  32.  
  33. void Imp::set_level(int n){
  34.     Lvl = n;
  35. }
  36.  
  37. void Imp::lose_h(int n){
  38. Health -= n;
  39.  
  40. }
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment