Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <stardate.h>
Public Member Functions | |
StarDate () | |
StarDate (double time) | |
void | Init (double time) |
double | GetCurrentStarTime (int faction=0) |
double | GetElapsedStarTime (int faction=0) |
void | InitTrek (string date) |
string | GetTrekDate (int faction=0) |
string | GetFullTrekDate (int faction=0) |
string | ConvertFullTrekDate (double date) |
void | InitSDate (string date) |
string | GetSDate (int faction=0) |
string | GetFullSDate (int faction=0) |
string | SDateFromTrekDate (string trekdate) |
string | TrekDateFromSDate (string sdate) |
Definition at line 24 of file stardate.h.
StarDate::StarDate | ( | ) |
Definition at line 18 of file stardate.cpp.
References Mission::getGametime(), and mission.
StarDate::StarDate | ( | double | time) |
string StarDate::ConvertFullTrekDate | ( | double | date) |
The stardate format is ddd.hhmm:sec with ddd, hh, mm, sec = star day, hour, minute, seconds The second equals our terran second. The minute however has 480 seconds (HOURS_DIV=8) The hour has 60 minutes and the day has 100 hours
Definition at line 82 of file stardate.cpp.
References int.
Referenced by GetFullTrekDate().
double StarDate::GetCurrentStarTime | ( | int | faction = 0 ) |
Definition at line 35 of file stardate.cpp.
References StarSystemGent::faction, Mission::getGametime(), and mission.
Referenced by GetFullTrekDate(), UniverseUtil::getStarTime(), and GetTrekDate().
double StarDate::GetElapsedStarTime | ( | int | faction = 0 ) |
string StarDate::GetFullSDate | ( | int | faction = 0 ) |
string StarDate::GetFullTrekDate | ( | int | faction = 0 ) |
Definition at line 148 of file stardate.cpp.
References ConvertFullTrekDate(), and GetCurrentStarTime().
Referenced by VDU::Draw(), UniverseUtil::getStarDate(), NetClient::loginAccept(), BaseComputer::recalcTitle(), and SaveGame::WriteDynamicUniverse().
string StarDate::GetSDate | ( | int | faction = 0 ) |
string StarDate::GetTrekDate | ( | int | faction = 0 ) |
Definition at line 154 of file stardate.cpp.
References GetCurrentStarTime().
void StarDate::Init | ( | double | time) |
Definition at line 24 of file stardate.cpp.
References factions, Mission::getGametime(), i, and mission.
void StarDate::InitSDate | ( | string | date) |
void StarDate::InitTrek | ( | string | date) |
Definition at line 62 of file stardate.cpp.
References factions, Mission::getGametime(), i, mission, and VSFileSystem::vs_dprintf().
Referenced by NetClient::loginAccept().
string StarDate::SDateFromTrekDate | ( | string | trekdate) |
string StarDate::TrekDateFromSDate | ( | string | sdate) |