The problem is that Node(name)
is just a method call and so can't be in extends
. You need to write the type like this:
class StatsView(name: String, manager: AssetManager, statistics: Statistics) extends
Spatial(name) with Node { ... }
My issue is that I need to call the super constructor of Node
Since Node
isn't a class, it doesn't have a super constructor.