engines.gamerules module

Provides access to the gamerules instance.

class engines.gamerules.GameRules

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

get_property_bool((GameRules)arg1, (str)arg2) → bool :

Return the value of the given field name.

Return type:bool
get_property_char((GameRules)arg1, (str)arg2) → str :

Return the value of the given field name.

Return type:str
get_property_color((GameRules)arg1, (str)arg2) → Color :

Return the value of the given field name.

Return type:Color
get_property_double((GameRules)arg1, (str)arg2) → float :

Return the value of the given field name.

Return type:float
get_property_edict((GameRules)arg1, (str)arg2) → Edict :

Return the value of the given field name.

Return type:Edict
get_property_float((GameRules)arg1, (str)arg2) → float :

Return the value of the given field name.

Return type:float
get_property_int((GameRules)arg1, (str)arg2) → int :

Return the value of the given field name.

Return type:int
get_property_interval((GameRules)arg1, (str)arg2) → Interval :

Return the value of the given field name.

Return type:Interval
get_property_long((GameRules)arg1, (str)arg2) → int :

Return the value of the given field name.

Return type:int
get_property_long_long((GameRules)arg1, (str)arg2) → int :

Return the value of the given field name.

Return type:int
get_property_pointer((GameRules)arg1, (str)arg2) → object :

Return the value of the given field name.

Return type:Pointer
get_property_quaternion((GameRules)arg1, (str)arg2) → Quaternion :

Return the value of the given field name.

Return type:Quaternion
get_property_short((GameRules)arg1, (str)arg2) → int :

Return the value of the given field name.

Return type:int
get_property_string()
get_property_string_array( (GameRules)arg1, (str)arg2) -> str :

Return the value of the given field name.

rtype:str
get_property_string_array((GameRules)arg1, (str)arg2) → str :

Return the value of the given field name.

Return type:str
get_property_string_pointer((GameRules)arg1, (str)arg2) → str :

Return the value of the given field name.

Return type:str
get_property_uchar((GameRules)arg1, (str)arg2) → int :

Return the value of the given field name.

Return type:int
get_property_uint((GameRules)arg1, (str)arg2) → int :

Return the value of the given field name.

Return type:int
get_property_ulong((GameRules)arg1, (str)arg2) → int :

Return the value of the given field name.

Return type:int
get_property_ulong_long((GameRules)arg1, (str)arg2) → int :

Return the value of the given field name.

Return type:int
get_property_ushort((GameRules)arg1, (str)arg2) → int :

Return the value of the given field name.

Return type:int
get_property_vector((GameRules)arg1, (str)arg2) → Vector :

Return the value of the given field name.

Return type:Vector
set_property_bool((GameRules)arg1, (str)arg2, (bool)arg3) → None :

Set the value of the given field name.

set_property_char((GameRules)arg1, (str)arg2, (str)arg3) → None :

Set the value of the given field name.

set_property_color((GameRules)arg1, (str)arg2, (Color)arg3) → None :

Set the value of the given field name.

set_property_double((GameRules)arg1, (str)arg2, (float)arg3) → None :

Set the value of the given field name.

set_property_edict((GameRules)arg1, (str)arg2, (Edict)arg3) → None :

Set the value of the given field name.

set_property_float((GameRules)arg1, (str)arg2, (float)arg3) → None :

Set the value of the given field name.

set_property_int((GameRules)arg1, (str)arg2, (Channel)arg3) → None :

Set the value of the given field name.

set_property_interval((GameRules)arg1, (str)arg2, (Interval)arg3) → None :

Set the value of the given field name.

set_property_long((GameRules)arg1, (str)arg2, (int)arg3) → None :

Set the value of the given field name.

set_property_long_long((GameRules)arg1, (str)arg2, (int)arg3) → None :

Set the value of the given field name.

set_property_pointer((GameRules)arg1, (str)arg2, (object)arg3) → None :

Set the value of the given field name.

set_property_quaternion((GameRules)arg1, (str)arg2, (Quaternion)arg3) → None :

Set the value of the given field name.

set_property_short((GameRules)arg1, (str)arg2, (int)arg3) → None :

Set the value of the given field name.

set_property_string()
set_property_string_array( (GameRules)arg1, (str)arg2, (str)arg3) -> None :
Set the value of the given field name.
set_property_string_array((GameRules)arg1, (str)arg2, (str)arg3) → None :

Set the value of the given field name.

set_property_string_pointer((GameRules)arg1, (str)arg2, (str)arg3) → None :

Set the value of the given field name.

set_property_uchar((GameRules)arg1, (str)arg2, (int)arg3) → None :

Set the value of the given field name.

set_property_uint((GameRules)arg1, (str)arg2, (int)arg3) → None :

Set the value of the given field name.

set_property_ulong((GameRules)arg1, (str)arg2, (int)arg3) → None :

Set the value of the given field name.

set_property_ulong_long((GameRules)arg1, (str)arg2, (int)arg3) → None :

Set the value of the given field name.

set_property_ushort((GameRules)arg1, (str)arg2, (int)arg3) → None :

Set the value of the given field name.

set_property_vector((GameRules)arg1, (str)arg2, (Vector)arg3) → None :

Set the value of the given field name.

engines.gamerules.find_game_rules_property_offset((str)arg1) → int :

Find the offset of a game rules property.

Return type:int
engines.gamerules.find_game_rules() → GameRules :

Find the game rules instance.

Raises:ValueError – Raised if the game rules instance wasn’t found.
Return type:GameRules
engines.gamerules.find_game_rules_proxy_name() → str :

Find the server class of the game rules proxy entity (e. g. CCSGameRulesProxy).

Raises:ValueError – Raised if the game rules proxy name wasn’t found.
Return type:str