Beispiel #1
0
void CPlayerBall::SaveBallCannonSettings()
{
	m_BallCannonSettings.pos = GetPos();
	m_BallCannonSettings.ang = GetAng();
	m_BallCannonSettings.vel = GetVel();
	m_BallCannonSettings.rot = GetRot();
	m_BallCannonSettings.globalDynamicShotDelay = m_flGlobalDynamicShotDelay;
}
Beispiel #2
0
void ViewRot::OnMouseLDrag(UINT nFlags, const LPIE_INPUT_DATA lpd)
{
	double rot = GetRot(&startPt, lpd);

	ImgFile_Ptr f = m_pImgEdit->GetActiveFile();
	if(f){
		f->SetViewRot(rot + start_rot);

		//表示画像に適用
		LPUPDATE_DATA data = f->CreateUpdateData();
		data->isAll = true;
		f->PushUpdateData(data);
	}
}
Beispiel #3
0
void Hero::action()
{
	GodMode();
	RageCount();
	RestrictPos2();
	ErrorState();
	HGE *hge = hgeCreate(HGE_VERSION);
	GameObject *temp = GameObject::MakePosObject(TargetX, TargetY);
	/*
	if (state == DASH)
	{
		Dash();
		GoToAnotherObject(temp,hge->Timer_GetDelta());
		if (IsCoincide(temp))
		{
			state = STAND;
			locked = false;
		}
	}
	*/
	if (!locked)
	{
		if (state == WALK)
		if (SowrdCharge < GetMaxCharge())
			SowrdCharge += 1;
		else
			SowrdCharge = GetMaxCharge();
		state = STAND;
	}
	    if (recoverMP && GetMP() < MAX_MP)
		{
			if (ReturnValid(countaddMp, recoverMP, recoverMP))
			{
				varyMP(1);
			}	
	    }
	/*
	if (shakescreen)
	{
		shakestage++;
		switch (shakestage)
		{
		case 1:
			hge->Gfx_SetTransform(0, 0, 100, 0, 0, 1, 1);
			break;
		case 2:
			hge->Gfx_SetTransform(0, 0, 100, 100, 0, 1, 1);
			break;
		case 3:
			hge->Gfx_SetTransform(0, 0, 0, 100, 0, 1, 1);
			break;
		case 4:
			hge->Gfx_SetTransform(0, 0, 0, 0, 0, 1, 1);
			shakescreen = false;
			shakestage = 0;
			break;
		}
	}
	*/

	SetPos(GetX() + dx, GetY() + dy);
	dx *= 0.8;
	dy *= 0.8;
	SetImageAngle(GetRot());
	AdjustHP();
	if (GetMP() > MAX_MP)SetMP(MAX_MP);
	delete temp;
	temp = NULL;
}
Beispiel #4
0
float CObject::GetRotZ()
{
    return GetRot()[2];
}
Beispiel #5
0
float CObject::GetRotY()
{
    return GetRot()[1];
}
Beispiel #6
0
float CObject::GetRotX()
{
    return GetRot()[0];
}