-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcittadella.h
40 lines (35 loc) · 958 Bytes
/
cittadella.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
//cittadella.h
#ifndef CITTADELLA_H_
#define CITTADELLA_H_
#include <stdlib.h>
#include <iostream>
#include <stdio.h>
#include <vector>
#include "math.h"
using namespace std;
class Cittadella{
private:
static const int numeroPalazzi=10;
int vitaIniziale;
float centroCittadella[3];
int larghezza,lunghezza;
float dimensionePalazzi[numeroPalazzi][2];
float posizionePalazzi[numeroPalazzi][3];
void cambiaSegno(int,int &, int &);
bool controllaCollisionePalazzi(int,float,float,float);
public:
Cittadella(float,float,int,int);
int getNumeroPalazzi()const;
float* getPosizionePalazzo(int);
float getRaggioPalazzo(int) const;
float getAltezzaPalazzo(int)const ;
void danneggiaPalazzo(int);
void generaCittadella();
float* getCentroCittadella();
int getLarghezza()const;
int getLunghezza()const;
int getVitaCittadella();
int getVitaIniziale()const;
void crolla();
};
#endif