public EnemyInstance(MonsterModel model) : base(model.HealthPoint, 0, 0, model.Img, model.Element) { this._monsterModel = model; this._cards = new ListenableList <MonsterCardInstance>(); this._cardQueue = new ListenableList <MonsterCardInstance>(); ObjectBuilder builder = new ObjectBuilder(model.Strategy.Name); foreach (JKeyValuePair pair in model.Strategy.Properties) { builder.SetProperty(pair.Key, pair.Value); } this._strategy = (IAIStrategy)builder.Build(); foreach (JMonsterCardProperties cardData in model.MonsterCards) { this._cards.AddItem(new MonsterCardInstance(Constants.language_zh_tw, cardData)); } }
public AIPlayer(BoardCell aiCell, IBoardManager boardManager, AIDifficulty difficulty) : base(aiCell, boardManager) { aiStrategy = AIStrategyProvider.Provide(aiCell, boardManager, difficulty); }
public AILoop(IServerConnection serverConnection, IGameStateManager stateManager, IAIStrategy aiStrategy) { ServerConnection = serverConnection; StateManager = stateManager; AIStrategy = aiStrategy; }
private void Awake() { myStrategy = gameObject.AddComponent <SoftStrategy>(); tileQueue = new PriorityQueue <BoardTile>(); }