Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-06-2011, 02:53 PM
Adddeeee Adddeeee is offline
Registered User
Join Date: Aug 2011
Posts: 30
Adddeeee is on a distinguished road
Instance of a class?

Hi!

I'm new to GS2 and have a few (dumb) questions.

When it comes to classes and objects; is there any way to make an instance of a class? Like in Java you write something like:

Java:
PHP Code:
MyClass myObject = new MyClass(); 
Or should I look at classes in GS2 like a way to gather general functions?

I am a little bit confused on how the code structure should look like to be efficient.

Help is very much appreciated! Sorry for this n00b question though.

// Adddeeee
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:45 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.