Table of Contents | ||||||||||||||||||||
|
||||||||||||||||||||
Assign | ||||||||||||||||||||
Purpose Takes references from all game objetcs and assigns them to public pointers |
||||||||||||||||||||
Protoype void Assign (CVideo &video_obj, CTileMngr &tile_mngr_obj, CText &text_obj, CTimer &timer_obj, CSprite &sprite_obj, CSound &sound_obj, CImage &image_obj, CCursor &cursor_obj, CButton &button_obj, CError &err_obj) |
||||||||||||||||||||
Parameters
|
||||||||||||||||||||
Description CMngrInterface is a proxy class that lets all the other framework classes talk to each other through a pointer interface. |
||||||||||||||||||||
Use CMngrInterface interface; // declare all class instances CVideo video; CTileMngr engine; CText texts; CTimer timers; CSprite sprites; CSound sounds; CImage images; CCursor cursors; CButton buttons; CError err_log; // assign them interface_obj.Assign(video, engine, texts, timers, sprites, sounds, images, cursors, buttons, err_log); |
||||||||||||||||||||
|
||||||||||||||||||||
|