2018-06-06 18:29:02 +00:00
|
|
|
//
|
|
|
|
// Created by Antoine Bartuccio on 06/06/2018.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef LO41_VISITOR_H
|
|
|
|
#define LO41_VISITOR_H
|
|
|
|
|
|
|
|
#include "../Objects.h"
|
|
|
|
|
|
|
|
typedef struct o_Visitor {
|
|
|
|
PRIVATE int id;
|
|
|
|
PRIVATE char * name;
|
2018-06-10 15:57:39 +00:00
|
|
|
PRIVATE char * contact_name;
|
2018-06-06 18:29:02 +00:00
|
|
|
PRIVATE int position;
|
|
|
|
PRIVATE int destination;
|
2018-06-21 14:15:33 +00:00
|
|
|
PRIVATE void * passenger;
|
2018-06-06 18:29:02 +00:00
|
|
|
|
2018-06-10 23:58:52 +00:00
|
|
|
PUBLIC void * (*runnable)(void* void_this);
|
2018-06-06 18:29:02 +00:00
|
|
|
PUBLIC char * (*get_name)(_THIS(Visitor));
|
|
|
|
PUBLIC int (*get_id)(_THIS(Visitor));
|
2018-06-20 20:06:45 +00:00
|
|
|
PUBLIC int (*get_destination)(_THIS(Visitor));
|
2018-06-06 18:29:02 +00:00
|
|
|
|
|
|
|
DESTRUCTOR(Visitor);
|
|
|
|
} Visitor;
|
|
|
|
|
|
|
|
FRIENDLY(name, Building)
|
|
|
|
|
2018-06-10 15:57:39 +00:00
|
|
|
Visitor *_init_Visitor(int id, char* name, char* contact_name);
|
2018-06-06 18:29:02 +00:00
|
|
|
|
|
|
|
#endif //LO41_VISITOR_H
|