-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslot.h
49 lines (33 loc) · 869 Bytes
/
slot.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
//
// Created by lenovo on 2018/12/11.
//
#ifndef MANUAL_PROJECT3_INTERSTELLAR_SLOT_H
#define MANUAL_PROJECT3_INTERSTELLAR_SLOT_H
#include "Shape.h"
//#include "Figure.h"
#include <GL/glut.h>
class Group;
static const double defLength = 0.2;
static const double defWidth = 0.1;
class Slot : public Figure {
public:
void pushGroup(Group *carParking);
explicit Slot(Point Center, Point datum);
Group *returnVehicle();
bool isEmpty() const;
const Point &retCoordinate() const;
const Point &retDatum() const;
void draw() const override;
void setIndex(int i,int j);
const int getI() const;
const int getJ() const;
private:
Point center;
Point datum;
bool empty;
static const double length;
static const double width;
Group *vehicle;
int i,j;
};
#endif //MANUAL_PROJECT3_INTERSTELLAR_SLOT_H