/// <summary> /// Initializes a new instance of the <see cref="LogicNpcAttack"/> class. /// </summary> public LogicNpcAttack(LogicLevel level) { this._placePositionX = -1; this._placePositionY = -1; this._level = level; this._npcAvatar = (LogicNpcAvatar)level.GetVisitorAvatar(); this._buildingClass = LogicDataTables.GetBuildingClassByName("Defense"); if (this._buildingClass == null) { Debugger.Error("LogicNpcAttack - Unable to find Defense building class"); } }