View Single Post
  #6  
Old 03-12-2008, 11:25 PM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Quote:
Originally Posted by Inverness View Post
For "classes" use a TStaticVar and join a class to it or define its functions manually with function objects.
Not my point. The point is to allow classes to be included in Weapon scripts.

e.g.
PHP Code:
//#CLIENTSIDE
class Foo
{
virtual public void DoSomething() const { return "Something done..."; }
private 
int numeral;
}

class 
Bar extends Foo
{
public 
void DoSomething() const { return "Bar done..."; }
}

function 
onCreated()
{
bar = new Bar();

echo(
bar.DoSomething());

Notice the inheritance and the virtual methods.
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote