OpenTTD Game API
Public Member Functions | Static Public Member Functions
GSEventGoalQuestionAnswer Class Reference

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

Inheritance diagram for GSEventGoalQuestionAnswer:

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.
- Public Member Functions inherited from GSEvent
 GSEvent (GSEvent::GSEventType type)
 Constructor of GSEvent, to get the type of event.
GSEventType GetEventType ()
 Get the event-type. More...

Static Public Member Functions

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

Additional Inherited Members

- Public Types inherited from GSEvent
enum  GSEventType {
 The type of event. More...

Detailed Description

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

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::GSEventGoalQuestionAnswer ( uint16  uniqueid,
GSCompany::CompanyID  company,
GSGoal::QuestionButton  button 
uniqueidThe uniqueID you have given this question.
companyThe company that is replying.
buttonThe button the company pressed.

Member Function Documentation

◆ Convert()

static GSEventGoalQuestionAnswer* GSEventGoalQuestionAnswer::Convert ( GSEvent instance)

Convert an GSEvent to the real instance.

instanceThe instance to convert.
The converted instance.