-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSolidSphere.h
46 lines (36 loc) · 831 Bytes
/
SolidSphere.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
#pragma once
#include "SolidShape3D.h"
#include <math.h>
class SolidSphere : public SolidShape3D
{
public:
SolidSphere(float r, int sl, int st);
SolidSphere(const SolidSphere& sph);
float getRadius() const;
void draw() const;
void setFloor(const int f);
int getFloor();
void setBallColor(int c);
int getBallColor();
void setXY(int x, int y);
VectorN<int, 2> getXY();
void setRemove(bool r);
bool getRemove();
void setremovevisited(bool v);
bool getremovevisited();
void setdrop(bool d);
bool getdrop();
void setdropvisited(bool d);
bool getdropvisited();
bool notShooted = true;
private:
float radius;
VectorN<int, 2> segmentation; // slices, stacks
int floor;
VectorN<int, 2> xy;
int ballColor;
bool remove = false;
bool removevisited = false;
bool drop = false;
bool dropvisited = false;
};