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
|
#include <iostream>
#include "PlayerClass.h"
using namespace std;
Player::Player(int MONEY, std::string NAME, int EXPERIENCE,
int ACCOUNTSHACKED, int PASSWORDCRACKERLVL,
int DECRYPTIONTOOLLVL, int PASSWORDCRACKERPRICE,
int DECRYPTIONTOOLPRICE, std::vector<bool> PLR_CHECKINVENTORY
):
money(MONEY), name(NAME),
experience(EXPERIENCE),
accountsHacked(ACCOUNTSHACKED),
PasswordCrackerLvl(PASSWORDCRACKERLVL),
DecryptionToolLvl(DECRYPTIONTOOLLVL),
PasswordCrackerPrice(PASSWORDCRACKERPRICE),
DecryptionToolPrice(DECRYPTIONTOOLPRICE),
plr_CheckInventory(PLR_CHECKINVENTORY)
{
//Empty
}
Player::~Player(){}
int main()
{
vector<bool> plr_inv;
plr_inv[0] = false;
plr_inv[1] = false;
Player pc(1200, "Default", 0, 0, 1, 1, 100, 150, plr_inv);
pc.startup();
}
|