Skip to content

Commit

Permalink
Controller no longer has handler for a CellRegistrer message
Browse files Browse the repository at this point in the history
  • Loading branch information
apeshimam committed Jul 17, 2011
1 parent aeb12a7 commit 7623c9d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/main/scala/akka/tutorials/conway/Controller.scala
Expand Up @@ -63,14 +63,7 @@ class Controller(initialStartState:Array[Array[Boolean]], maxRounds:Int, display


override def receive = {
case ControllerInitialize => controllerInitialize() // this will not also init cells

case CellRegistration(x:Int, y:Int) => { // cell regristration is deprecated no need to do it anymore
cellRegistrationCount += 1
if (cellRegistrationCount == xSize * ySize) {
initializeCells()
}
}
case ControllerInitialize => controllerInitialize() // this will now also init cells
case ControllerStart => controllerStart()
}

Expand Down

0 comments on commit 7623c9d

Please sign in to comment.