HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Should I write a tutorial on how to use class system?

03-11-2005, 10:39 PM#1
Narwanza
Most of the expert Jass scrpiters here know about the class system written by Cooler(i think) and use it frequently, but i think a lot of people could be helped if a tutorial was written. The only problem is, I have kind of left the WC3 world and headed on the WOW and JAVA programming, so I really don't know if anyone has written a tutorial. Please tell me if a tutorial would be helpful.
03-12-2005, 01:24 AM#2
flamesforzuljin
yes that would be good. the tutorial section is in need of some more jass tuts.

considering that i dont know what the class system is i think its s good idea.

just submit into the 'submit tutorial' forum and ill take a look at it and take care of moving it.

thanks.

-flames'
03-12-2005, 06:26 PM#3
Tabris
This post is sticed in importand threads
http://www.wc3campaigns.com/showthread.php?t=71219
For someone who know POO it is enough I think....
But for those who don't know POO... They have to learn ^_^ but I don't think this is really related too wc3.
(I have not made the tuto, I think this thread explain enough)
03-12-2005, 06:27 PM#4
Taur
yeah i know just enough JASS to know you're talking about JASS right now, though i am quite good at GUI, so go ahead, but what class system?
03-13-2005, 06:05 PM#5
Tabris
Quote:
Originally Posted by darkhorde
yeah i know just enough JASS to know you're talking about JASS right now, though i am quite good at GUI, so go ahead, but what class system?

Do you know POO?
programation oriented object?

The idea is very simple : a oject is a new kind of variable.
Like you now what is an integer? What you can do with it? (ie +, -, *, /, compare)

I will now give you an exemple :
we define a class player so we have a new kind of variable player (there is already a player type in Wc3 I know, but this is an exemple).
Now that you have define the class you can make variable like :

player nameofyourvariable

When you define the class you define what is a player. It can have a name (ie String), gold amount (ie integer), (integer), a prefered music (ie sound)... And then you can define function to deal with like "set" or "get". Or more advanced....

If you know rpg, you should understand.
In rpg you have class like Mage, Warrior... They are a definition of a kind of variable.

another exemple:
class Car -> object will be like Mercedes, Renault....
class mapmaker -> you, anybody.....

You have to use JASS in order to use class sytem...
Look site or book about POO is the best way to understand.

(I know this explanation is not very good, but I am not english... so...)