~melchizedek6809/WolkenWelten

ref: 6d229600f745dbd4bd087f01a5fc06f58422b0de WolkenWelten/common/src/game/being.h -rw-r--r-- 1.5 KiB
6d229600Ben (X13/Arch) Alot of fixes, mostly regarding animals and UI 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include "../common.h"

u8    beingType      (being b);
u32   beingID        (being b);
being beingNew       (u8 type, u32 id);
being beingCharacter (u32 id);
being beingAnimal    (u32 id);
being beingHook      (u32 id);
being beingGrenade   (u32 id);
being beingProjectile(u32 id);
being beingItemDrop  (u32 id);
being beingFire      (u32 id);
being beingThrowable (u32 id);

vec   beingGetPos    (being b);
void  beingSetPos    (being b, const vec pos);
void  beingAddPos    (being b, const vec pos);

vec   beingGetVel    (being b);
void  beingSetVel    (being b, const vec vel);
void  beingAddVel    (being b, const vec vel);

float beingGetWeight (being b);
void  beingDamage    (being b, i16 hp, u8 cause, float knockbackMult, being culprit, const vec pos);
bool   beingAlive     (being b);
const char *beingGetName(being b);

being beingClosest   (const vec pos, float maxDistance);

void  beingListInit       (beingList *bl, beingList *parent);
void  beingListAdd        (beingList *bl, being entry);
void  beingListDel        (beingList *bl, being entry);
beingList *beingListGet   (u16 x, u16 y, u16 z);
beingList *beingListUpdate(beingList *bl, being entry);
being beingListGetClosest (const beingList *bl, const being source, uint type, float *d);

void            beingListEntryInit();
beingListEntry *beingListEntryNew ();
void            beingListEntryFree(beingListEntry *ble);
void            beingListPrint(beingList *bl);
void            beingGetInSphere(vec pos, float r, being source, void (*callback)(vec pos, being b, being source));