antorum package

Subpackages

Submodules

antorum.actions module

antorum.cache module

antorum.damage module

antorum.game module

antorum.multiplayer module

antorum.player module

class antorum.player.Player(player_id: int, network_id: int, skills: Dict[SkillType, Skill] = None, health: int = 30, max_health: int = 30, username: str = 'Unknown', position: Tuple[float, float] = (-1, -1), stats: Dict[Stat, int] = None, inventory: Dict[int, InventoryItem] = None)[source]

Bases: object

class antorum.player.Skill(type: antorum.player.SkillType, level: int, experience: int, exp_current_level: int, exp_next_level: int)[source]

Bases: object

exp_current_level: int
exp_next_level: int
experience: int
level: int
type: SkillType
class antorum.player.SkillType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

ATHLETICS = 5
COMBAT = 3
COOKING = 1
DEFENSE = 4
FISHING = 0
GEARCRAFTING = 7
HERBOLOGY = 2
MINING = 9
RITUAL = 8
SALVAGING = 6

antorum.utils module

class antorum.utils.BufferReader(data: bytes)[source]

Bases: object

read(size: int) bytes[source]
read_bool() bool[source]
read_float() float[source]
read_int16(signed: bool = False) int[source]
read_int32(signed: bool = False) int[source]
read_int64(signed: bool = False) int[source]
read_int8(signed: bool = False) int[source]
read_string() str[source]
class antorum.utils.BufferWriter[source]

Bases: object

write(data: bytes)[source]
write_bytes(value: bytes)[source]
write_float(value: float)[source]
write_int16(value: int)[source]
write_int32(value: int)[source]
write_int64(value: int)[source]
write_int8(value: int)[source]
write_string(value: str)[source]
class antorum.utils.EncryptionHelper(key)[source]

Bases: object

encrypt(data)[source]
class antorum.utils.StateType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

ANIMATOR = 13
CLASS = 10
EQUIPMENT = 7
FISHER = 9
HEALTH = 3
INFO = 0
INTERACTABLE = 5
ITEM = 4
MINER = 12
MOVEMENT = 2
NPC = 8
PLAYER = 6
QUEST_GIVER = 11
TRANSFORM = 1
antorum.utils.amount_of_resource_in_inventory(resource_id: int, inventory: Dict[int, InventoryItem])[source]
antorum.utils.coords_in_bounds(coords: Tuple[float, float], bounds: Tuple[Tuple[float, float], Tuple[float, float]])[source]
antorum.utils.distance_to_closest_enemy(coords: Tuple[float, float], entities: Dict[int, Entity])[source]
antorum.utils.distance_to_entity(coords: Tuple[float, float], entity: Entity)[source]
async antorum.utils.emulate_move(start_coords: Tuple[float, float], destinations: List[Tuple[float, float]], speed: float, client: multiplayer.Client)[source]
antorum.utils.get_entity_from_player_id(player_id: int, entities: List[world_entities.Entity])[source]
antorum.utils.get_future_position_from_entity(network_id, game: multiplayer.Game)[source]
antorum.utils.get_inventory_diff(old_inventory: Dict[int, InventoryItem], new_inventory: Dict[int, InventoryItem])[source]
antorum.utils.get_inventory_slot_by_resource_id(resource_id: int, inventory: Dict[int, InventoryItem])[source]
antorum.utils.get_nearest_entity(coords: Tuple[float, float], entities: Dict[int, Entity]) None | Entity[source]
antorum.utils.get_nearest_safe_entity(coords: Tuple[float, float], requested_entities: Dict[int, Entity], all_entities: Dict[int, Entity], safe_distance: float = 10)[source]
antorum.utils.get_player_id_from_username(username: str, game: multiplayer.Game)[source]
antorum.utils.get_resource_by_name(name: str, resources: Dict[int, ItemResource])[source]
antorum.utils.has_sufficient_level(levels: Dict[int, List[str]], level: int, item: str)[source]
antorum.utils.inventory_contains_resource_id(resource_id: int, inventory: Dict[int, InventoryItem], amount: int)[source]
antorum.utils.is_nearby(coords: Tuple[float, float], other_coords: Tuple[float, float], distance: float = 5)[source]
antorum.utils.map_to_game_coords(coords: List[Tuple[float, float]])[source]
antorum.utils.message_contains_since(message: str, messages: List[Tuple[datetime, ChatMessage]], since: datetime)[source]
antorum.utils.time_to_dest(start_coords: Tuple[float, float], dest_coords: Tuple[float, float], speed: float)[source]
antorum.utils.time_to_dests(start_coords: Tuple[float, float], destinations: List[Tuple[float, float]], speed: float)[source]
async antorum.utils.wait_for(predicate, timeout: int)[source]

Module contents