Click here to Skip to main content
15,915,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Class x needs defining before class y, circular dependecy Pin
Waldermort1-Nov-06 11:17
Waldermort1-Nov-06 11:17 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Ylis1-Nov-06 11:42
Ylis1-Nov-06 11:42 
AnswerRe: Class x needs defining before class y, circular dependecy Pin
Zac Howland1-Nov-06 11:36
Zac Howland1-Nov-06 11:36 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Ylis1-Nov-06 11:46
Ylis1-Nov-06 11:46 
AnswerRe: Class x needs defining before class y, circular dependecy Pin
led mike1-Nov-06 11:54
led mike1-Nov-06 11:54 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Ylis1-Nov-06 12:12
Ylis1-Nov-06 12:12 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
Waldermort1-Nov-06 13:54
Waldermort1-Nov-06 13:54 
GeneralRe: Class x needs defining before class y, circular dependecy Pin
led mike2-Nov-06 4:58
led mike2-Nov-06 4:58 
Ylis wrote:
First of all there's CScene, which represents the scene graph


That does not provide enough context to understand the purpose/roll/responsibility of CScene

Ylis wrote:
I need to just define a very loose interface for the minimum required functionality of a node that needs to be implemented ( such as Update, Render, AddChild etc )


It does not seem that AddChild belongs in the same type as Update and Render. Your QuadNode should likely be a template container then you might have an interface containing the Update and Render methods and then you would implement QuadNode root node (your tree) with the interface as the template parameter.

interface ISceneEntitiy
void Render( canvas or device context etc)
void Update(....)

tempate <class t=""> class QuadNode
{
// implements AddChild, Remove, and accessors, iterators for traversing etc.
}

then somewhere (we don't have enough information to know where)
QuadNode<isceneentity> _rootNode;

then you Player and Sword implement the ISceneEntity interface

Then you likely need some Creational Pattern to generate (populate) the tree. Then if the tree is mutable you likely need some Manager to contain the logic of change to the tree.

There might be much more than this but again we don't have enough information to go on.


led mike

QuestionWindow messages [modified] Pin
Waldermort1-Nov-06 9:58
Waldermort1-Nov-06 9:58 
AnswerRe: Window messages Pin
PJ Arends1-Nov-06 19:22
professionalPJ Arends1-Nov-06 19:22 
AnswerRe: Window messages Pin
Michael Dunn1-Nov-06 20:09
sitebuilderMichael Dunn1-Nov-06 20:09 
Questionall Slider objects are sending OnHScroll() msg Pin
aquawicket1-Nov-06 9:46
aquawicket1-Nov-06 9:46 
AnswerRe: all Slider objects are sending OnHScroll() msg Pin
Mark Salsbery1-Nov-06 10:03
Mark Salsbery1-Nov-06 10:03 
GeneralRe: all Slider objects are sending OnHScroll() msg Pin
aquawicket1-Nov-06 14:49
aquawicket1-Nov-06 14:49 
QuestionMFC - creating invisible window Pin
edvintas1-Nov-06 6:58
edvintas1-Nov-06 6:58 
AnswerRe: MFC - creating invisible window Pin
led mike1-Nov-06 6:59
led mike1-Nov-06 6:59 
GeneralRe: MFC - creating invisible window Pin
edvintas1-Nov-06 7:53
edvintas1-Nov-06 7:53 
AnswerRe: MFC - creating invisible window Pin
Mark Salsbery1-Nov-06 7:15
Mark Salsbery1-Nov-06 7:15 
AnswerRe: MFC - creating invisible window Pin
David Crow1-Nov-06 7:21
David Crow1-Nov-06 7:21 
QuestionRe: MFC - creating invisible window Pin
Chris Meech1-Nov-06 7:26
Chris Meech1-Nov-06 7:26 
AnswerRe: MFC - creating invisible window Pin
edvintas1-Nov-06 7:48
edvintas1-Nov-06 7:48 
GeneralRe: MFC - creating invisible window Pin
led mike1-Nov-06 8:06
led mike1-Nov-06 8:06 
QuestionRe: MFC - creating invisible window Pin
Chris Meech1-Nov-06 8:28
Chris Meech1-Nov-06 8:28 
AnswerRe: MFC - creating invisible window Pin
edvintas1-Nov-06 8:47
edvintas1-Nov-06 8:47 
GeneralRe: MFC - creating invisible window Pin
Mark Salsbery1-Nov-06 9:47
Mark Salsbery1-Nov-06 9:47 

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.