# coding: utf-8 from opencc.const import COLLECTION_ALIVE, COMBAT_MODE_DEFENSE from opencc.simulation.base import BaseSubject from opencc.simulation.behaviour import MoveToBehaviour from opencc.simulation.behaviour import EngageOpponent from opencc.simulation.behaviour import LookAroundBehaviour from synergine2.share import shared class TileSubject(BaseSubject): start_collections = [ COLLECTION_ALIVE, ] behaviours_classes = [ MoveToBehaviour, LookAroundBehaviour, EngageOpponent, ] visible_opponent_ids = shared.create_self('visible_opponent_ids', lambda: []) combat_mode = shared.create_self('combat_mode', COMBAT_MODE_DEFENSE) # TODO: implement (copied from engulf) # behaviour_selector_class = CellBehaviourSelector