from components import Entity, Appearance, Brain, Attributes
from engine import core, colors
from engine.enums import ControlMode


def make_wanderer(zone_id):
    entity_id = core.get_id()
    return (
        entity_id,
        [
            Entity(id=entity_id, entity=entity_id, name='wanderer', zone=zone_id),
            Brain(entity=entity_id, control_mode=ControlMode.WANDER),
            Appearance(entity=entity_id, symbol='W', color=colors.yellow),
            Attributes(entity=entity_id, hp=10, max_hp=10),
        ]
    )
