• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Techno's Advanced Timer System

Status
Not open for further replies.
Level 11
Joined
Aug 25, 2006
Messages
971
First of all there are at least 2 separate rules about (not) posting JASS in the GUI area.
Moving on... I really don't see what this does! Does it allow you to attach units to timers? Because if thats what it does, I can do that using a variety of systems which are all under 10 lines of code.... Please tell me exactly what this does. It looks like you put a lot of work into it so I'm interested in finding out what it does. I know a good method of attaching an integer to a timer.

Your 'interface' function is missing an endfunction. Apparently you wanted to prove its not a function by discluding the endfunction?!?!

Whats this? library TTS uses ABC
It doesn't seem to exist.
 
Level 11
Joined
Aug 25, 2006
Messages
971
For your information, I know how the libraries work. I understand most of vJass. (Structs are fun..) The point is that vjass keeps complaining about ABC. I can't compile his code because of it. I never saw a library with the name of ABC so....
 
Level 2
Joined
Nov 30, 2007
Messages
11
I apologize about the wrong forum error, can a mod please move this to the jass area? You might've noticed that this was my first post.

ABC is Cohadar's Struct Attachment System, which allows me to attach the timer to itself. It's in the test map.

function interfaces are not functions, just handlers for getting pointers to functions, which is very useful. The line doesn't syntax, and there is a GIANT COMMENT IN THE CODE ABOUT THIS.

This system allows the timer to have units added to it with a DIRECT LINK to the corresponding function, so multiple units can have a number of different functions (1-to-1 ratio) associated with them in a very efficient manner. On my crappy e-machine on the test map, I can throw around about 50 or so frogs without getting much lag.
 
Level 20
Joined
Apr 22, 2007
Messages
1,960
Welcome to the Hive, Technomancer! You should go introduce yourself in the Introductions Section.

Okay, so you're just extending ABC, but instead of attaching a timer, you're attaching a timer from which you can get a struct which contains units and their corresponding function pointers?

Besides:
FOR THIS LINE, I NEED TO LOOK UP THE SYNTAX TO REMOVE A FUNCTION POINTER...
As far as I know, function pointers are just integers, like structs. Maybe you should set it to 0 or something... I haven't worked with function interfaces much.

This seems good, but you should have definitely posted it in the Jass functions section of the site :p. Linky : http://www.hiveworkshop.com/forums/forumdisplay.php?f=414
 
Level 20
Joined
Apr 22, 2007
Messages
1,960
I'm going to release a new one today or tomorrow. It's completely remade, and uses object-oriented programming (thanks Earth-Fury :D).

In other news, Vexorian gave some advice on your system on wc3campaigns. You should go check it out.
 
Status
Not open for further replies.
Top