class Controller : Item { @Attribute var instructions = "" override fun collectable() = true override fun invading( movement : Movement ) { replaceAction( ScaleTo( actor, 0.1, 0.2 ) ) } override fun invaded( movement : Movement ) : boolean { if (movement.item.isPlayer() ) { val player = movement.item as Player player.autoInstructions = instructions + player.autoInstructions } actor.die() return true } }