Quote:
Originally Posted by Inverness
I never said anything about using thisr. in the with block, which obviously wouldn't be allowed. I think thats bad form anyhow. It would be better to use Twinny's suggestion and have the this.private. section of the object for private variables.
|
Or, like in C++ Classes, being able to define the private and public variables like so:
PHP Code:
public:
char ani;
char name[20];
private:
int health;
float x, y;