Skip to content

Commit

Permalink
Add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Marshall committed Sep 9, 2019
1 parent bf4019a commit 857a219
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions SuperpositionGame/src/main/scala/superposition/Laser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ private object Laser {

val laser = lasers.head
if (lasers.exists(_.justFired)) {
// TODO: Search the laser beam for each universe because the target cells might be different.
val targetCell = laser.beam.take(50).find(cell =>
multiverse.walls.contains(cell) ||
lasers.exists(_.universeObject.universe.objects.values.exists(_.cell == cell))
Expand All @@ -34,6 +35,7 @@ private object Laser {
if (laser.control.isEmpty) {
multiverse.applyGate(laser.gate, targetId, None, PositionControl(targetId, targetCell.get))
} else {
// TODO: Make sure the target and control aren't the same.
val controlId = multiverse.bitsInCell(laser.control.get).head
multiverse.applyGate(
laser.gate, targetId, None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ private object Player {
}
}

// TODO: Refactor this method.
private def move(multiverse: Multiverse, id: UniversalId, players: Iterable[Player]): Unit = {
var diff = new Vec2d(0, 0)
if (Input.keyDown(GLFW_KEY_A)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private final class Quball(universe: Universe,
this,
HashMap("on" -> false, "carried" -> false),
"on",
map => sprite.color = if (map("on")) WHITE else BLACK
state => sprite.color = if (state("on")) WHITE else BLACK
))

override def copy(): Quball = {
Expand Down

0 comments on commit 857a219

Please sign in to comment.