Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ typealias StrategyLevelLegacy = AbstractStrategy<AgentLegacyInterface>
*
* @author [Divine Threepwood](mailto:divine@openbase.org)
*/
abstract class AbstractStrategy<LEVEL : GlobalAgentInterface<*>>(val agent: AgentInterface) : Runnable {
abstract class AbstractStrategy<LEVEL : GlobalAgentInterface<*>>(agent: AgentInterface) : Runnable {
private val logger: Logger = LoggerFactory.getLogger(javaClass)

private val strategyOwner: Agent by lazy { agent as Agent }
val mothership: MothershipInterface by lazy { strategyOwner.mothership }

val agent: LEVEL by lazy { agent as LEVEL }
val tower: TowerInterface by lazy { strategyOwner.mothership.tower }
val enemyAgent get() = strategyOwner.enemyAgent
val teamAgent get() = strategyOwner.teamAgent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.openbase.planetsudo.level.levelobjects.AgentInterface
*
* @author [Divine Threepwood](mailto:divine@openbase.org)
*/
class SuicideStrategy(agent: AgentInterface) : StrategyLevelLegacy(agent) {
class SuicideStrategy(agent: AgentInterface) : StrategyLevel3(agent) {

/**
* Hier wird angegeben wie viele Agenten dem Team zur Verf眉gung stehen sollen.
Expand Down
Loading