simple refactoring
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
import control.emulator.ControllerEmulator
|
import control.emulator.ControllerEmulator
|
||||||
import room.Room
|
import room.Room
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by user on 8/22/16.
|
|
||||||
*/
|
|
||||||
fun runTests() {
|
fun runTests() {
|
||||||
testCarEmulator()
|
testCarEmulator()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ class ControllerEmulator : Controller {
|
|||||||
callBack.invoke(encodeProtoBuf(responseMessage))
|
callBack.invoke(encodeProtoBuf(responseMessage))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
val currentCommand = commands.get(currentCommandIdx)
|
val currentCommand = commands[currentCommandIdx]
|
||||||
|
|
||||||
//refresh car state
|
//refresh car state
|
||||||
val carInstance = CarState.instance
|
val carInstance = CarState.instance
|
||||||
|
|||||||
Reference in New Issue
Block a user