class ocatari.ram.asterix.Consumable[source]
closest_object(others)

Returns the closest object from others, based on manathan distance between the center of both objects.

Returns:

(Index, Object) from others

Return type:

int

is_on_top(other)

Returns True if this and another gameobject overlap.

Returns:

True if objects overlap

Return type:

bool

manathan_distance(other)

Returns the manathan distance between the center of both objects.

Returns:

True if objects overlap

Return type:

bool

property properties

All the properties of the object in a list.

Returns:

The properties of the object.

Return type:

list

class ocatari.ram.asterix.Enemy[source]
closest_object(others)

Returns the closest object from others, based on manathan distance between the center of both objects.

Returns:

(Index, Object) from others

Return type:

int

is_on_top(other)

Returns True if this and another gameobject overlap.

Returns:

True if objects overlap

Return type:

bool

manathan_distance(other)

Returns the manathan distance between the center of both objects.

Returns:

True if objects overlap

Return type:

bool

property properties

All the properties of the object in a list.

Returns:

The properties of the object.

Return type:

list

class ocatari.ram.asterix.Lives[source]
closest_object(others)

Returns the closest object from others, based on manathan distance between the center of both objects.

Returns:

(Index, Object) from others

Return type:

int

is_on_top(other)

Returns True if this and another gameobject overlap.

Returns:

True if objects overlap

Return type:

bool

manathan_distance(other)

Returns the manathan distance between the center of both objects.

Returns:

True if objects overlap

Return type:

bool

property properties

All the properties of the object in a list.

Returns:

The properties of the object.

Return type:

list

class ocatari.ram.asterix.Player[source]
closest_object(others)

Returns the closest object from others, based on manathan distance between the center of both objects.

Returns:

(Index, Object) from others

Return type:

int

is_on_top(other)

Returns True if this and another gameobject overlap.

Returns:

True if objects overlap

Return type:

bool

manathan_distance(other)

Returns the manathan distance between the center of both objects.

Returns:

True if objects overlap

Return type:

bool

property properties

All the properties of the object in a list.

Returns:

The properties of the object.

Return type:

list

class ocatari.ram.asterix.Reward[source]
closest_object(others)

Returns the closest object from others, based on manathan distance between the center of both objects.

Returns:

(Index, Object) from others

Return type:

int

is_on_top(other)

Returns True if this and another gameobject overlap.

Returns:

True if objects overlap

Return type:

bool

manathan_distance(other)

Returns the manathan distance between the center of both objects.

Returns:

True if objects overlap

Return type:

bool

property properties

All the properties of the object in a list.

Returns:

The properties of the object.

Return type:

list

class ocatari.ram.asterix.Score[source]
closest_object(others)

Returns the closest object from others, based on manathan distance between the center of both objects.

Returns:

(Index, Object) from others

Return type:

int

is_on_top(other)

Returns True if this and another gameobject overlap.

Returns:

True if objects overlap

Return type:

bool

manathan_distance(other)

Returns the manathan distance between the center of both objects.

Returns:

True if objects overlap

Return type:

bool

property properties

All the properties of the object in a list.

Returns:

The properties of the object.

Return type:

list