亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? misc.cpp

?? After decades of war one company, who had gained powerful supplying both sides with weaponary, steps
?? CPP
字號:
/*Copyright (C) 2003 Parallel RealitiesThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.*/#include "misc.h"void clearInfoLines(){	for (int i = 0 ; i < 4 ; i++)	{		graphics.textShape[i].life = 0;	}}// from a to bvoid copyInfoLine(int a, int b){	graphics.textSurface(b, graphics.textShape[a].text, -1, 0, graphics.textShape[a].fontColor);	graphics.textShape[b].life = graphics.textShape[a].life;}/*Sets one of the three information lines on the screen. The accepts thestring and colors. It will set the information to the first free infolineit finds (top to bottom). If it doesn't find any free ones, it will pushall the other info lines down one and add itself to the top.*/void setInfoLine(char *in, int color){	int index = -1;	for (int i = 0 ; i < 3 ; i++)	{		if ((graphics.textShape[i].life == 0) && (index == -1))		{			index = i;		}	}	// Bump down	if (index == -1)	{		index = 2;		copyInfoLine(1, 0);		copyInfoLine(2, 1);	}	graphics.textSurface(index, in, -1, 0, color);	graphics.textShape[index].life = 240;}/*Sets a radio message that appears at the top of the screen. Used forscript events, etc. We send a message priority too, since we don't wantPhoebe or Ursula's banter to interrupt an important message*/void setRadioMessage(signed char face, char *in, int priority){	if ((graphics.textShape[3].life > 0) && (priority == 0))		return;	graphics.textSurface(3, in, -1, 50, FONT_WHITE);	graphics.textShape[3].life = 240;	SDL_Surface *faceShape = NULL;	if (face > -1)		faceShape = graphics.shape[face];	graphics.createMessageBox(faceShape, in, 1);}void doTargetArrow(){	if ((engine.targetArrowTimer == 0) || (enemy[engine.targetIndex].shield < 1))		return;	if (enemy[engine.targetIndex].flags & FL_ISCLOAKED)		return;			if (graphics.textShape[3].life > 0)		return;	engine.targetArrow = -1;	if (engine.targetArrowTimer > 0)		engine.targetArrowTimer--;	int distX = (int)(enemy[engine.targetIndex].x - player.x);	int distY = (int)(enemy[engine.targetIndex].y - player.y);	if (distY < -300)		engine.targetArrow = 36;	if (distY > 300)		engine.targetArrow = 40;	if (distX < -400)		engine.targetArrow = 42;	if (distX > 400)		engine.targetArrow = 38;	if ((distY < -300) && (distX > 400))		engine.targetArrow = 37;	if ((distY > 300) && (distX > 400))		engine.targetArrow = 39;	if ((distY > 300) && (distX < -400))		engine.targetArrow = 41;	if ((distY < -300) && (distX < -400))		engine.targetArrow = 43;	if (engine.targetArrow != -1)	{		graphics.blit(graphics.shape[engine.targetArrow], 380, 50);		graphics.blit(graphics.shape[44], 365, 70);	}}/*Fill in later...*/void doInfo(){	int shieldColor = 0;	SDL_Rect bar;	signed char fontColor;	char text[25];	graphics.addBuffer(0, 20, 800, 25);	graphics.addBuffer(0, 545, 800, 25);	if (engine.minutes > -1)	{		if ((engine.minutes == 0) && (engine.seconds <= 29))			fontColor = FONT_RED;		else if ((engine.minutes == 0) && (engine.seconds > 29))			fontColor = FONT_YELLOW;		else			fontColor = FONT_WHITE;		graphics.blitText(10); // time remaining		sprintf(text, "%.2d:%.2d", engine.minutes, engine.seconds);		graphics.drawString(text, 410, 21, fontColor);	}	if (currentGame.area != MAX_MISSIONS - 1)	{		graphics.blitText(9); // mission objectives		sprintf(text, "%d", (currentMission.remainingObjectives1 + currentMission.remainingObjectives2));		graphics.drawString(text, 745, 21, FONT_WHITE);	}	graphics.blitText(8); // cash	sprintf(text, "%.6d", currentGame.cash);	graphics.drawString(text, 90, 21, FONT_WHITE);	doTargetArrow();	fontColor = FONT_WHITE;	if (player.ammo[0] > 0)	{		if (player.ammo[0] <= 25) fontColor = FONT_YELLOW;		if (player.ammo[0] <= 10) fontColor = FONT_RED;	}	graphics.blitText(5); // plasma ammo	sprintf(text, "%.3d", player.ammo[0]);	graphics.drawString(text, 320, 551, fontColor);	graphics.blitText(6);	if ((player.weaponType[1] != W_CHARGER) && (player.weaponType[1] != W_LASER))	{		if (player.ammo[1] == 1)			fontColor = FONT_RED;		else			fontColor = FONT_WHITE;		sprintf(text, "%.3d", player.ammo[1]); // rocket ammo		graphics.drawString(text, 465, 551, fontColor);	}	if (((player.weaponType[1] == W_CHARGER) || (player.weaponType[1] == W_LASER)) && (player.ammo[1] > 0))	{		int c = graphics.white;		if (player.ammo[1] > 100)			c = graphics.red;		bar.x = 450;		bar.y = 550;		bar.h = 12;		for (int i = 0 ; i < (player.ammo[1] / 5) ; i++)		{			bar.w = 1;			SDL_FillRect(graphics.screen, &bar, c);			bar.x += 2;		}	}	if ((!allMissionsCompleted()) && (SDL_GetTicks() >= engine.counter2))	{		engine.timeTaken++;		engine.counter2 = SDL_GetTicks() + 1000;		if (engine.missionCompleteTimer == 0)			checkScriptEvents();	}	if ((engine.timeMission) && (!engine.cheatTime) && (player.shield > 0))	{		if (SDL_GetTicks() >= engine.counter)		{			if ((engine.seconds > 1) && (engine.seconds <= 11) && (engine.minutes == 0))			{				playSound(SFX_CLOCK);			}			if (engine.seconds > 0)			{				engine.seconds--;				engine.counter = (SDL_GetTicks() + 1000);			}			else if ((engine.seconds == 0) && (engine.minutes > 0))			{				engine.minutes--;				engine.seconds = 59;				engine.counter = (SDL_GetTicks() + 1000);				for (int i = 0 ; i < 3 ; i++)				{					if (currentMission.timeLimit1[i] > -1)						currentMission.timeLimit1[i]--;					if (currentMission.timeLimit2[i] > -1)						currentMission.timeLimit2[i]--;				}				checkTimer();				checkScriptEvents();			}			if ((engine.seconds == 0) && (engine.minutes == 0))			{				for (int i = 0 ; i < 3 ; i++)				{					if (currentMission.timeLimit1[i] > -1)						currentMission.timeLimit1[i]--;					if (currentMission.timeLimit2[i] > -1)						currentMission.timeLimit2[i]--;				}				checkTimer();				checkScriptEvents();				//engine.counter = 0;				engine.counter = (SDL_GetTicks() + 1000);			}		}	}	for (int i = 0 ; i < 3 ; i++)	{		if (graphics.textShape[i].life > 0)		{			graphics.textShape[i].y = (525 - (i * 20));			graphics.blitText(i);			graphics.textShape[i].life--;			if (graphics.textShape[i].life == 0)			{				copyInfoLine(i + 1, i);				copyInfoLine(i + 2, i + 1);				graphics.textShape[2].life = 0;			}		}	}	// Show the radio message if there is one	if (graphics.textShape[3].life > 0)	{		graphics.blit(graphics.messageBox, (800 - graphics.messageBox->w) / 2, 50);		graphics.textShape[3].life--;	}	// Do the target's remaining shield (if required)	if (currentGame.area != 10)	{		if ((engine.targetIndex > -1) && (enemy[engine.targetIndex].shield > 0) && (engine.targetIndex > 9))		{			graphics.blitText(7);			bar.w = 1;			bar.h = 12;			bar.x = 620;			bar.y = 550;			for (float i = 0 ; i < (engine.targetShield * enemy[engine.targetIndex].shield) ; i++)			{				if (i > 50)					shieldColor = graphics.green;				else if ((i >= 25) && (i <= 50))					shieldColor = graphics.yellow;				else					shieldColor = graphics.red;				SDL_FillRect(graphics.screen, &bar, shieldColor);				bar.x += 2;			}		}	}	graphics.blitText(11);	bar.w = 25;	bar.h = 12;	bar.x = 80;	bar.y = 571;	SDL_FillRect(graphics.screen, &bar, graphics.green);	for (int i = 1 ; i < currentGame.maxPlasmaDamage ; i++)	{		bar.x += 30;		if (weapon[1].damage >= (i + 1))			SDL_FillRect(graphics.screen, &bar, graphics.green);		else			SDL_FillRect(graphics.screen, &bar, graphics.darkGreen);	}	graphics.blitText(12);	bar.w = 25;	bar.h = 12;	bar.x = 315;	bar.y = 571;	SDL_FillRect(graphics.screen, &bar, graphics.yellow);	for (int i = 1 ; i < currentGame.maxPlasmaDamage ; i++)	{		bar.x += 30;		if (weapon[1].ammo[0] >= (i + 1))			SDL_FillRect(graphics.screen, &bar, graphics.yellow);		else			SDL_FillRect(graphics.screen, &bar, graphics.darkYellow);	}	graphics.blitText(13);	bar.w = 25;	bar.h = 12;	bar.x = 550;	bar.y = 571;	for (int i = 15 ; i > (currentGame.maxPlasmaRate - 1) ; i -= 2)	{		if (weapon[1].reload[0] <= i)			SDL_FillRect(graphics.screen, &bar, graphics.blue);		else			SDL_FillRect(graphics.screen, &bar, graphics.darkerBlue);		bar.x += 30;	}	graphics.blitText(4);	if (player.shield < 1)		return;	if ((!engine.keyState[SDLK_SPACE]) && (player.weaponType[1] == W_LASER) && (engine.eventTimer % 8 == 1))		Math::limitChar(&(--player.ammo[1]), 1, 255);	if ((engine.eventTimer < 30) && (player.shield <= engine.lowShield))		return;	signed char blockSize = 1;	bar.w = blockSize;	bar.h = 12;	bar.x = 95;	bar.y = 550;	for (int i = 0 ; i < player.shield ; i += blockSize)	{		if (i >= engine.averageShield)			shieldColor = graphics.green;		else if ((i >= engine.lowShield) && (i < engine.averageShield))			shieldColor = graphics.yellow;		else			shieldColor = graphics.red;		SDL_FillRect(graphics.screen, &bar, shieldColor);		bar.x += blockSize;		if (player.maxShield < 75)			bar.x++;	}}int getFace(char *face){	for (int i = 0 ; i < 7 ; i++)	{		if (strcmp(faces[i], face) == 0)			return 90 + i;	}	return -1;}void resetLists(){	object *ob, *ob2;	collectables *c1, *c2;	bRect *r1, *r2;	ob = engine.bulletHead->next;	while(ob != NULL)	{		ob2 = ob;		ob = ob->next;		delete ob2;	}	engine.bulletHead->next = NULL;	engine.bulletTail = engine.bulletHead;	ob = engine.explosionHead->next;	while(ob != NULL)	{		ob2 = ob;		ob = ob->next;		delete ob2;	}	engine.explosionHead->next = NULL;	engine.explosionTail = engine.explosionHead;	c1 = engine.collectableHead->next;	while (c1 != NULL)	{		c2 = c1;		c1 = c1->next;		delete c2;	}	engine.collectableHead->next = NULL;	engine.collectableTail = engine.collectableHead;		r1 = graphics.bufferHead->next;	while (r1 != NULL)	{		r2 = r1;		r1 = r1->next;		delete r2;	}		graphics.bufferHead->next = NULL;	graphics.bufferTail = graphics.bufferHead;	ob = engine.debrisHead->next;	while(ob != NULL)	{		ob2 = ob;		ob = ob->next;		delete ob2;	}	engine.debrisHead->next = NULL;	engine.debrisTail = engine.debrisHead;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜影院久久久| jlzzjlzz国产精品久久| 欧美色视频一区| 亚洲精品水蜜桃| 91麻豆国产自产在线观看| 最新中文字幕一区二区三区 | 亚洲一区二区三区小说| 一本到不卡精品视频在线观看| 中文字幕一区三区| 91视视频在线观看入口直接观看www | 国产精品一卡二| 欧美韩日一区二区三区四区| 不卡视频一二三| 夜夜亚洲天天久久| 欧美精品丝袜久久久中文字幕| 秋霞午夜av一区二区三区| www激情久久| 99视频国产精品| 亚洲电影在线播放| 欧美大片一区二区| 国产成人精品亚洲日本在线桃色 | 国产宾馆实践打屁股91| 中文字幕一区二区不卡| 欧美日韩视频一区二区| 麻豆久久久久久久| 国产精品国产三级国产专播品爱网| 91成人免费电影| 免费人成在线不卡| 欧美国产精品劲爆| 在线播放亚洲一区| 国产白丝精品91爽爽久久| 亚洲国产精品尤物yw在线观看| 欧美videofree性高清杂交| 成人av在线看| 日韩不卡一区二区三区| 国产精品色在线观看| 欧美日韩黄色一区二区| 国产精品一品二品| 天天免费综合色| 国产精品嫩草影院com| 91麻豆精品国产自产在线| 国产91丝袜在线18| 亚洲午夜久久久久久久久久久| 久久免费美女视频| 欧美日韩免费电影| eeuss鲁片一区二区三区在线观看| 日韩电影免费在线观看网站| 亚洲欧洲日产国码二区| 欧美成人猛片aaaaaaa| 色哟哟日韩精品| 国产乱码精品一区二区三区av| 丝袜诱惑亚洲看片| 亚洲欧美中日韩| 久久综合网色—综合色88| 欧美人与禽zozo性伦| 99re66热这里只有精品3直播| 久久国产精品一区二区| 亚洲成av人片在线| 亚洲欧美区自拍先锋| 国产日韩影视精品| 日韩欧美在线网站| 精品视频色一区| 色综合久久中文字幕| 丁香一区二区三区| 国产一区二区三区av电影| 午夜电影一区二区| 亚洲国产日日夜夜| 樱桃视频在线观看一区| 亚洲色图视频网站| 国产精品久线在线观看| 国产色综合久久| 久久在线免费观看| 日韩欧美国产麻豆| 欧美大片国产精品| 日韩欧美亚洲国产精品字幕久久久| 欧美日韩久久不卡| 欧美区一区二区三区| 欧美色网站导航| 欧美日韩国产综合久久| 欧美色综合网站| 欧美日韩国产首页| 8x8x8国产精品| 67194成人在线观看| 欧美区在线观看| 欧美一级理论性理论a| 日韩欧美一级二级| 精品国免费一区二区三区| 欧美刺激脚交jootjob| 精品女同一区二区| 久久久久久久久久久黄色| 久久久久久久久99精品| 国产日韩欧美亚洲| 中文字幕一区二区三区色视频| 国产精品不卡在线| 亚洲免费观看在线观看| 亚洲一区二区三区四区五区黄 | 亚洲人成在线观看一区二区| 自拍偷拍国产亚洲| 亚洲精品成人少妇| 亚洲午夜免费视频| 久久国产尿小便嘘嘘尿| 国产米奇在线777精品观看| 国产99久久久久| 欧美一区二区久久久| 日韩视频一区二区在线观看| 日韩精品一区国产麻豆| 国产日产亚洲精品系列| 综合电影一区二区三区 | 色狠狠桃花综合| 8x福利精品第一导航| 久久在线观看免费| 亚洲免费观看高清完整版在线| 亚洲一区在线看| 久久成人免费网| 99久久精品免费观看| 欧美日韩一级视频| 欧美精品一区二区三区视频| 中文字幕在线视频一区| 性做久久久久久久久| 国产在线播放一区二区三区| av亚洲产国偷v产偷v自拍| 欧美三级韩国三级日本三斤| 精品成人私密视频| 亚洲精品久久久久久国产精华液| 三级不卡在线观看| 成人免费视频播放| 欧美日韩亚洲另类| 国产农村妇女精品| 亚洲国产精品一区二区www在线| 久久aⅴ国产欧美74aaa| 色婷婷综合五月| 日韩精品一区二区三区蜜臀| 亚洲美女屁股眼交3| 国产原创一区二区| 在线免费不卡视频| 国产亚洲自拍一区| 日韩国产欧美三级| 99riav久久精品riav| 精品国产自在久精品国产| 一区二区三区蜜桃网| 国产一二精品视频| 欧美丰满美乳xxx高潮www| 国产精品久久久久久久午夜片| 日韩电影免费一区| 国产精品初高中害羞小美女文| 日韩精品电影一区亚洲| 99久久99久久久精品齐齐| 久久九九久精品国产免费直播| 亚洲高清不卡在线观看| aaa欧美日韩| 久久精品欧美日韩| 美女网站色91| 欧美裸体bbwbbwbbw| 亚洲色图色小说| 成人免费高清在线观看| 久久影院午夜论| 日韩电影一二三区| 欧美日韩亚洲另类| 亚洲资源中文字幕| 91免费观看视频在线| 国产精品久久久久9999吃药| 狠狠色综合播放一区二区| 日韩一区二区在线看| 日韩影院精彩在线| 欧美精品亚洲二区| 亚洲午夜久久久久久久久电影院 | 日本电影欧美片| 亚洲欧美电影院| 99久久久无码国产精品| 国产女主播一区| 国产成人综合自拍| 国产精品污网站| 成人午夜激情视频| 国产精品三级视频| 97久久超碰国产精品| 中文字幕日韩欧美一区二区三区| 懂色一区二区三区免费观看| 欧美韩国一区二区| 成人白浆超碰人人人人| 中文字幕一区在线观看| 色琪琪一区二区三区亚洲区| 亚洲欧美国产三级| 欧美在线色视频| 亚洲国产cao| 日韩一区二区在线观看视频| 91福利在线播放| 视频一区中文字幕| 欧美一二三四区在线| 久久精品国产亚洲aⅴ| 久久精品夜夜夜夜久久| 国产精品白丝av| 国产精品久久久久婷婷| 一本大道综合伊人精品热热| 亚洲成人免费在线观看| 7777精品伊人久久久大香线蕉完整版 | 久久夜色精品一区| 成人丝袜高跟foot| 亚洲综合区在线| 欧美tickling网站挠脚心| 成人在线视频一区二区|