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:

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.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:

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.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:

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.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:

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.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:

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.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:

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