Game Development Community

A VectorPtr of SimSet's

by Ron Yacketta · in Torque Game Engine · 08/01/2003 (9:02 am) · 2 replies

Folks,

Looks like I am loosing it here..

I tried the following

VectorPtr TokenSets;

TokenSets.push_back(Sim::gSomeSet);

get the following compiler error

C:\elements\engine\elements\gameToken.cc(60) : error C2143: syntax error : missing ';' before '.'
C:\elements\engine\elements\gameToken.cc(60) : error C2501: 'MySets' : missing storage-class or type specifiers
C:\elements\engine\elements\gameToken.cc(60) : error C2371: 'MySets' : redefinition; different basic types
        C:\elements\engine\elements\gameToken.cc(59) : see declaration of 'MySets'
C:\elements\engine\elements\gameToken.cc(60) : error C2143: syntax error : missing ';' before '.'

what is the issue? seems logical to me (today)... I also tried an array of SimSet's

SimSet * TokenSets[] = { Sim::gSomeSet, Sim::gSomeSet2, };

and get an access violation when I do the following

TokenSets[#]->addObject(object);


any thoughts?

-Ron

#1
08/22/2003 (5:38 pm)
Looks like this one was to tough for this crowd ;)
#2
08/22/2003 (9:15 pm)
You know that you can have a SimSet of SimSets?