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

For selecting a int value based on weights. More...

Public Member Functions

 kSelectionListInt ()
 
void AddItem (int item, const int weight)
 
int & Select ()
 Returns a value based on item weights.
 
void Reset ()
 clears all items in the list
 
const uint GetNumEntries () const
 returns number of items in the list
 
kSelectionListIntopAssign (const kSelectionListInt &in other)
 

Detailed Description

For selecting a int value based on weights.

Definition at line 917 of file t1_scriptAPI.cpp.

Constructor & Destructor Documentation

◆ kSelectionListInt()

kSelectionListInt::kSelectionListInt ( )

Member Function Documentation

◆ AddItem()

void kSelectionListInt::AddItem ( int item,
const int weight )

◆ GetNumEntries()

const uint kSelectionListInt::GetNumEntries ( ) const

returns number of items in the list

◆ opAssign()

kSelectionListInt & kSelectionListInt::opAssign ( const kSelectionListInt &in other)

◆ Reset()

void kSelectionListInt::Reset ( )

clears all items in the list

◆ Select()

int & kSelectionListInt::Select ( )

Returns a value based on item weights.