-
Notifications
You must be signed in to change notification settings - Fork 0
/
storage.h
53 lines (49 loc) · 1.28 KB
/
storage.h
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
#include <time.h>
#include <iostream>
#include <math.h>
#include <stdbool.h>
#include <fstream>
#pragma once
//using namespace std;
class storage1{
private:
int capacity;
int level;
int numNail;
int numAlfalfa ;
int numShovel ;
int numEgg; // level 2
int numMilk; // level 4
int numFleece; // level 6
unsigned int upgradeStartTime;
bool isBeingUpgraded;
int shenaseP;
public:
storage1(int shenase);
~storage1();
int getLevel();
int getCapacity();
int getNail();
int getAlfalfa();
int getShovel();
int getEgg();
int getMilk();
int getFleece();
int allMerchandises();
int addNail(int numAddedNail);
int addAlfalfa(int numAddedAlfalfa);
int addShovel(int numAddedShovel);
int addEgg(int numAddedEgg);
int addMilk(int numAddedMilk);
int addFleece(int numAddedFleece);
void setLevel(int _level){level=_level;}
void setCapacity(int _capacity){capacity=_capacity;}
void setNail(int _nail){numNail=_nail;}
void setAlfalfa(int _alfalfa){numAlfalfa=_alfalfa;}
void setShovel(int _shovel){numShovel=_shovel;}
void setEgg(int _egg){numEgg=_egg;}
void setMilk(int _milk){numMilk=_milk;}
void setFleece(int _fleece){numFleece=_fleece;}
void update_file();
friend class DialogStorage;
};