Problem with classes [C++ question]

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
varnie
Posts: 31
Joined: Wed Jul 19, 2006 8:27 pm
Location: Russia, Ural

Post by varnie »

my problem is still as described above. deep into my bot's AI logic (actually, in AI class, which is agregated in this bot class) I have to get time (i want to make it over pointer_irrlichtEngline->getTimer()->getTime() ), and request my base game class to create special animator for current bot's node. but i don't know how i can make these requests. i still have no idea of how to write such 'wrapper' or what else for this purpose. as i asked above, what if i later wanted to change scene light's locations, or whatever else right here, in this AI class, which is agregated in bot's class (not so good eaxmple, but it makes a sense in any case)? how i can manage with all this stuff? sure, it is a problem of *my* game design, and not Irrlicht Engine itself:)

thanks for your understanding and patience, because i really need ideas here. I've stopped developing my game because of lack of solutions here.
varnie
Posts: 31
Joined: Wed Jul 19, 2006 8:27 pm
Location: Russia, Ural

Post by varnie »

i took a decision to 'send' u32 currentTime to monster on each game loop's iteration and it works for me:)
maybe later i'll came to smth more practical.
Post Reply