Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Alarm Class

Author
Message
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 15th Aug 2009 23:36 Edited at: 15th Aug 2009 23:44
Hi! I know alarms are easy to setup using dbTimer() but I thought it would be cool to have a class to make it easier, to read, and to add some other easy to use commands. I also just wanted to practice some C++ skills and not necessarily DarkGDK. So anyway I've attached an example along with the header and source.

The include file in Alarms.cpp is not needed with your project for it's installed in the VC++ include folder on installation. Because this doesn't use DarkGDK you can use this class in things like Irrlicht and Ogre. (I think they both use C++)

To Use:
Copy the Alarms.h and Alarms.cpp files to your project director
Add this include line:


To set an alarm simply do:


To check if an alarm went off do:


Full Command List:


Enjoy, and please let me know if this is useful or not!

Use Google first... it's not rocket surgery!

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-10-01 10:31:06
Your offset time is: 2024-10-01 10:31:06