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

video_obj pointer to a CVideo instance
tile_mngr_obj pointer to a CTileMngr instance
text_obj pointer to a CText instance
timer_obj pointer to a CTimer instance
sprite_obj pointer to a CSprite instance
sound_obj pointer to a CSound instance
image_obj pointer to a CImage instance
cursor_obj

pointer to a CCursor instance

button_obj pointer to a CButton instance
err_obj pointer to a CError instance
 

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);
 

Table of Contents