PlayerShip::PlayerShip(void)
{
	// On initialization, set the player to the center of the univers
	loc.setPos(LargeInt(0), LargeInt(0));
	loc.setSpeed(0.0f, 0.0f);
	loc.setAcceleration(0.0f);
	loc.setRot(0.0f);
	loc.setRotSpeed(0.0f);
	loc.setRotAcc(0.0f);
}
Camera::Camera(void)
{
	// On initialization, set the camera to the center of the univers
	loc.setPos(LargeInt(0), LargeInt(0));
	loc.setSpeed(0.0f, 0.0f);
	loc.setAcceleration(0.0f);
	loc.setRot(0.0f);
	loc.setRotSpeed(0.0f);
	loc.setRotAcc(0.0f);
	zoomFactor = CAM_DEF_ZOOM_FACTOR;
}
示例#3
0
void	MTime::TzSpecificLocalToUTC(TIME_ZONE_INFORMATION *tzi)
{
	LARGE_INTEGER liFiletime;

	// do not transform to utc twice
	if (tzi && _isLocal) {
		liFiletime = LargeInt();
		liFiletime.QuadPart += _Offset(tzi) * 60 * 10000000i64;
		Set(liFiletime, TRUE);
	}
}
示例#4
0
DWORD	MTime::TimeStamp() const
{
	LARGE_INTEGER li;

	if (IsLocal()) {
		MTime mt(*this);
		mt.LocalToUTC();
		li = mt.LargeInt();
	}
	else
		li = LargeInt();

	li.QuadPart /= 10000000i64;
	li.QuadPart -= 11644473600i64;

	if (li.QuadPart < 0)
		return 0;

	return (DWORD)li.QuadPart;
}