16 lines
353 B
C
16 lines
353 B
C
#pragma once
|
|
|
|
#define MaxNameLength 100
|
|
#define StartingHelath 100
|
|
|
|
typedef struct Humanoid Humanoid_t;
|
|
|
|
struct Humanoid {
|
|
char name[MaxNameLength];
|
|
float health;
|
|
void (*move)(Humanoid_t* self, int x, int y);
|
|
void (*look)(Humanoid_t* self, int x, int y);
|
|
void (*remove)(Humanoid_t* self);
|
|
};
|
|
|
|
Humanoid_t* InitHuman(char* PlayerName); |