HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Modded Jass Code

09-23-2008, 12:49 AM#1
Tastingo
I haven't noticed for a long time people have been using structs and privates and etc... I can tell this was a mod made by Vexorian (I think?). What mod would this be and what would be the advantages of using it instead of Vjass. I'm learning Java in school so I know private prevents modding variables, but how does this help. What exactly is a struct, I forget (Haven't touched Java since June).

In a nutshell:

- What mod?
- How do these new commands/structures help
- What's the point of making JASS private?
- What's a struct

Would be cool if someone could answer it, would help a lot :).
09-23-2008, 01:02 AM#2
MaD[Lion]
first of all Jass is made by blizzard, vJass is the one ure talking about. I think it stays for Vexorian Jass.
It helps alot in the way tat u can write codes easier, and immitating the object orientation very good for wc3 needs.

Structs are basically like classes, if u have used C++ then they are functionally the same. But in java u only got classed.
In C struct was only for data, no methods. But struct in vJass is like in C++, again just like class with methods and member scope such as private, and stuff.

Private, public, static etc in all languages have the same purpose, which is to allow u to organize things easier, keep modularity and easier to work when u have many libraries in ur map, u avoid conflict this way. Also u avoid people messing with stuff in ur systems when they dont know what they are doing.

Im not an experienced programmer, but i think vJass is a great solution for mappers who wanna explore more possiblities in mapping.
09-23-2008, 01:02 AM#3
Captain Griffen
Go find the vJASS manual; try looking through Vex's sig.

You need the NewGen pack (easiest way) - tool's section.
09-23-2008, 01:53 PM#4
WNxCryptic
Except once you download the newgen pack, you need to update JassHelper (its part of the vJass compiler, and the one included in Newgen is out of date)