|
Dumb-ways-to-memorize
2D game
|
#include "globals.h"#include "parsefunction.h"#include "SDL.h"#include <string.h>#include <stdio.h>
Include dependency graph for parsefunction.c:Go to the source code of this file.
Functions | |
| void * | ParseToFunction (const char *name) |
| void | GetWorld (entity_t *self, entity_t **targ) |
| void | GetAtPoint (entity_t *self, entity_t **targ) |
| void | GetSelf (entity_t *self, entity_t **targ) |
| void | GetX (entity_t *self, int *button) |
| void | GetMousePos (entity_t *self, vec2_t *pos) |
| void | GetXMouse (entity_t *self, int *button, vec2_t *pos) |
Variables | |
| char * | FunctionNames [] = {"X mouse", "X", "mouse", "self", "at-point", "world" , 0} |
| void | FunctionSymbols = {GetXMouse, GetX, GetMousePos, GetSelf, GetAtPoint, GetWorld, 0 } |
| void GetAtPoint | ( | entity_t * | self, |
| entity_t ** | targ | ||
| ) |
Gets the entity at the point specified by the mouse.
| [in,out] | self | If non-null, the class instance that this method operates on. |
| [in,out] | targ | If non-null, the targ. |
Definition at line 31 of file parsefunction.c.
References GetMousePos(), and LookForEntityAtPos().
| void GetMousePos | ( | entity_t * | self, |
| vec2_t * | pos | ||
| ) |
Gets mouse position.
| [in,out] | self | If non-null, the class instance that this method operates on. |
| [in,out] | pos | If non-null, the position. |
Definition at line 53 of file parsefunction.c.
References vec2_t::x, and vec2_t::y.
Referenced by CallInfo(), GetAtPoint(), and GetXMouse().
| void GetSelf | ( | entity_t * | self, |
| entity_t ** | targ | ||
| ) |
Gets self and makes it targ.
| [in,out] | self | If non-null, the class instance that this method operates on. |
| [in,out] | targ | If non-null, the targ. |
Definition at line 40 of file parsefunction.c.
| void GetWorld | ( | entity_t * | self, |
| entity_t ** | targ | ||
| ) |
Gets the world entities.
| [in,out] | self | If non-null, the class instance that this method operates on. |
| [in,out] | targ | If non-null, the targ. |
Definition at line 25 of file parsefunction.c.
References gEntities.
| void GetX | ( | entity_t * | self, |
| int * | button | ||
| ) |
Get the status of the button of the power_up.
| [in,out] | self | If non-null, the class instance that this method operates on. |
| [in,out] | button | If non-null, the button. |
Definition at line 47 of file parsefunction.c.
Referenced by CallInfo(), and GetXMouse().
| void GetXMouse | ( | entity_t * | self, |
| int * | button, | ||
| vec2_t * | pos | ||
| ) |
Gets status of button and mouse position.
| [in,out] | self | If non-null, the class instance that this method operates on. |
| [in,out] | button | If non-null, the button. |
| [in,out] | pos | If non-null, the position. |
Definition at line 59 of file parsefunction.c.
References GetMousePos(), and GetX().
Referenced by CallInfo().
| void* ParseToFunction | ( | const char * | name | ) |
Definition at line 11 of file parsefunction.c.
References FunctionNames, and FunctionSymbols.
Referenced by ParseToPowerUp().
| char* FunctionNames[] = {"X mouse", "X", "mouse", "self", "at-point", "world" , 0} |
Definition at line 8 of file parsefunction.c.
Referenced by ParseToFunction(), and ParseToPowerUp().
| void FunctionSymbols = {GetXMouse, GetX, GetMousePos, GetSelf, GetAtPoint, GetWorld, 0 } |
Definition at line 9 of file parsefunction.c.
Referenced by ParseToFunction().
1.8.11