Dumb-ways-to-memorize
2D game
parsefunction.h
Go to the documentation of this file.
1 #ifndef __PARSE_FUNCTION_H
2 #define __PARSE_FUNCTION_H
3 
4 #include "entity.h"
5 #include "SDL.h"
6 
7 void (*ParseToFunction(const char *name));
8 
9 //Functions to Parse to
10 /**
11  * Gets the world entities.
12  *
13  * @param [in,out] self If non-null, the class instance that this method operates on.
14  * @param [in,out] targ If non-null, the targ.
15  *
16  * @author Anthony Rios
17  * @date 3/30/2016
18  */
19 void GetWorld(entity_t *self, entity_t **targ);
20 
21 /**
22  * Gets the entity at the point specified by the mouse.
23  *
24  * @param [in,out] self If non-null, the class instance that this method operates on.
25  * @param [in,out] targ If non-null, the targ.
26  *
27  * @author Anthony Rios
28  * @date 3/30/2016
29  */
30 void GetAtPoint(entity_t *self, entity_t **targ);
31 
32 /**
33  * Gets self and makes it targ.
34  *
35  * @param [in,out] self If non-null, the class instance that this method operates on.
36  * @param [in,out] targ If non-null, the targ.
37  *
38  * @author Anthony Rios
39  * @date 3/30/2016
40  */
41 void GetSelf(entity_t *self, entity_t **targ);
42 
43 /**
44  * Get the status of the button of the power_up.
45  *
46  * @param [in,out] self If non-null, the class instance that this method operates on.
47  * @param [in,out] button If non-null, the button.
48  *
49  * @author Anthony Rios
50  * @date 3/30/2016
51  */
52 void GetX(entity_t *self, int * button);
53 
54 /**
55  * Gets mouse position.
56  *
57  * @param [in,out] self If non-null, the class instance that this method operates on.
58  * @param [in,out] pos If non-null, the position.
59  *
60  * @author Anthony Rios
61  * @date 3/30/2016
62  */
63 void GetMousePos(entity_t *self, vec2_t *pos);
64 
65 /**
66  * Gets status of button and mouse position.
67  *
68  * @param [in,out] self If non-null, the class instance that this method operates on.
69  * @param [in,out] button If non-null, the button.
70  * @param [in,out] pos If non-null, the position.
71  *
72  * @author Anthony Rios
73  * @date 3/30/2016
74  */
75 void GetXMouse(entity_t *self, int * button, vec2_t *pos);
76 
77 //Functions array
78 extern char *FunctionNames[];
79 extern void (*FunctionSymbols[]);
80 
81 #endif
void GetWorld(entity_t *self, entity_t **targ)
Definition: parsefunction.c:25
char * FunctionNames[]
Definition: parsefunction.c:8
void * ParseToFunction(const char *name)
Definition: parsefunction.c:11
void GetSelf(entity_t *self, entity_t **targ)
Definition: parsefunction.c:40
void GetAtPoint(entity_t *self, entity_t **targ)
Definition: parsefunction.c:31
void GetMousePos(entity_t *self, vec2_t *pos)
Definition: parsefunction.c:53
void GetXMouse(entity_t *self, int *button, vec2_t *pos)
Definition: parsefunction.c:59
void GetX(entity_t *self, int *button)
Definition: parsefunction.c:47
char * name
Definition: parseobject.h:24
void *[] FunctionSymbols
Definition: parsefunction.c:9
Definition: globals.h:19