PyGameObject
Class Description
Section titled “Class Description”Base class for all Python-accessible game world objects. Encapsulates common spatial and visual properties such as position and graphics.
Properties
Section titled “Properties”__class__
Section titled “__class__”Type: string
The Python-visible class name of this object.
Accessible in Python as
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.
Graphic
Section titled “Graphic”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.
Methods
Section titled “Methods”HasLineOfSightFrom
Section titled “HasLineOfSightFrom”(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:
Name | Type | Optional | Description |
---|---|---|---|
observer | PyGameObject | ✅ Yes | The observing GameObject (optional). |
Return Type: bool
ToString
Section titled “ToString”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
Return Type: string