-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCVEHICLE.h
48 lines (45 loc) · 986 Bytes
/
CVEHICLE.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
#pragma once
#include <stdio.h>
#include <conio.h>
#include<ctime>
#include "windows.h"
#include <iostream>
#include <string>
#include "CPEOPLE.h"
using namespace std;
#define KEY_NONE -1
class CVEHICLE
{
protected:
int vX, vY;
bool vState;
public:
void DrawVe(int, int);
void DeleteVe(int, int);
CVEHICLE();
CVEHICLE(int);
int Get_vX(); // cai nay thua ke duoc ne
int Get_vY(); // cai nay cung thua ke duoc
void Set_vX_vY(int, int);
bool Get_State(); // cai nay cung thua ke duoc
void Set_State(bool); // cai nay cung thua ke duoc
void Move(int, int); // cai nay cung thua ke duoc luon
void SetColor(WORD);
void gotoXY(int, int);
void ShowCur(bool);
void textcolor(int);
~CVEHICLE();
// int speed();
};
class CTRUCK :public CVEHICLE
{
public:
CTRUCK();
~CTRUCK();
void DrawVe(int, int);
void DeleteVe(int x0, int y0);
void SetColor(WORD);
void gotoXY(int, int);
void ShowCur(bool);
void textcolor(int);
};