#include <./t7/t7Enums.h>Functions | |
| int | project_load (char *csFilename) |
| Load in the game using a Project data file. | |
| int | project_remove () |
| Clear out the current project. | |
| int | project_level_ (int i) |
| DO NOT USE, call project_level() below. | |
| int | project_level (int i) |
| Switch to another level. | |
| int | project_update () |
| Update the game for one frame. Call this once per frame. | |
| int | entity_add (ENTITY *pEnt) |
| Add an ENTITY to the current level. | |
| void | entity_remove (ENTITY *pEnt) |
| Remove an entity. | |
| int | entity_add_cmp (ENTITY *pEnt, int cmpType) |
| Add a component to the entity. | |
| int | entity_cmp_set (ENTITY *pEnt, int cmpType, int editType, float data) |
| Set the value of a entity's CMP. | |
| int | entity_set (ENTITY *pEnt, int editType, float data) |
| Set values in zero or more CMPs. | |
| int | entity_set_ptr (ENTITY *pEnt, int editType, void *data) |
| Set values in zero or more CMPs. | |
| int | entity_set_vec (ENTITY *pEnt, int editType, float x, float y, float z) |
| Set values in zero or more CMPs. | |
| int | entity_set_str (ENTITY *pEnt, int editType, char *csName) |
| Set values in zero or more CMPs. | |
| int | entity_get_int (ENTITY *pEnt, int editType, int *data) |
| Get a value from the first CMP to handle it. | |
| int | entity_cmp_get_int (ENTITY *pEnt, int cmpType, int editType, int *data) |
| Get a value from a specific CMP. | |
| int | entity_get_var (ENTITY *pEnt, int editType, var *data) |
| Get a value from the first CMP to handle it. | |
| int | entity_cmp_get_var (ENTITY *pEnt, int cmpType, int editType, var *data) |
| Get a value from a specific CMP. | |
| int | entity_get_vec (ENTITY *pEnt, int editType, float *x, float *y, float *z) |
| Get x,y,z values from the first CMP to handle it. | |
| int | entity_act (ENTITY *pEnt, int type, float data) |
| Send an action to an entity. | |
| int | entity_cmp_act (ENTITY *pEnt, int cmpType, int actType, float data) |
| Act on an entity. | |
| int | entity_act_vec (ENTITY *pEnt, int type, float x, float y, float z) |
| Send an action to an entity. | |
| void | anim_reload (char *csFilename) |
| Reload the animation from a file. | |
| void anim_reload | ( | char * | csFilename | ) |
Reload the animation from a file.
| int entity_act | ( | ENTITY * | pEnt, | |
| int | type, | |||
| float | data | |||
| ) |
Send an action to an entity.
| pEnt | Pointer to the entity who's value we are acting on | |
| type | The action we are preforming (see t7EnityAct_ list) | |
| data | The float (or int) used to edit |
| int entity_act_vec | ( | ENTITY * | pEnt, | |
| int | type, | |||
| float | x, | |||
| float | y, | |||
| float | z | |||
| ) |
Send an action to an entity.
| pEnt | Pointer to the entity | |
| type | The action we are preforming (see t7Act_ list) | |
| x | X pos value (or pan) | |
| y | Y pos value (or tilt) | |
| z | Z pos value (or roll) |
| int entity_add | ( | ENTITY * | pEnt | ) |
Add an ENTITY to the current level.
| pEnt | Pointer to the entity we are adding |
| int entity_add_cmp | ( | ENTITY * | pEnt, | |
| int | cmpType | |||
| ) |
Add a component to the entity.
| pEnt | Pointer to the entity we are adding a new component to | |
| cmpType | The component we are adding (see t7Cmp_ list) |
| int entity_cmp_act | ( | ENTITY * | pEnt, | |
| int | cmpType, | |||
| int | actType, | |||
| float | data | |||
| ) |
Act on an entity.
| pEnt | Pointer to the entity who's value we are acting on | |
| cmpType | The component to act on (see t7Cmp_ list) | |
| actType | The action we are preforming (see t7EnityAct_ list) | |
| data | Data used to edit |
| int entity_cmp_get_int | ( | ENTITY * | pEnt, | |
| int | cmpType, | |||
| int | editType, | |||
| int * | data | |||
| ) |
Get a value from a specific CMP.
| pEnt | Pointer to the entity we are trying to get a value from | |
| cmpType | The component to check(see t7Cmp_ list) | |
| editType | t7Edit_ type | |
| data | Pointer to int which will contain the value. |
| int entity_cmp_get_var | ( | ENTITY * | pEnt, | |
| int | cmpType, | |||
| int | editType, | |||
| var * | data | |||
| ) |
Get a value from a specific CMP.
| pEnt | Pointer to the entity we are trying to get a value from | |
| cmpType | The component to check(see t7Cmp_ list) | |
| editType | t7Edit_ type | |
| data | Pointer to var which will contain the value. |
| int entity_cmp_set | ( | ENTITY * | pEnt, | |
| int | cmpType, | |||
| int | editType, | |||
| float | data | |||
| ) |
Set the value of a entity's CMP.
| pEnt | Pointer to the GE entity | |
| cmpType | The component we are setting (see t7Cmp_ list) | |
| editType | t7Edit_ type we want to set | |
| data | The data we are setting. |
| int entity_get_int | ( | ENTITY * | pEnt, | |
| int | editType, | |||
| int * | data | |||
| ) |
Get a value from the first CMP to handle it.
| pEnt | Pointer to the entity we are trying to get a value from | |
| editType | t7Edit_ type | |
| data | Pointer to int which will contain the value. |
| int entity_get_var | ( | ENTITY * | pEnt, | |
| int | editType, | |||
| var * | data | |||
| ) |
Get a value from the first CMP to handle it.
| pEnt | Pointer to the entity we are trying to get a value from | |
| editType | t7Edit_ type | |
| data | Pointer to var which will contain the value. |
| int entity_get_vec | ( | ENTITY * | pEnt, | |
| int | editType, | |||
| float * | x, | |||
| float * | y, | |||
| float * | z | |||
| ) |
Get x,y,z values from the first CMP to handle it.
| pEnt | Pointer to the entity we are trying to get a value from. | |
| editType | t7Edit_ type. | |
| x | X value. | |
| y | Y value. | |
| z | Z value. |
| void entity_remove | ( | ENTITY * | pEnt | ) |
Remove an entity.
| pEnt | Pointer to the Entity we want to remove. |
| int entity_set | ( | ENTITY * | pEnt, | |
| int | editType, | |||
| float | data | |||
| ) |
Set values in zero or more CMPs.
| int entity_set_ptr | ( | ENTITY * | pEnt, | |
| int | editType, | |||
| void * | data | |||
| ) |
Set values in zero or more CMPs.
| int entity_set_str | ( | ENTITY * | pEnt, | |
| int | editType, | |||
| char * | csName | |||
| ) |
Set values in zero or more CMPs.
| int entity_set_vec | ( | ENTITY * | pEnt, | |
| int | editType, | |||
| float | x, | |||
| float | y, | |||
| float | z | |||
| ) |
Set values in zero or more CMPs.
| int project_level | ( | int | i | ) |
Switch to another level.
| i | The level we want to switch to. |
| int project_level_ | ( | int | i | ) |
DO NOT USE, call project_level() below.
| int project_load | ( | char * | csFilename | ) |
Load in the game using a Project data file.
| csFilename | Name of the file containing project data (i.e. myProj.xml) |
| int project_remove | ( | ) |
Clear out the current project.
| int project_update | ( | ) |
Update the game for one frame. Call this once per frame.
1.5.4