A few things to note: you can't have arguments in the 'constructor' (it's not really a constructor, in my opinion), and you can't call the destructor. Or you shouldn't be able to, anyways.
If you want to have a pseudo-constructor, create a static function in the class and call it Create, that way it's pretty obvious what it does. For example, my entity classes have a static function Spawn that, well, spawns one of them at a given point.
Probably already knew that, but I figured I'd mention it.
If you want to have a pseudo-constructor, create a static function in the class and call it Create, that way it's pretty obvious what it does. For example, my entity classes have a static function Spawn that, well, spawns one of them at a given point.
Probably already knew that, but I figured I'd mention it.