mirror of
https://gitlab.com/klmp200/LO41.git
synced 2025-07-12 04:39:23 +00:00
huge refactor, pointy pointer
This commit is contained in:
@ -14,12 +14,12 @@ GETTER(Resident, int, apartment_floor);
|
||||
void * runnable_Resident(void * void_this){
|
||||
Resident * this = (Resident*) void_this;
|
||||
SharedData* data = GET_INSTANCE(SharedData);
|
||||
Passenger passenger;
|
||||
Passenger * passenger = NEW(Passenger, this, RESIDENT);
|
||||
|
||||
AGENT_OPTIONS;
|
||||
|
||||
passenger.resident = this;
|
||||
passenger.type = RESIDENT;
|
||||
passenger->resident = this;
|
||||
passenger->type = RESIDENT;
|
||||
|
||||
printf("Je suis le resident %s et je suis a l'etage %d en direction de l'etage %d\n",
|
||||
this->name, this->apartment_floor, this->destination);
|
||||
|
Reference in New Issue
Block a user