mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-12-18 02:06:51 +00:00
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
#pragma once
|
|
|
|
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#include "export.h"
|
|
#include "vector.h"
|
|
#include "ob.h"
|
|
|
|
|
|
EXPORT u32 Utils_CrapDist(const CVector& a,const CVector& b);
|
|
EXPORT u32 Utils_CrapXZDist(const CVector& a,const CVector& b);
|
|
EXPORT int Utils_CompareStrings(const char* left, const char* right);
|
|
EXPORT int Utils_ArcCos(int val);
|
|
EXPORT int Utils_CopyString(const char*, char*, int);
|
|
EXPORT CBody* Utils_CheckObjectCollision(CVector*, CVector*, CBody*, CBody*);
|
|
EXPORT int Utils_GetGroundHeight(CVector*, int, int, CBody**);
|
|
EXPORT int Utils_LineOfSight(CVector*, CVector*, CVector*, int);
|
|
EXPORT int Utils_CalcAim(CSVector*, CVector*, CVector*);
|
|
EXPORT int Utils_GetValueFromDifficultyLevel(int, int, int, int);
|
|
EXPORT void Utils_RotateY(CVector*, CVector*, int);
|
|
EXPORT void Utils_TurnTowards(CSVector, CSVector*, CSVector*, CSVector, i32);
|
|
|
|
EXPORT int Rnd(int);
|
|
EXPORT void Utils_InitialRand(int);
|
|
EXPORT int catan(int);
|
|
|
|
EXPORT unsigned int Utils_GenerateCRC(const char*);
|
|
|
|
EXPORT int Utils_LinearFilter(int, int, int);
|
|
EXPORT void Utils_GetVecFromMagDir(CVector*, int, CSVector*);
|
|
|
|
EXPORT int Utils_XZDist(const CVector*, const CVector *);
|
|
|
|
#endif
|