HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Vex I hate you.

09-23-2007, 04:58 AM#1
cohadar
Wtf did you put that TimeLib into pastebin so noone can find it?
You don't even have references in your signature to it.

I found out about it because wc3c was down and you posted about it on thehelper, real sweet.

Is there something wrong with this library that you decided to keep it a secret?
09-23-2007, 05:01 AM#2
Dark.Revenant
There is a function on this forum that is known as "Private Messaging"
09-23-2007, 05:13 AM#3
cohadar
This is a discussion about his system, it is and should be public.

One more question.
Can TimeLib be used for periodic events?
09-23-2007, 12:48 PM#4
Vexorian
I posted it yesterday because I didn't want to link the guys in thehelper to hydra.

Hydra was for a while the place that included it.

Periodic events are possible with timelib but they make more sense with the usual single timer function + array we always do. Periodic events in timelib will just require some recursive thought.

And I was going to add it to the sig but then I got an idea, with the structs extending structs thing I can seriously make a much better system now...
09-23-2007, 01:03 PM#5
cohadar
I just don't get how would struct extending be more useful than TimerEventListener interface.

Well I'll just wait and see shall I...

Tell me where did you get the idea to use heaps for timer events?
09-23-2007, 01:35 PM#6
Vexorian
It is not really much of a different thing to timerlib.

Only that at the end the abstract class would get the name "timerevent", things like adding the delay would be a method on the class instead of an external function and you will be able to use destroy sanely

Collapse JASS:
//like:

struct myThing extends timerevent
 unit u=null

   method onExpire takes nothing returns nothing
      if(GetUnitAbilityLevel(u,'B000')==0) then
          call ExplodeUnitBJ(u)
          call this.destroy()
      else
         call this.addExpiration(5.0)
      endif
   endmethod
endstruct

Quote:
Tell me where did you get the idea to use heaps for timer events?
Pipedream. We needed a way for random time durations after we concluded the single timer + array was awesome for periodic events.
09-23-2007, 01:38 PM#7
FinalTyrant
cohadar I hate you.
09-23-2007, 01:41 PM#8
Rao Dao Zao
In Soviet Russia, Vex hates YOU.
09-23-2007, 01:43 PM#9
Vexorian
In soviet Russia, Lame jokes make you.
09-23-2007, 04:47 PM#10
MaD[Lion]
i love Vex only for his creations :D this thing sounds nice, it isnt supported in vJass yet right?
This thing works kinda same like my custom timer, just more nice to write
09-23-2007, 05:06 PM#11
rain9441
TimeLib is great but once you add an event to the queue you cannot destroy it. That is the only limitation it has, and probably is the reason it isn't advertised.

I'm looking forward to whatever Vex has up his sleeve for Timers and timed events, TimeLib is already fantastic so if he can deliver something better I'm all for it!
09-24-2007, 01:37 AM#12
grim001
I should be able to post a new version of TimedEvent that allows deleting queued events... that's actually quite useful in some cases...
09-24-2007, 02:34 AM#13
Vexorian
It isn't, but the thing I am making right now will allow that.
09-24-2007, 11:01 AM#14
PitzerMike
Do not hate. Forgive each other!
09-24-2007, 02:32 PM#15
Toadcop
Quote:
Do not hate. Forgive each other!
+1 // Priest Mike xD no in truth it's very wise.