mirror of
				https://gitlab.com/klmp200/LO41.git
				synced 2025-11-04 03:03:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			435 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			435 B
		
	
	
	
		
			C
		
	
	
	
	
	
//
 | 
						|
// Created by Antoine Bartuccio on 18/06/2018.
 | 
						|
//
 | 
						|
 | 
						|
#ifndef LO41_PASSENGER_H
 | 
						|
#define LO41_PASSENGER_H
 | 
						|
 | 
						|
#include "../Resident/Resident.h"
 | 
						|
#include "../Visitor/Visitor.h"
 | 
						|
 | 
						|
typedef enum {RESIDENT, VISITOR} PASSENGER_TYPE;
 | 
						|
 | 
						|
typedef union u_Passenger {
 | 
						|
	Resident * resident;
 | 
						|
	Visitor * visitor;
 | 
						|
} Passenger;
 | 
						|
 | 
						|
typedef struct s_ElevatorPassenger {
 | 
						|
	PASSENGER_TYPE type;
 | 
						|
	Passenger passenger;
 | 
						|
} ElevatorPassenger;
 | 
						|
 | 
						|
#endif //LO41_PASSENGER_H
 |