ScummVM API documentation
MADS::ConversationVar Struct Reference

Public Member Functions

 ConversationVar ()
 
void setValue (int val)
 
void setValue (int *val)
 
int * getValue ()
 
bool isPtr () const
 
bool isNumeric () const
 

Public Attributes

bool _isPtr
 
int _val
 
int * _valPtr
 

Constructor & Destructor Documentation

◆ ConversationVar()

MADS::ConversationVar::ConversationVar ( )
inline

Constructor

Member Function Documentation

◆ setValue() [1/2]

void MADS::ConversationVar::setValue ( int  val)

Sets a numeric value

◆ setValue() [2/2]

void MADS::ConversationVar::setValue ( int *  val)

Sets a pointer value

◆ getValue()

int* MADS::ConversationVar::getValue ( )
inline

Return either the variable's pointer, or a pointer to it's direct value

◆ isPtr()

bool MADS::ConversationVar::isPtr ( ) const
inline

Returns true if variable is a pointer

◆ isNumeric()

bool MADS::ConversationVar::isNumeric ( ) const
inline

Returns true if variable is numeric


The documentation for this struct was generated from the following file: