Harmonic Flow Framework (libhffwk)
Cross platform C++ 2D Game Engine Framework
Classes | Macros
Environment.h File Reference

Singleton interface for platform specific things. More...

#include "debug/CrtDbgInc.h"
#include <string>
#include <stdio.h>
#include <map>
#include "ThreadListener.h"
#include "platform/Geometry.h"
#include "unicode/UString.h"
#include "boundary/Rect.h"
#include "vector/Vector2.h"
#include "HFDataTypes.h"
#include "zlib/zlib.h"
#include "util/StringUtil.h"
Include dependency graph for Environment.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HFCore::Environment
 Singleton interface for platform specific things. More...
 

Macros

#define MOUSE_COUNT_MAX   1
 HFCore::Mouse max count to initialize.
 
#define TOUCH_COUNT_MAX   1
 HFCore::Touch max count to initialize. More...
 
#define GAMEPAD_COUNT_MAX   4
 HFCore::GamePad max count to initialize.
 
#define DOUBLE_CLICK_MAX_DELAY   400
 HFCore::Mouse double click delay in milliseconds.
 
#define HFCORE_ENV   HFCore::Environment::instance()
 Get HFCore::Environment instance shortcut macro.
 
#define HFCORE_RESMGR   HFCORE_ENV->getResourceManager()
 Get HFCore::ResourceManager instance shortcut macro.
 
#define HFCORE_WIDMGR   HFCORE_ENV->getWidgetManager()
 Get HFCore::WidgetManager instance shortcut macro.
 
#define HFCORE_FDU   HFCORE_ENV->getFileDirUtils()
 Get HFCore::FileDirUtils instance shortcut macro.
 
#define HFCORE_PREF   HFCORE_ENV->getPreferencesManager()
 Get HFCore::Preferences instance shortcut macro.
 
#define HFCORE_STORAGE   HFCORE_ENV->getStorage()
 Get HFCore::Storage instance shortcut macro.
 
#define HFCORE_PERSLAY   HFCORE_ENV->getPersistenceLayer()
 Get HFCore::PersistenceLayer instance shortcut macro.
 
#define HFCORE_WEBMGR   HFCORE_ENV->getWebManager()
 Get HFCore::WebManager instance shortcut macro.
 
#define HFCORE_ACTMGR   HFCORE_ENV->getActorManager()
 Get HFCore::ActorManager instance shortcut macro.
 
#define HFCORE_SOUND   HFCORE_ENV->getSoundPlayer()
 Get HFCore::SoundPlayer instance shortcut macro.
 
#define HFCORE_CAMERA   HFCORE_ENV->getCamera()
 Get HFCore::Camera instance shortcut macro.
 
#define envDebugLog(format, args...)   HFCore::Environment::instance()->debugLog( format , ## args )
 Shortcut macro for logging to 'debug.log'.
 
#define envEngineLog(format, args...)   HFCore::Environment::instance()->engineLog( format , ## args )
 Shortcut macro for logging to 'engine.log'.
 
#define envGameLog(format, args...)   HFCore::Environment::instance()->gameLog( format , ## args )
 Shortcut macro for logging to 'game.log'.
 

Detailed Description

Singleton interface for platform specific things.

Definition in file Environment.h.

Macro Definition Documentation

◆ TOUCH_COUNT_MAX

#define TOUCH_COUNT_MAX   1

HFCore::Touch max count to initialize.

Note
iOS and Android only at this point.

Definition at line 53 of file Environment.h.