Simple question. Can i do this:
object Xyz extends Actor { ... }
or should actors be instance classes?
The keyword objectessentially creates an anonymous class and one instance of this class. So yes, this code will be in order - it Xyzwill be a link to an object that is an Actor.
object
Xyz
Object extension Actorworks fine.
Actor
Did you forget the startactor? (This is a mistake I made initially)
start
object Xyz extends Actor { start ... }
" ":
Actor.actor {doStuff}
.