Simutrans-Squirrel-API
Private Member Functions | List of all members
ingame_object Class Reference
Inheritance diagram for ingame_object:
city_x convoy_x factory_x halt_x line_x map_object_x player_x square_x tile_x

Private Member Functions

bool is_valid ()
 

Detailed Description

Classes to access in-game objects. Creating an instance of such classes will not create an object in the game. Instead, these classes contain data to access the in-game object. If the in-game object disappears, then any access to it via these classes will fail. Use the method ingame_object::is_valid to check whether the in-game object is still alive.

Definition at line 211 of file api_simple.cc.

Member Function Documentation

◆ is_valid()

bool ingame_object::is_valid ( )
private
Returns
true if in-game object can still be accessed.

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