Skip to content

PyGameObject

Base class for all Python-accessible game world objects. Encapsulates common spatial and visual properties such as position and graphics.

Type: string

The Python-visible class name of this object. Accessible in Python as obj.class .

Type: ushort

The X-coordinate of the object in the game world.

Type: ushort

The Y-coordinate of the object in the game world.

Type: sbyte

The Z-coordinate (elevation) of the object in the game world.

Type: ushort

The graphic ID of the object, representing its visual appearance.

Type: ushort

The hue (color tint) applied to the object.

No enums found.

(observer) Determines if there is line of sight from the specified observer to this object. If no observer is specified, it defaults to the player.

Parameters:

NameTypeOptionalDescription
observerPyGameObject✅ YesThe observing GameObject (optional).

Return Type: bool


Returns a readable string representation of the game object. Used when printing or converting the object to a string in Python scripts.

Return Type: string


Returns a detailed string representation of the object. This string is used by Python’s built-in repr() function.

Return Type: string