Turok
 
Loading...
Searching...
No Matches
kActorIterator Class Reference

The way to iterate through all actors in the map. Example code: More...

Public Member Functions

 kActorIterator ()
 
kActor Get ()
 Returns the next actor in the iterator.
 
void Reset ()
 Resets the iterator back to the first actor.
 

Detailed Description

The way to iterate through all actors in the map. Example code:

kActor @actor;
while((@actor = it.Get()) !is null)
{
// Do something with actor
}
Base type used by all actors.
kActor Get()
Returns the next actor in the iterator.

Definition at line 1185 of file t1_scriptAPI.cpp.

Constructor & Destructor Documentation

◆ kActorIterator()

kActorIterator::kActorIterator ( )

Member Function Documentation

◆ Get()

kActor kActorIterator::Get ( )

Returns the next actor in the iterator.

◆ Reset()

void kActorIterator::Reset ( )

Resets the iterator back to the first actor.