Click here to Skip to main content
15,921,716 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OO design question Pin
David Wulff4-Aug-02 15:32
David Wulff4-Aug-02 15:32 
GeneralRe: OO design question Pin
Shog94-Aug-02 19:45
sitebuilderShog94-Aug-02 19:45 
GeneralRe: OO design question Pin
David Wulff5-Aug-02 1:33
David Wulff5-Aug-02 1:33 
GeneralRe: OO design question Pin
Shog95-Aug-02 5:14
sitebuilderShog95-Aug-02 5:14 
GeneralRe: OO design question Pin
David Wulff5-Aug-02 6:46
David Wulff5-Aug-02 6:46 
GeneralRe: OO design question Pin
Stan Shannon5-Aug-02 8:47
Stan Shannon5-Aug-02 8:47 
GeneralRe: OO design question Pin
Stan Shannon5-Aug-02 2:04
Stan Shannon5-Aug-02 2:04 
GeneralRe: OO design question Pin
David Wulff5-Aug-02 2:29
David Wulff5-Aug-02 2:29 
Reverend Stan wrote:
If I might be so bold, David

How dare you be so bold! I shall have you hung drawn and quartered for this! Mad | :mad:

Roll eyes | :rolleyes:

As I said, I am learning here - any input is welcome!

Reverend Stan wrote:
A "frame object" is a concrete concept which you could build a logical class structure around, a "game object" is not.

I understand what you are saying, I think. I just don't see how the Frame object would work withing the system. Confused | :confused:

A game object is an object in the game, be it a player or similar unit, a camera, a light, a helper object, etc. Each object when created will register it's interest in certain events (the example I have been using to-date is frame events). The events themselves are triggered and sent by the "Game" object (read: "CGame" not "CGameObject") which in turn takes care of the rendering, etc, etc.

What I am trying to do is to seperate all of the higher level game objects from the game itself, so as far as the game is conerned it only has a bunch of game objects to create, update and destroy. It never knows about animation, intelligence, states, etc, and it never knows if it is a player object or a camera - it just knows where it is and what it want's to know. It is by design that the "Game" object does not know anything about animation, inteligence, states, etc, either.

All this is supposed to make it easier to add new game objects using external scripts - well that was the idea anyway.

Have I totally missed something here?


One 18yrs male, red and white, good condition; daily servicing required. £500 collect ono.
GeneralRe: OO design question Pin
Stan Shannon5-Aug-02 3:43
Stan Shannon5-Aug-02 3:43 
GeneralRe: OO design question Pin
Ravi Bhavnani5-Aug-02 3:37
professionalRavi Bhavnani5-Aug-02 3:37 
GeneralRe: OO design question Pin
Tomasz Sowinski4-Aug-02 23:51
Tomasz Sowinski4-Aug-02 23:51 
GeneralRe: OO design question Pin
David Wulff5-Aug-02 1:22
David Wulff5-Aug-02 1:22 
Generalusing CBitmapButton Pin
Mavrock4-Aug-02 11:58
Mavrock4-Aug-02 11:58 
GeneralRe: using CBitmapButton Pin
Ravi Bhavnani4-Aug-02 15:00
professionalRavi Bhavnani4-Aug-02 15:00 
GeneralGetting selected text globally Pin
Christian Skovdal Andersen4-Aug-02 11:19
Christian Skovdal Andersen4-Aug-02 11:19 
GeneralRe: Getting selected text globally Pin
Tomasz Sowinski5-Aug-02 0:07
Tomasz Sowinski5-Aug-02 0:07 
GeneralRe: Getting selected text globally Pin
Gene Yu14-Jan-03 8:56
Gene Yu14-Jan-03 8:56 
GeneralDefault font set for window's dialogs Pin
CaesarCZ4-Aug-02 10:28
CaesarCZ4-Aug-02 10:28 
GeneralRe: Default font set for window's dialogs Pin
pépé5-Aug-02 2:18
pépé5-Aug-02 2:18 
GeneralScrollbar size Pin
CaesarCZ4-Aug-02 10:22
CaesarCZ4-Aug-02 10:22 
GeneralRe: Scrollbar size Pin
PJ Arends4-Aug-02 12:40
professionalPJ Arends4-Aug-02 12:40 
GeneralRe: Scrollbar size Pin
alex.barylski4-Aug-02 16:51
alex.barylski4-Aug-02 16:51 
GeneralOpen Filename dialog won't show. Pin
redeemer4-Aug-02 8:43
redeemer4-Aug-02 8:43 
GeneralRe: Open Filename dialog won't show. Pin
Pavel Klocek4-Aug-02 10:06
Pavel Klocek4-Aug-02 10:06 
QuestionHow to link msvcr70.dll into my program in VC++.net Pin
tfElep4-Aug-02 8:40
tfElep4-Aug-02 8:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.