Dumb-ways-to-memorize
2D game
|
Go to the source code of this file.
Functions | |
int | LargestDivisor (int num) |
void | Vec2Add (vec2_t *A, vec2_t *B, vec2_t *C) |
void | Vec2Subtract (vec2_t *First, vec2_t *Second, vec2_t *C) |
void | Vec2MultiplyScalar (vec2_t *A, int B, vec2_t *C) |
int | CountMem (void *src, int size_type) |
int | AllocateDynamic (void **dst, void *src, int size_type, int size) |
int | CompareMemToMemArray (void *mem, void *mem_array, int size_type, int size_array) |
int AllocateDynamic | ( | void ** | dst, |
void * | src, | ||
int | size_type, | ||
int | size | ||
) |
Allocate memory and copy over src into it. Adds Null to end. Returns NULL on size 0
[in,out] | dst | If non-null, destination for the allocation. |
[in,out] | src | If non-null, source for the adding. |
size_type | Size of the type. | |
size | The size. |
Definition at line 66 of file mymath.c.
Referenced by CopyObjectToObjectArray(), and ParseToObject().
int CompareMemToMemArray | ( | void * | mem, |
void * | mem_array, | ||
int | size_type, | ||
int | size_array | ||
) |
Compare memory to memory array.
[in,out] | mem | If non-null, the memory. |
[in,out] | mem_array | If non-null, array of memories. |
size_type | Size of type, via sizeof() function. | |
size_array | Size of Array. |
Definition at line 77 of file mymath.c.
Referenced by RandomizeSelectedLevels(), and SelectLevels().
int CountMem | ( | void * | src, |
int | size_type | ||
) |
Counts the memory of type size_type, given that the final address is null.
[in,out] | src | If non-null, source of memory. |
size_type | Size of the type. |
Definition at line 51 of file mymath.c.
Referenced by CopyObjectToObjectArray(), CountObjectChildren(), CountObjectMembers(), DoPlayerThink(), FindKey(), FindMenuItem(), FindPower(), FindValue(), IncrementFrame(), LoadEntityData(), LoadLevel(), LoadLevelData(), LoadMenu(), LoadMenuData(), LoadPowerUpData(), ParseAI(), ParsePresetAI(), ParseToEntity(), ParseToStringArray(), PrintObject(), ProcessMenuItemsByType(), RandomizeSelectedLevels(), StrToHazard(), TouchGeneric(), TouchGoal(), TouchPlayer(), UpdatePowerSelectMenu(), UpdatePowerUpMenu(), and UpdateVerticalMenu().
int LargestDivisor | ( | int | num | ) |
Definition at line 5 of file mymath.c.
Referenced by ProcessMenuItemsByType().
Definition at line 20 of file mymath.c.
References vec2_t::x, and vec2_t::y.
Referenced by DoCollision(), JumpAI(), MoveAI(), RunPhysics(), Spawn(), and WalkAI().