HEEEEEEEEEELLLLPPPPPPPPP

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.
Post Reply
trenger

HEEEEEEEEEELLLLPPPPPPPPP

Post by trenger »

I need a npc in my game, now I don not know how to make it.
Shoud I make a new class (class npc_test{...};)
or must it "learn" from an Irrlicht-Class (class npc_test : public I... {...};)???

I don't have any idea, :?:
please write something.
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

New class.

Why would any NPC data be dependent on your rendering system?
Crud, how do I do this again?
trenger

Post by trenger »

Thanks.
So I have to make a new class with a pointer to the AnimatedMesh?
Should I put this new class in a "Linked List"?

(I had worked only with 3dgs before, there was all in one)
digfarenough
Posts: 39
Joined: Sat Oct 30, 2004 4:35 pm
Location: Boston, MA
Contact:

Post by digfarenough »

a linked list is a way of implementing an n-dimensional list using pointers between "adjacent" items in the list instead of allocating contiguous memory for them all

so why would you put NPC objects in a linked list? linked lists are fast at inserting and deleting things at specific locations, which is primarily useful for keeping a list in order while making many changes to it.. is there any reason NPCs should be in order?

it would probably be simpler to just make an array of pointers to NPC objects

I suggest reading tutorials on proper C++ design and on game design, and keep in mind irrlicht is only a graphics engine so we're really only in a position here to answer questions specifically about using the irrlicht engine to do graphics
Trenger

Post by Trenger »

Thank you verry much, that's it.
Now i know how i'll start.
Post Reply