Thread: Converting Process() To Events

Page 4 of 4 FirstFirst ... 234
Results 31 to 36 of 36
  1. #31  
    shadow1
    Guest
    .\palidino76\rs2\players\Player.java:1506: addEvent(palidino76.rs2.EventManager.
    Event,int) in palidino76.rs2.EventManager.EventManager cannot be applied to (int
    ,<anonymous palidino76.rs2.EventManager.Event>)
    EventManager.getSingleton().addEvent(2400, new Event() {

    I get this? can anyone help?
    ^
    Reply With Quote  
     

  2. #32  
    Registered Member
    Lil Str Kid's Avatar
    Join Date
    Jul 2007
    Age
    28
    Posts
    1,302
    Thanks given
    169
    Thanks received
    71
    Rep Power
    260
    This is wrong its hard to convert current process to event and also the method needs to be called else it won't work.


    Reply With Quote  
     

  3. #33  
    Registered Member
    Enjoi's Avatar
    Join Date
    Sep 2008
    Posts
    2,454
    Thanks given
    565
    Thanks received
    281
    Rep Power
    1325
    Quote Originally Posted by shadow1 View Post
    .\palidino76\rs2\players\Player.java:1506: addEvent(palidino76.rs2.EventManager.
    Event,int) in palidino76.rs2.EventManager.EventManager cannot be applied to (int
    ,<anonymous palidino76.rs2.EventManager.Event>)
    EventManager.getSingleton().addEvent(2400, new Event() {

    I get this? can anyone help?
    ^
    change

    Code:
    (Event event, int tick)
    in event manger.java to

    (int tick, Event event)
    Reply With Quote  
     

  4. #34  
    Registered Member Mini's Avatar
    Join Date
    Jul 2007
    Posts
    285
    Thanks given
    5
    Thanks received
    7
    Rep Power
    35
    This is a good idea IMO... It seems like it'd be a useful thing to do.. Thank you.
    Reply With Quote  
     

  5. #35  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,336
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    Using eventsfor small things is good but process is not an enemy. Just a bad allie =\
    Reply With Quote  
     

  6. #36  
    Registered Member
    Lil Str Kid's Avatar
    Join Date
    Jul 2007
    Age
    28
    Posts
    1,302
    Thanks given
    169
    Thanks received
    71
    Rep Power
    260
    As i said this is completely wrong converting process to event is hard even Graham said that as you have to follow a line of where there lead to and rather then them being called by process they need to be called from event so you need the method to be called.

    Note: This will not work unless you know what your doing.


    Reply With Quote  
     

Page 4 of 4 FirstFirst ... 234

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •