Public Member Functions | Static Public Member Functions | Private Attributes

ScriptEventCompanyInTrouble Class Reference

Event Company In Trouble, indicating a company is in trouble and might go bankrupt soon. More...

#include <script_event_types.hpp>

Inheritance diagram for ScriptEventCompanyInTrouble:
ScriptEvent ScriptObject SimpleCountedObject

Public Member Functions

 ScriptEventCompanyInTrouble (Owner owner)
ScriptCompany::CompanyID GetCompanyID ()
 Get the CompanyID of the company that is in trouble.

Static Public Member Functions

static
ScriptEventCompanyInTrouble
Convert (ScriptEvent *instance)
 Convert an ScriptEvent to the real instance.

Private Attributes

ScriptCompany::CompanyID owner
 The company that is in trouble.

Detailed Description

Event Company In Trouble, indicating a company is in trouble and might go bankrupt soon.

ai game

Definition at line 332 of file script_event_types.hpp.


Constructor & Destructor Documentation

ScriptEventCompanyInTrouble::ScriptEventCompanyInTrouble ( Owner  owner  )  [inline]
Parameters:
owner The company that is in trouble.

Definition at line 337 of file script_event_types.hpp.


Member Function Documentation

static ScriptEventCompanyInTrouble* ScriptEventCompanyInTrouble::Convert ( ScriptEvent instance  )  [inline, static]

Convert an ScriptEvent to the real instance.

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

Definition at line 347 of file script_event_types.hpp.

ScriptCompany::CompanyID ScriptEventCompanyInTrouble::GetCompanyID (  )  [inline]

Get the CompanyID of the company that is in trouble.

Returns:
The CompanyID of the company in trouble.

Definition at line 353 of file script_event_types.hpp.

References owner.


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