Nimbin2git.christianimmanuel.de / Games / Entropie / character.h

Entropie git · main

git clone https://git.christianimmanuel.de/games/Entropie.gitwget https://git.christianimmanuel.de/games/Entropie/archive/Entropie.tar.gz
character.h 535 B · 25 lines raw
#ifndef CHARACTER_H
#define CHARACTER_H

#include "color.h"
#include "object.h"

typedef struct {
    char* name;
    int   energy;
    int   friendliness;
    int   creativity;
    char* role;
    char* preferences;
    Color color;
    Object* object;
} Character;

Character  Character_create(const char *name, int energy, int friendliness, int creativity);
Character* Character_creates(Object* object_first, int* size);

void Character_log(const Character* character);

void Character_free(Character *character, int size);

#endif