GSEventGoalQuestionAnswer Class Reference

Event Goal Question Answer, where you receive the answer given to your questions. More...

Inheritance diagram for GSEventGoalQuestionAnswer:

GSEvent

Public Member Functions

 GSEventGoalQuestionAnswer (uint16 uniqueid, GSCompany::CompanyID company, GSGoal::QuestionButton button)
uint16 GetUniqueID ()
 Get the unique id of the question.
GSCompany::CompanyID GetCompany ()
 Get the company that pressed a button.
GSGoal::QuestionButton GetButton ()
 Get the button that got pressed.

Static Public Member Functions

static GSEventGoalQuestionAnswerConvert (GSEvent *instance)
 Convert an GSEvent to the real instance.

Detailed Description

Event Goal Question Answer, where you receive the answer given to your questions.

Note:
It is possible that you get more than 1 answer from the same company (due to lag). Please keep this in mind while handling this event.

Constructor & Destructor Documentation

GSEventGoalQuestionAnswer::GSEventGoalQuestionAnswer ( uint16  uniqueid,
GSCompany::CompanyID  company,
GSGoal::QuestionButton  button 
)

Parameters:
uniqueid The uniqueID you have given this question.
company The company that is replying.
button The button the company pressed.


Member Function Documentation

static GSEventGoalQuestionAnswer* GSEventGoalQuestionAnswer::Convert ( GSEvent instance  )  [inline, static]

Convert an GSEvent to the real instance.

Parameters:
instance The instance to convert.
Returns:
The converted instance.


Generated on Sat Apr 1 17:11:59 2017 for OpenTTD Game API by  doxygen 1.5.6