game.entities.entity_manager ============================ .. py:module:: game.entities.entity_manager .. autoapi-nested-parse:: Entity management system. Classes ------- .. autoapisummary:: game.entities.entity_manager.EntityManager Module Contents --------------- .. py:class:: EntityManager(isometric_map) Manages all entities in the game. .. py:attribute:: isometric_map .. py:attribute:: pigs :value: [] .. py:attribute:: villagers :value: [] .. py:attribute:: last_pig_spawn :value: 0 .. py:attribute:: pig_spawn_accumulator :value: 0 .. py:method:: spawn_pig() Spawn a new pig at a random valid location. .. py:method:: spawn_villager() Spawn a new villager at a random valid location. .. py:method:: should_spawn_pig(dt) Check if a new pig should be spawned. .. py:method:: remove_pig() Remove one pig (send to another island). .. py:method:: emergency_feast() Remove half the pigs for emergency feast. .. py:method:: get_pig_count() Get current number of pigs. .. py:method:: get_villager_count() Get current number of villagers. .. py:method:: update(dt) Update all entities. .. py:method:: render(screen) Render all entities.