2019-08-09 01:44:59 +00:00
|
|
|
package net.shadowfacts.asmr.program
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
2019-08-09 02:44:19 +00:00
|
|
|
abstract class ExecutableBlock: ProgramBlock() {
|
2019-08-09 01:44:59 +00:00
|
|
|
|
2019-08-10 03:18:02 +00:00
|
|
|
open val executionFlow = ExecutionFlow()
|
2019-08-09 01:44:59 +00:00
|
|
|
|
|
|
|
abstract fun execute()
|
|
|
|
|
2019-08-10 03:18:02 +00:00
|
|
|
fun linkNext(next: ExecutableBlock) {
|
|
|
|
executionFlow.next = next
|
|
|
|
next.executionFlow.prev = this
|
|
|
|
}
|
|
|
|
|
2019-08-09 01:44:59 +00:00
|
|
|
}
|