Well, have fun figuring this out lol.
Galaxy is closer to C. So there is no object oriented programming.
You can have structs, but they're not allowed to have methods or constructors.
If you really want this kind of things, then you got to work with a 3rd party interpreter called Andromeda (http://www.sc2mod.com/board/index.php?page=Thread&threadID=499). With this you can create objects, structs, etc which then get turned into normal working Galaxy code.
I totally dig the naming.
Probably from the same place the "t" comes from :P
Sorry, lol. Had to say this :D
Well, have fun figuring this out lol.
Galaxy is closer to C. So there is no object oriented programming.
You can have structs, but they're not allowed to have methods or constructors.
If you really want this kind of things, then you got to work with a 3rd party interpreter called Andromeda (http://www.sc2mod.com/board/index.php?page=Thread&threadID=499). With this you can create objects, structs, etc which then get turned into normal working Galaxy code.
Since you're using vJass syntax I guess you haven't seen much of Galaxy's syntax yet. You can check out a tutorial we got (http://forums.sc2mapster.com/resources/tutorials/7078-galaxy-a-guide-to-galaxy-parts-1-and-2/).
PS: It's vector.allocate() btw, not allowcate ^.^