- 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:
- is_on_top(other)
Returns
Trueif this and another gameobject overlap.- Returns:
True if objects overlap
- Return type:
- manathan_distance(other)
Returns the manathan distance between the center of both objects.
- Returns:
True if objects overlap
- Return type:
- 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:
- is_on_top(other)
Returns
Trueif this and another gameobject overlap.- Returns:
True if objects overlap
- Return type:
- manathan_distance(other)
Returns the manathan distance between the center of both objects.
- Returns:
True if objects overlap
- Return type:
- 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:
- is_on_top(other)
Returns
Trueif this and another gameobject overlap.- Returns:
True if objects overlap
- Return type:
- manathan_distance(other)
Returns the manathan distance between the center of both objects.
- Returns:
True if objects overlap
- Return type:
- 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:
- is_on_top(other)
Returns
Trueif this and another gameobject overlap.- Returns:
True if objects overlap
- Return type:
- manathan_distance(other)
Returns the manathan distance between the center of both objects.
- Returns:
True if objects overlap
- Return type:
- 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:
- is_on_top(other)
Returns
Trueif this and another gameobject overlap.- Returns:
True if objects overlap
- Return type:
- manathan_distance(other)
Returns the manathan distance between the center of both objects.
- Returns:
True if objects overlap
- Return type:
- 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:
- is_on_top(other)
Returns
Trueif this and another gameobject overlap.- Returns:
True if objects overlap
- Return type:
- manathan_distance(other)
Returns the manathan distance between the center of both objects.
- Returns:
True if objects overlap
- Return type: