Dumb-ways-to-memorize
2D game
|
#include <jsmn.h>
Go to the source code of this file.
Data Structures | |
struct | object_t |
Functions | |
object_t * | ParseToObject (jsmntok_t *token, char *g_str) |
object_t * | FindObject (object_t *obj, char *name) |
int | CountObjectMembers (object_t *obj, char *g_str) |
int | CountObjectChildren (object_t *obj) |
void | PrintObject (object_t *obj, char *g_str) |
int | CopyObjectToObjectArray (object_t **dst, object_t *src, int size) |
int CopyObjectToObjectArray | ( | object_t ** | dst, |
object_t * | src, | ||
int | size | ||
) |
Definition at line 237 of file parseobject.c.
References AllocateDynamic(), CopyObjectToObjectArray(), and CountMem().
Referenced by CopyObjectToObjectArray(), and ParseToObject().
int CountObjectChildren | ( | object_t * | obj | ) |
Definition at line 170 of file parseobject.c.
References CountMem(), and CountObjectChildren().
Referenced by CountObjectChildren(), and LoadMenu().
int CountObjectMembers | ( | object_t * | obj, |
char * | g_str | ||
) |
Definition at line 144 of file parseobject.c.
References CountMem(), and CountObjectMembers().
Referenced by CountObjectMembers(), ParseAI(), ParsePresetAI(), and ParseToObject().
object_t* FindObject | ( | object_t * | obj, |
char * | name | ||
) |
Searches for the first object in object list that matches name.
[in,out] | obj | If non-null, the object. |
[in,out] | name | If non-null, the name. |
Definition at line 120 of file parseobject.c.
References FindObject().
Referenced by FindObject(), LoadEntityData(), LoadGameData(), LoadLevel(), LoadLevelData(), LoadMenu(), LoadMenuData(), LoadPowerUpData(), ParseAI(), ParsePresetAI(), ParseToEntity(), and UpdatePowerUpMenu().
object_t* ParseToObject | ( | jsmntok_t * | token, |
char * | g_str | ||
) |
Parse to object, this object has no parent.
[in,out] | token | If non-null, the token that begins with object. |
[in,out] | g_str | If non-null, the global string data of given tokens. |
Definition at line 8 of file parseobject.c.
References AllocateDynamic(), CopyObjectToObjectArray(), CountObjectMembers(), jsmntok_t::end, JSMN_ARRAY, JSMN_OBJECT, JSMN_STRING, JsmnToString(), ParseToObject(), and jsmntok_t::size.
Referenced by LoadEntityData(), LoadGameData(), LoadLevel(), LoadMenuData(), LoadPowerUpData(), LoadSelectedLevel(), ParseToObject(), SetAI_Check(), and UpdatePowerUpMenu().
void PrintObject | ( | object_t * | obj, |
char * | g_str | ||
) |
Definition at line 188 of file parseobject.c.
References CountMem(), JsmnToString(), and PrintObject().
Referenced by LoadEntityData(), LoadGameData(), LoadMenuData(), and PrintObject().