-
Notifications
You must be signed in to change notification settings - Fork 0
/
MEmpresa.h
52 lines (48 loc) · 1.4 KB
/
MEmpresa.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
50
51
52
/*
* MEmpresa.h
*
* Created on: 2/3/2016
* Author: LuisA
*/
#ifndef MEMPRESA_H_
#define MEMPRESA_H_
#include "MEntrada.h"
#include "MSala.h"
#include "MPelicula.h"
#include <vector>
class MEmpresa {
private:
vector<MSala>vecsal;
vector<MPelicula>vecpel;
/*vector<MEntrada>vecentr;*/
float acumg;
public:
int cantsalas = 3; // lo puse para no cambiar en todos lados la cantidad de sala;
MEmpresa();
void setSala(int i, MSala ms);
MSala getSala(int i);
void setPelicula(int i, MPelicula mp);
MPelicula getPelicula(int i);
/*void setEntrada(int i, MEntrada me);
MEntrada getEntrada(int i);
int cantEntradas();*/
int cantSalas();
int cantPeliculas();
//void IncluirEntradas(MEntrada me);
void IncluirSala(MSala ms);
void IncluirPelicula(MPelicula mp);
// float MontoTIngresado(MSala ms, MPelicula mp);
int BusquedaCodigo(string cod);
string RetornarCodigosegunsala(int sala);
int Retornarposirealpelicula(int numsala);
bool ValidarEntrada( int nsala, int edadp);
bool ValidarDisponibilidad(int nsala);
bool ProcesarEntrada(int numsala,int edad, MSala ms, MEntrada me, MPelicula mp); // validacion
///////////////////////////////////////////////////////////////
float DescMay(int i,MEntrada me);
float DescMati(int i,MEntrada me);
float Recargo(int i,MEntrada me);
float ValorTotalEntrada(int i,MEntrada me);
float MontoTotIngr();
};
#endif /* MEMPRESA_H_ */