The script class. This class contains the logic to build.
|
Public Member Functions |
| | Script () |
| | Default constructor. We build one bug string which server as the 'skeleton' of the class deriving from ExecutableBlock that will be a receptable for our script.
|
| void | SetParent (SceneObject parent) |
| | This set the parent of the script.
|
| void | SetScene (Scene scene) |
| | This set the scene associated with the script.
|
| string | GetCodeSrc () |
| | If you want to get a string containing the script code use this. This is in fact the code of the Evaluate method.
|
| string | GetClickCodeSrc () |
| | If you want to get a string containing the script code use this. This is in fact the code of the Evaluate method.
|
| string | GetCollisionCodeSrc () |
| | If you want to get a string containing the script code use this. This is in fact the code of the Evaluate method.
|
| string | GetVarSrc () |
| | Member variable definition code.
|
| string | GetSrcForCompilation () |
| | Get the source of our class deriving for ExecutableBlock.
|
| void | UpdateVarSrc (string src) |
| | When you want to set the code defining the variable use this.
|
| void | UpdateCodeSrc (string src) |
| | When you want to set the code of the script that will be run use this method.
|
| void | UpdateClickCodeSrc (string src) |
| | When you want to set the code of the script that will be run use this method.
|
| void | UpdateCollisionCodeSrc (string src) |
| | When you want to set the code of the script that will be run use this method.
|
| bool | Reset () |
| | This reset the script. StartTime value and everything!!
|
| virtual void | Evaluate (double appTime, float elapsedTime) |
| | Each script will be a new class deriving from Script which will override the Evaluate method!
|
| virtual void | Clicked (double appTime, float elapsedTime) |
| | Scene objects have clicked method, when they are clicked they are going to react to that in that method and they will also call this metod on their associated script if they have any.
|
| virtual void | Collision (double appTime, float elapsedTime, SceneObject collidingObject) |
| | Scene objects can collide with other objects. When that happen they can react in their Collision method. They should also call this method on their associated script if they have any. Thus the user can script reaction to collision.
|
| | Script () |
| | Default constructor. We build one bug string which server as the 'skeleton' of the class deriving from ExecutableBlock that will be a receptable for our script.
|
| void | SetParent (SceneObject parent) |
| | This set the parent of the script.
|
| void | SetScene (Scene scene) |
| | This set the scene associated with the script.
|
| string | GetCodeSrc () |
| | If you want to get a string containing the script code use this. This is in fact the code of the Evaluate method.
|
| string | GetClickCodeSrc () |
| | If you want to get a string containing the script code use this. This is in fact the code of the Evaluate method.
|
| string | GetCollisionCodeSrc () |
| | If you want to get a string containing the script code use this. This is in fact the code of the Evaluate method.
|
| string | GetVarSrc () |
| | Member variable definition code.
|
| string | GetSrcForCompilation () |
| | Get the source of our class deriving for ExecutableBlock.
|
| void | UpdateVarSrc (string src) |
| | When you want to set the code defining the variable use this.
|
| void | UpdateCodeSrc (string src) |
| | When you want to set the code of the script that will be run use this method.
|
| void | UpdateClickCodeSrc (string src) |
| | When you want to set the code of the script that will be run use this method.
|
| void | UpdateCollisionCodeSrc (string src) |
| | When you want to set the code of the script that will be run use this method.
|
| bool | Reset () |
| | This reset the script. StartTime value and everything!!
|
| virtual void | Evaluate (double appTime, float elapsedTime) |
| | Each script will be a new class deriving from Script which will override the Evaluate method!
|
| virtual void | Clicked (double appTime, float elapsedTime) |
| | Scene objects have clicked method, when they are clicked they are going to react to that in that method and they will also call this metod on their associated script if they have any.
|
| virtual void | Collision (double appTime, float elapsedTime, SceneObject collidingObject) |
| | Scene objects can collide with other objects. When that happen they can react in their Collision method. They should also call this method on their associated script if they have any. Thus the user can script reaction to collision.
|
Public Attributes |
| string | fileName = "" |
| | At some point it is desirable to persist the script to a *.cs file (at the moment scripts are only C# though this might be easily changed).
|
| string | name = "" |
| | Script name.
|
Properties |
| string | VarSrc [get, set] |
| string | CodeSrc [get, set] |
| string | ClickCodeSrc [get, set] |
| string | CollisionCodeSrc [get, set] |
The script class. This class contains the logic to build.