class ocatari.ram.assault.Enemy[source]

The enemy drones deployed by the mother ship.

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.assault.EnemyMissile[source]

The projectiles shot at the player by the enemy drones.

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.assault.Health[source]

The temperature meter of the cannon (HUD).

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.assault.Lives[source]

The indicator for the remaining lives of the player (HUD).

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.assault.MotherShip[source]

The mother ship at the top, that continually deploys the smaller drones.

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.assault.Player[source]

The player figure i.e., the cannon.

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.assault.PlayerMissileHorizontal[source]

The projectiles shot in the horizontal direction from the cannon.

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.assault.PlayerMissileVertical[source]

The projectile shot in the vertical direction from the cannon.

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.assault.PlayerScore[source]

The player’s score display (HUD).

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