mtx.BaseObject

class BaseObject(id, symbol)[source]

Bases: object

Base class for all objects.

An object is something that can be placed on a mtx.Cell and what is visualized by a renderer.

GetCell()[source]
Returns:The (cell) to which the object belongs.
GetId()[source]
GetObjectCount(symbol)[source]
GetSymbol()[source]
static GetSymbols()[source]
IsBelow(symbol)[source]
IsCollectable()[source]
Returns:True if the object is collectable, False otherwise.
IsMovable()[source]
Returns:True if the object is movable, False otherwise.
IsRemovable()[source]
Returns:True if the object is removable, False otherwise.
IsSolid()[source]
Returns:True if the object is solid, False otherwise.
IsTrigger()[source]
Returns:True if the object is a trigger, False otherwise.
SetCell(cell)[source]
Parameters:cell (mtx.Cell) – The cell to which the object belongs.