here my code
now my problem i wonder if you can do something to access
specific method from each object
example i want to access from Dalek class his method but i cant do this
"alien[i]->" will only access method from class ExtraTerrestre
any help will be appreciate sorry for my english
>
>
>
>
> srand((int)time(NULL));
> ExtraTerrestre *alien[15];
>
> for(int typeA=0;typeA<7;typeA++) // first alien
> {
> alien[typeA] = new Dalek(7,200);
> alien[typeA]->resetPositionAlien()
> }
> for(int typeB=7;typeB<15;typeB++) // second alien
> {
> alien[typeB] = new Cylon(6,200);
> alien[typeB]->resetPositionAlien();
> }
>
>
> UIKit::framework(0,0,nbCol-1,nbLine-1,FOREGROUND_BLUE+FOREGROUND_INTENSITY);
>
> while(true)
> {
>
> if(delayer > rand()%200 && i<=14)
> {
> UIKit::color(FOREGROUND_GREEN+FOREGROUND_INTENSITY);
> alien[i]->putAlien();
> i++;
> }
> }
>
>