Nimbin2git.christianimmanuel.de / Games / strichmaennchen / world.h

strichmaennchen git · main

git clone https://git.christianimmanuel.de/games/strichmaennchen.gitwget https://git.christianimmanuel.de/games/strichmaennchen/archive/strichmaennchen.tar.gz
world.h 781 B · 29 lines raw
#ifndef WORLD_H
#define WORLD_H

#include "object.h"
#include "human.h"
#include "time.h"


typedef struct {
    Object** objects;     // all general objects
    Human** humans;       // all humans specifically
    int countObjects;
    int countHumans;
    int capacityObjects;
    int capacityHumans;
} World;

void World_init(World *world);
void World_addObject(World *world, Object *obj);
void World_removeObject(World *world, Object *obj);
void World_addHuman(World *world, Human *hum);
void World_removeHuman(World *world, Human *hum);
void World_update(World *world, float dt);
void World_render(World *world, Renderer *renderer, Camera *camera, Time* time);
void World_renderShadows(World* world, Renderer* renderer, Time* time);
void World_destroy(World *world);


#endif