Quote:
Originally Posted by Codein
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;
|
Seems like that would kinda suck if we had to start doing int, etc.
Just like at the beginning something like
PHP Code:
private gansta;
private gP = gangsta.newParadise();
// in another block of code
with ( theThing )
{
gP.addGangsta( "Snappy Bro" );
}
// would not work