- class ocatari.ram.alien.Alien[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.alien.Egg[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.alien.Life[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.alien.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.alien.Pulsar[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.alien.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: