2015-10-15 15:52:03 +00:00
|
|
|
#ifndef TIMEMANAGER_H
|
|
|
|
#define TIMEMANAGER_H
|
|
|
|
|
|
|
|
#include "definition_global.h"
|
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace definition {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Time manager, handling the inexorable passing of time.
|
|
|
|
*/
|
2015-11-09 21:30:46 +00:00
|
|
|
class DEFINITIONSHARED_EXPORT TimeManager {
|
|
|
|
public:
|
2015-10-15 15:52:03 +00:00
|
|
|
TimeManager();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Alter a scenery to simulate the passing of *amount* of time.
|
|
|
|
*
|
|
|
|
* A 1.0 amount is a full day.
|
|
|
|
*/
|
|
|
|
void moveForward(Scenery *scenery, double amount);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the wind factor in each direction.
|
|
|
|
*/
|
|
|
|
void setWind(double wind_x, double wind_z);
|
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
private:
|
2015-10-15 15:52:03 +00:00
|
|
|
double wind_x;
|
|
|
|
double wind_z;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // TIMEMANAGER_H
|