..this is how im creating different types of enemies..
if EnemyType=1
Troll.enemy=new enemy
Troll\ID=something
Troll\Life=something
.
.
end if
if EnemyType=2
Gryphon.enemy=new enemy
Gryphon\ID=something
Gryphon\Lige=something
.
.
end if
so..when I actually passing trough Troll type collection, like
For Troll.enemy=each enemy
;do stuff here and change some fields within type
.
.
.
next
i noticed that, actually, eventual changes, regarding gameplay conditions, affecting also type collection Gryphon in sense that I have been selected to pass trough Troll collection but i have noticed that actually given structure passing trough Gryphon collection too..or actually anything i have been stored in 'enemy' type..is this okay?? I mean, I thought by naming type collection wity Troll.enemy or Gryphon.enemy, they are separated and requiring separate access(what i wanted)...or im doing something wrong here?
if EnemyType=1
Troll.enemy=new enemy
Troll\ID=something
Troll\Life=something
.
.
end if
if EnemyType=2
Gryphon.enemy=new enemy
Gryphon\ID=something
Gryphon\Lige=something
.
.
end if
so..when I actually passing trough Troll type collection, like
For Troll.enemy=each enemy
;do stuff here and change some fields within type
.
.
.
next
i noticed that, actually, eventual changes, regarding gameplay conditions, affecting also type collection Gryphon in sense that I have been selected to pass trough Troll collection but i have noticed that actually given structure passing trough Gryphon collection too..or actually anything i have been stored in 'enemy' type..is this okay?? I mean, I thought by naming type collection wity Troll.enemy or Gryphon.enemy, they are separated and requiring separate access(what i wanted)...or im doing something wrong here?