1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2024-11-25 10:34:17 +00:00
LO41/Passenger/Passenger.h

22 lines
370 B
C
Raw Normal View History

//
// 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;
2018-06-18 14:09:28 +00:00
typedef struct s_Passenger {
PASSENGER_TYPE type;
2018-06-18 14:09:28 +00:00
union {
Resident * resident;
Visitor * visitor;
};
} Passenger;
#endif //LO41_PASSENGER_H