Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-05-2009, 02:19 PM
Pend
Fire Beetle
 
Join Date: Sep 2009
Posts: 16
Default

Haven't looked in any detail at what you've done, but a quick answer to your query about where to declare your variables is this: If you want them to be persistent, the most likely place you'll want to declare them is as member variables of the parent object--in this case in "class Client {" in client.h. But don't forget to initialize them to some known valid value in the constructor!

But without looking into it in more detail, I'm not convinced that Client is where you want this to be (there might be a Spell or SpellEffect class that persists as long as the spell is in effect, or a Player class that contains a list of currently active effects--if either exists, those would be more appropriate place to have this data retained).
Reply With Quote
 


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:07 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3