Skip to content

Commit

Permalink
Add zone to block.
Browse files Browse the repository at this point in the history
  • Loading branch information
windmillium committed Dec 31, 2011
1 parent 5150c0a commit 67f3ba4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/scala/Block.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ extends Attackable
var selected = false
var installedObject:Object = _
var objects = new ListBuffer[Object]
var zone:Zone = _
import scala.collection.mutable.Set

val classes = new ListBuffer[String]
Expand Down Expand Up @@ -66,6 +67,9 @@ extends Attackable
if(plant != null)
tclasses += "plant"

if(zone != null)
tclasses += "zone"


tclasses

Expand Down

0 comments on commit 67f3ba4

Please sign in to comment.