-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCardSessions.h
40 lines (33 loc) · 917 Bytes
/
CardSessions.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
#pragma once
#include <string>
#include "Bank.h"
#include "Card.h"
#include "Statement.h"
#include "Singleton.h"
// SESSIONS CLASS
class CardSessions {
public:
//äëÿ âûâîäà ñ ïàóçîé
static void PauseF();
};
// GIVE MONEY CLASS (FROM CARD)
class GiveMoney : public CardSessions, public Statement {
public:
static void MoneyOut(Card&, Singleton*);
};
// CHANGE CARD PIN CLASS
class ChangePin : public Bank{
public:
//ñìåíà ïèí-êîäà íà êàðòî÷êå
static void ChangeCardPin(Card&, int, Singleton*);//íåñòàòè÷åñêàÿ ññûëêà íà ÷ëåí äîëæíà óêàçûâàòüñÿ îòíîñèòåëüíî çàäàííîãî îáúåêòà, à ìû åãî íå ñîçäà¸ì)
};
// GET MONEY CLASS (TO CARD)
class GetMoney : public CardSessions, public Statement {
public:
static void MoneyIn(Card&, Singleton*);
};
// PAYEMENT (FROM CARD)
class Payement : public CardSessions, public Statement {
public:
static void Pay(Card&, Bankomat&);
};