shithub: sce

ref: 596459dd77e5c3e66a57be31e711a58624024881
dir: /fns.h/

View raw version
void	clearmsg(Msg*);
Msg*	readnet(void);
void	initnet(char*);
int	parsemsg(Msg*);
void	endmsg(Msg*);
int	sendgather(Mobj*, Mobj*);
int	sendmovenear(Mobj*, Mobj*);
int	sendstop(Mobj*);
int	sendmove(Mobj*, Point);
int	sendpause(void);
void	stepsnd(void);
void	initsnd(void);
void	setpos(Mobj*, Point);
void	setsubpos(Mobj*, Point);
void	snaptomapgrid(Mobj*);
Tile*	tilepos(Point);
void	linktomap(Mobj*);
int	pushreturncommand(Mobj*, Mobj*);
int	pushgathercommand(Mobj*, Mobj*);
int	pushmove(Mobj*);
int	pushmovecommand(Mobj*, Point, Mobj*);
void	resourcestate(Mobj*);
void	depleteresource(Mobj*, int);
void	freezefrm(Mobj*, int);
void	idlestate(Mobj*);
Mobj*	derefmobj(int, long);
void	nextstate(Mobj*);
void	clearcommands(Mobj*);
void	abortcommands(Mobj*);
Command*	pushcommand(Mobj*);
Mobjl*	linkmobj(Mobjl*, Mobj*, Mobjl*);
void	unlinkmobj(Mobjl*);
void	refmobj(Mobj*);
void	stepsim(void);
void	initsim(void);
void	initsv(int, char*);
void	flushcl(void);
void	packcl(char*, ...);
Msg*	getclbuf(void);
void	dopan(Point);
void	doselect(Point);
void	doaction(Point, int);
void	compose(Point, u32int);
void	updatedrw(void);
void	resetdrw(void);
void	initdrw(void);
void	initimg(void);
void	initfs(void);
double	eucdist(Point, Point);
double	octdist(Point, Point);
void	setgoal(Mobj*, Point*, Mobj*);
Mobj*	unitat(Point);
int	isblocked(Point, Obj*);
void	markmobj(Mobj*, int);
int	isnextto(Mobj*, Mobj*);
Node**	jpsbsuccessors(Mobj*, Node*, Node*);
Node*	jpsbnearestnonjump(Mobj*, Node*, Node*);
void	a∗backtrack(Mobj*, Node*, Node*);
Node*	a∗(Mobj*, Node*, Node*, Node**(*)(Mobj*,Node*,Node*));
Node*	a∗findpath(Mobj*, Node*, Node*);
int	findpath(Mobj*, Point);
void	drawnodemap(Rectangle, Mobj*);
Mobj*	mapspawn(Obj*, Point);
void	initmap(void);
Mobj*	derefmobj(int, long);
int	spawnunit(Obj*, Point, int);
int	spawnresource(Obj*, Point, int);
void	nukequeue(Pairheap**);
Pairheap*	popqueue(Pairheap**);
void	decreasekey(Pairheap*, double, Pairheap**);
void	pushqueue(Node*, Pairheap**);
int	lsb(uvlong);
int	msb(uvlong);
u64int*	baddr(Point);
u64int*	rbaddr(Point);
u64int*	bload(Point, Point, Point, int, int);
void	bset(Point, Point, int);
void	initbmap(void);
int	mobjfmt(Fmt*);
void	dprint(char *, ...);
int	max(int, int);
int	min(int, int);
QNode*	qtmerge(QNode*);
QNode*	qtsplit(QNode*);
void	clearvec(Vector*);
void	popsparsevec(Vector*, int);
void*	pushsparsevec(Vector*, void*);
void*	pushvec(Vector*, void*);
void*	newvec(Vector*, int, int);
char*	estrdup(char*);
void*	erealloc(void*, ulong, ulong);
void*	emalloc(ulong);
vlong	flen(int);

#pragma	varargck	argpos	dprint	1
#pragma	varargck	type	"M"	Mobj*