Strict Standards: Declaration of action_plugin_importoldchangelog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /nfsmnt/hosting1_2/8/2/82f54cb0-e474-4da4-9cdc-40dcd737e16b/mypage.sk/sub/tery/dokuwiki/lib/plugins/importoldchangelog/action.php on line 8

Strict Standards: Declaration of action_plugin_safefnrecode::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /nfsmnt/hosting1_2/8/2/82f54cb0-e474-4da4-9cdc-40dcd737e16b/mypage.sk/sub/tery/dokuwiki/lib/plugins/safefnrecode/action.php on line 0

Strict Standards: Declaration of action_plugin_popularity::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /nfsmnt/hosting1_2/8/2/82f54cb0-e474-4da4-9cdc-40dcd737e16b/mypage.sk/sub/tery/dokuwiki/lib/plugins/popularity/action.php on line 0

Strict Standards: Declaration of Doku_Renderer_metadata::table_open() should be compatible with Doku_Renderer::table_open($maxcols = NULL, $numrows = NULL, $pos = NULL) in /nfsmnt/hosting1_2/8/2/82f54cb0-e474-4da4-9cdc-40dcd737e16b/mypage.sk/sub/tery/dokuwiki/inc/parser/metadata.php on line 24

Strict Standards: Declaration of Doku_Renderer_metadata::table_close() should be compatible with Doku_Renderer::table_close($pos = NULL) in /nfsmnt/hosting1_2/8/2/82f54cb0-e474-4da4-9cdc-40dcd737e16b/mypage.sk/sub/tery/dokuwiki/inc/parser/metadata.php on line 24
tery:terylevel [TeryWiki]
 

TeryLevel

 Keeps information on level tiles, level objects, object templates, 
 script templates and running scripts. Global variable 'LevelInstance' provides pointer to LevelData class.
 .
/======================\
[                      ]  -----------------------------------\
[      TeryLevel       ]  ----------------------------------+|
[ all what is in level ]                                    ||
\======================/                                    \/
 ||                                                  /--------------------------------\
 ||                                                  |                                |
 ||     /===================\                        | std::vector< s_level_object* > |
 |+---\ [                   ]                        |                                |
 |+---/ [ CreatureTypeList  ]                        \--------------------------------/
 ||     [ creature templates]
 ||     \===================/
 ||
 ||     /==========================\
 |+---\ [                          ]
 \----/ [       ObjectFncs         ]
        [ object related functions ]
        \==========================/

additional variable instances:

std::vector< s_script_template > scripts;

typedef std::vector< s_running_script > running_scripts_array; running_scripts_array running_scripts;

std::vector< s_level_variable > level_variables;

Objects are stored in dynamic array 'std::vector< s_level_object* >'. There are also sub-arrays for each object type (creatures, blockers, followers… ) for easier searching.

Subclass ObjectFncs keeps object-related functions for creating and deleting of objects.

Each of objects has unique ID specifier. Object has parent ID number what means that objects can be arranged into hierarchcal tree.

Level data are edited through level editor which has code stored in large class TeryEditor.

tery/terylevel.txt · Last modified: 2007/06/01 10:33 by mirex
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki