In file include/csscript/csscript.h:

class LanguageLayer

The API for the language

Public Methods

csMatrix3 camera_matrix()
Get information about the camera.
csObject* camera_sector()
Get information about the camera.
csVector3 camera_vector()
Get information about the camera.
csObject* find_object(csObject* parent, char* name)
Find a named object given some parent object.
csScript* find_script(char* name)
Find a script (note that class Script is also a csObject).
csObject* first_object(csObject* parent)
Start enumeration of all objects in some parent object.
float get_lightmap1_intensity(csLight* light)
Get the intensities/color of a light object.
float get_lightmap2_intensity(csLight* light)
Get the intensities/color of a light object.
float get_lightmap3_intensity(csLight* light)
Get the intensities/color of a light object.
csObject* get_world()
Get the world object.
void hide(csObject* obj)
Hide some object.
LanguageLayer(csWorld* world, csCamera* camera)
void link_run(csRunScript* r)
Link a new running script into the system.
void matrix_rot_x(csMatrix3& m, float angle)
Fill a transformation matrix to do a rotation around some angle.
void matrix_rot_y(csMatrix3& m, float angle)
Fill a transformation matrix to do a rotation around some angle.
void matrix_rot_z(csMatrix3& m, float angle)
Fill a transformation matrix to do a rotation around some angle.
void message(char* msg)
Print a message on screen.
csObject* next_object(csObject* parent, csObject* obj)
Next enumeration of all objects in some parent object.
const char* object_name(csObject* obj)
Get the name of an object.
const csIdType& object_type(csObject* obj)
Get the type of an object (one of CS_STATLIGHT, CS_SECTOR, CS_THING, CS_COLLECTION, CS_WORLD, CS_SCRIPTRUN, CS_SCRIPT,
csRunScript* run_script(csScript* script, csObject* attached)
Run the script (create a new csRunScript) on some object.
void send_event(csObject* object, csScriptEvent event)
Send an event to another object (sending an event to an object will cause the event to be sent to all running scripts on the object, sending an event to a running script will only send the event to that script instance)
void set_light_intensity(csLight* light, float l1, float l2, float l3)
Set the intensities/color of a light object (Note that class csLight is also a csObject)
void show(csObject* obj)
Show some object.
void step_run()
Step all the running scripts.
void suspend(csRunScript* run, long milli)
Suspend a script for a specific time (in milliseconds).
void transform(csObject* obj, float dx, float dy, float dz)
Transform an object given some matrix and/or vector.
void transform(csObject* obj, csMatrix3& m, csVector3& v)
Transform an object given some matrix and/or vector.
void transform(csObject* obj, csMatrix3& m)
Transform an object given some matrix and/or vector.
void transform(csObject* obj, csVector3& v)
Transform an object given some matrix and/or vector.
void transform_rot_x(csObject* obj, float angle)
Transform an object given some matrix and/or vector.
void transform_rot_y(csObject* obj, float angle)
Transform an object given some matrix and/or vector.
void transform_rot_z(csObject* obj, float angle)
Transform an object given some matrix and/or vector.
~LanguageLayer()

Private Fields

csCamera* camera
csRunScript* first_run
Linked list of all running scripts.
csWorld* world

Documentation

The API for the language. There is only one instance of this class.
csWorld* world

csCamera* camera

csRunScript* first_run
Linked list of all running scripts.

LanguageLayer(csWorld* world, csCamera* camera)

~LanguageLayer()

void link_run(csRunScript* r)
Link a new running script into the system.

void step_run()
Step all the running scripts.

void message(char* msg)
Print a message on screen.

csObject* find_object(csObject* parent, char* name)
Find a named object given some parent object.

csObject* first_object(csObject* parent)
Start enumeration of all objects in some parent object.

csObject* next_object(csObject* parent, csObject* obj)
Next enumeration of all objects in some parent object.

const csIdType& object_type(csObject* obj)
Get the type of an object (one of CS_STATLIGHT, CS_SECTOR, CS_THING, CS_COLLECTION, CS_WORLD, CS_SCRIPTRUN, CS_SCRIPT, ...).

const char* object_name(csObject* obj)
Get the name of an object.

csObject* get_world()
Get the world object.

csObject* camera_sector()
Get information about the camera.

csMatrix3 camera_matrix()
Get information about the camera.

csVector3 camera_vector()
Get information about the camera.

void transform(csObject* obj, csMatrix3& m, csVector3& v)
Transform an object given some matrix and/or vector.

void transform(csObject* obj, csMatrix3& m)
Transform an object given some matrix and/or vector.

void transform(csObject* obj, csVector3& v)
Transform an object given some matrix and/or vector.

void transform(csObject* obj, float dx, float dy, float dz)
Transform an object given some matrix and/or vector.

void transform_rot_x(csObject* obj, float angle)
Transform an object given some matrix and/or vector.

void transform_rot_y(csObject* obj, float angle)
Transform an object given some matrix and/or vector.

void transform_rot_z(csObject* obj, float angle)
Transform an object given some matrix and/or vector.

void matrix_rot_x(csMatrix3& m, float angle)
Fill a transformation matrix to do a rotation around some angle.

void matrix_rot_y(csMatrix3& m, float angle)
Fill a transformation matrix to do a rotation around some angle.

void matrix_rot_z(csMatrix3& m, float angle)
Fill a transformation matrix to do a rotation around some angle.

void set_light_intensity(csLight* light, float l1, float l2, float l3)
Set the intensities/color of a light object (Note that class csLight is also a csObject)

float get_lightmap1_intensity(csLight* light)
Get the intensities/color of a light object.

float get_lightmap2_intensity(csLight* light)
Get the intensities/color of a light object.

float get_lightmap3_intensity(csLight* light)
Get the intensities/color of a light object.

void show(csObject* obj)
Show some object.

void hide(csObject* obj)
Hide some object.

void send_event(csObject* object, csScriptEvent event)
Send an event to another object (sending an event to an object will cause the event to be sent to all running scripts on the object, sending an event to a running script will only send the event to that script instance)

csScript* find_script(char* name)
Find a script (note that class Script is also a csObject).

csRunScript* run_script(csScript* script, csObject* attached)
Run the script (create a new csRunScript) on some object.

void suspend(csRunScript* run, long milli)
Suspend a script for a specific time (in milliseconds).


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de