⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calendar.h

📁 S.C.O.U.R.G.E.是一款类似Rogue的游戏
💻 H
字号:
/***************************************************************************                          calendar.cpp  -  description                             -------------------    begin                : Wed April 7 2004    copyright            : (C) 2004 by Daroth-U    email                : daroth-u@ifrance.com ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#ifndef CALENDAR_H#define CALENDAR_H#include "constants.h"#include <iostream>#include <vector>    // STL for Vector#include "date.h"#include "events/event.h"// set to 1 to debug and to 0 to not debug#define CALENDAR_DEBUG 0#define MAX_SCHEDULED_EVENTS 500/**  *@author Daroth-U  */class Event;class Date;class Calendar { private:      static Calendar *instance;       Date currentDate;  int timeMultiplicator;  GLint lastTick;   bool timeFrozen;     vector<Event*> scheduledEvents;     public:   static Calendar * getInstance();  bool update(int gameSpeed);  void setPause(bool mustPause);  void setTimeMultiplicator(int t);  void scheduleEvent(Event *e);  void reset(bool resetTime=true);  // return date by value to avoid modification by other classes  inline Date getCurrentDate() { return currentDate; }      Calendar();  ~Calendar();   protected:  };#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -