Events vs. method calls

Discussion in 'Plugin Development' started by Diemex, Jun 16, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Diemex

    I was planning on implementing some Events in my plugin, because i want to write an extension where I will utilize those Events. Now I'm busy writing an in game explanatory tutorial and I was wondering if I should call the methods to send messages directly or listen for the Events which I will be sending anyways and just display my message there.

    I like the Event Idea because then my classes are more or less independent from one another, if i remove the Tutorial class to send messages my main class will still work.

    So the basic question is: Is it a good idea to use Events when I can also use straight method calls?
     
Thread Status:
Not open for further replies.

Share This Page