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

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

?? intermission.cpp

?? After decades of war one company, who had gained powerful supplying both sides with weaponary, steps
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/*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 "intermission.h"/*Drives the cursor. Is used by some other screens too*/void doCursor(){	getPlayerInput();	Math::limitInt(&engine.cursor_x, 10, 790);	Math::limitInt(&engine.cursor_y, 10, 590);	graphics.blit(graphics.shape[0], engine.cursor_x, engine.cursor_y);}/*Sets the player's current status information lines. These are the linesthat are scrolled up the screen when the player clicks on Current StatusThese are set only once.*/void setStatusLines(){	char string[50];	sprintf(string, "System : %s", systemNames[currentGame.system]);	graphics.textSurface(0, string, 0, 0, FONT_WHITE);	signed char total = 0;	signed char completed = 0;		for (int i = 0 ; i < 10 ; i++)	{		if (systemPlanet[i].missionNumber > -1)		{			switch(systemPlanet[i].missionCompleted)   		{				case 0:					total++;					break;				case 1:					total++;					completed++;					break;			}		}	}	for (int i = 0 ; i < 30 ; i++)		graphics.textSurface(i, "", 0, 0, FONT_WHITE);	sprintf(string, "Missions Completed : %d/%d", completed, total);	graphics.textSurface(1, string, 0, 0, FONT_WHITE);	sprintf(string, "Shots Fired : %d", currentGame.shots);	graphics.textSurface(2, string, 0, 0, FONT_WHITE);	sprintf(string, "Hits Scored : %d", currentGame.hits);	graphics.textSurface(3, string, 0, 0, FONT_WHITE);	sprintf(string, "Accuracy : %d%%", currentGame.accuracy);	graphics.textSurface(4, string, 0, 0, FONT_WHITE);	sprintf(string, "Enemies Killed by Others : %d", currentGame.totalOtherKills);	graphics.textSurface(5, string, 0, 0, FONT_WHITE);	sprintf(string, "Total Cash Earned : %d", currentGame.cashEarned);	graphics.textSurface(6, string, 0, 0, FONT_WHITE);	graphics.textSurface(7, "*** Chris ***", 0, 0, FONT_WHITE);	sprintf(string, "Enemies Killed : %d", currentGame.totalKills);	graphics.textSurface(8, string, 0, 0, FONT_WHITE);	sprintf(string, "Shield Restores Picked Up : %d", currentGame.shieldPickups);	graphics.textSurface(9, string, 0, 0, FONT_WHITE);	sprintf(string, "Plasma Cells Picked Up : %d", currentGame.cellPickups);	graphics.textSurface(10, string, 0, 0, FONT_WHITE);	sprintf(string, "Rockets Picked Up : %d", currentGame.rocketPickups);	graphics.textSurface(11, string, 0, 0, FONT_WHITE);	sprintf(string, "Powerups Picked Up : %d", currentGame.rocketPickups);	graphics.textSurface(12, string, 0, 0, FONT_WHITE);	sprintf(string, "Mines Destroyed : %d", currentGame.minesKilled);	graphics.textSurface(13, string, 0, 0, FONT_WHITE);	sprintf(string, "Slaves Rescued : %d", currentGame.slavesRescued);	graphics.textSurface(14, string, 0, 0, FONT_WHITE);	sprintf(string, "Cargo Picked Up : %d", currentGame.cargoPickups);	graphics.textSurface(15, string, 0, 0, FONT_WHITE);	if (currentGame.hasWingMate1)	{		graphics.textSurface(16, "*** Phoebe ***", 0, 0, FONT_WHITE);		sprintf(string, "Enemies Killed : %d", currentGame.wingMate1Kills);		graphics.textSurface(17, string, 0, 0, FONT_WHITE);		sprintf(string, "Ejections : %d", currentGame.wingMate1Ejects);		graphics.textSurface(18, string, 0, 0, FONT_WHITE);	}	if (currentGame.hasWingMate2)	{		graphics.textSurface(19, "*** Ursula ***", 0, 0, FONT_WHITE);		sprintf(string, "Enemies Killed : %d", currentGame.wingMate2Kills);		graphics.textSurface(20, string, 0, 0, FONT_WHITE);		sprintf(string, "Ejections : %d", currentGame.wingMate2Ejects);		graphics.textSurface(21, string, 0, 0, FONT_WHITE);	}	signed char percentage = 0;	if ((currentGame.secondaryMissions > 0) && (currentGame.secondaryMissionsCompleted > 0))		percentage = (currentGame.secondaryMissionsCompleted / currentGame.secondaryMissions) * 100;	sprintf(string, "Seconday Missions Completed : %d / %d (%d%%)", currentGame.secondaryMissionsCompleted, currentGame.secondaryMissions, percentage);	graphics.textSurface(24, string, 0, 0, FONT_WHITE);	int timeTaken = currentGame.timeTaken;	signed char clock = 0;	while (timeTaken > 3599)	{		clock++;		timeTaken -= 3600;	}	sprintf(string, "Total Time : %.2d", clock);	clock = 0;	while (timeTaken > 59)	{		clock++;		timeTaken -= 60;	}	sprintf(string, "%s:%.2d:%.2d", string, clock, timeTaken);	graphics.textSurface(26, string, -1, 0, FONT_WHITE);	graphics.textSurface(27, "Current Status", -1, 0, FONT_WHITE);	graphics.textShape[0].y = 400;	graphics.textShape[0].x = 150;	for (int i = 1 ; i < 25 ; i++)	{		graphics.textShape[i].y = graphics.textShape[i - 1].y + 20;		if ((i == 7) || (i == 16) || (i == 19))			graphics.textShape[i].y += 25;		graphics.textShape[i].x = 150;	}	graphics.textShape[26].y = 404;	graphics.textShape[27].y = 83;}/*Sets the names and stats of the planets within the current system.This will later be placed into a data file.*/void setSystemPlanets(){	FILE *fp;	char string[100];	strcpy(string, "");	switch (currentGame.system)	{		case 0:			strcpy(string, "data/planets_spirit.dat");			break;		case 1:			strcpy(string, "data/planets_eyananth.dat");			break;		case 2:			strcpy(string, "data/planets_mordor.dat");			break;		case 3:			strcpy(string, "data/planets_sol.dat");			break;	}	#if USEPACK	int dataLocation = locateDataInPak(string, 1);	fp = fopen(PACKLOCATION, "rb");	fseek(fp, dataLocation, SEEK_SET);	#else	fp = fopen(string, "rb");	#endif	int distance;	char name[50];	int image;	for (int i = 0 ; i < 10 ; i++)	{		fscanf(fp, "%d %s %d", &distance, name, &image);		systemPlanet[i].y = distance;		strcpy(systemPlanet[i].name, name);		systemPlanet[i].image = graphics.shape[image];	} 	int messageMission;	int messageSlot;	char face[50];	char from[100];	char subject[100];	for (int i = 0 ; i < 10 ; i++)	{		fscanf(fp, "%d %d %s%*c", &messageMission, &messageSlot, face);		fscanf(fp, "%[^\n]%*c", from);		fscanf(fp, "%[^\n]%*c", subject);		systemPlanet[i].messageMission = messageMission;		systemPlanet[i].messageSlot = messageSlot;		systemPlanet[i].faceImage = getFace(face);		strcpy(systemPlanet[i].from, from);		strcpy(systemPlanet[i].subject, subject);	}	fclose(fp);}/*Spins the planets around the sun, spaced according to their Y valueas defined in setSystemPlanets(). Moving the cursor over the planetwill show their name and their current status*/signed char showSystem(float x, float y){	SDL_Rect r;	signed char planet = 0;	int planetSpace = systemPlanet[planet].y;	signed char rtn = 0;	// Blit the sun	graphics.blit(graphics.shape[30], 370, 220);	for (int i = 50 ; i < 300 ; i+= planetSpace)	{		x *= 0.75;		y *= 0.75;		graphics.circle(400, 250, i, graphics.screen, graphics.darkGrey);		r.x = int(400 + (sin(x) * i));		r.y = int(250 + (cos(y) * i));		r.w = 10;		r.h = 10;		r.x -= (systemPlanet[planet].image->w / 2);		r.y -= (systemPlanet[planet].image->h / 2);		graphics.blit(systemPlanet[planet].image, r.x, r.y);		if (Collision::collision(engine.cursor_x + 13, engine.cursor_y + 13, 6, 6, r.x, r.y, systemPlanet[planet].image->w, systemPlanet[planet].image->h))		{			graphics.drawString(systemPlanet[planet].name, -1, 545, FONT_WHITE);			if ((engine.keyState[SDLK_LCTRL]) || (engine.keyState[SDLK_RCTRL]))			{				if (currentGame.system == 0)				{					currentGame.stationedPlanet = planet;					currentGame.destinationPlanet = planet;					currentGame.area = systemPlanet[currentGame.stationedPlanet].missionNumber;					strcpy(currentGame.stationedName, systemPlanet[currentGame.stationedPlanet].name);				}				else				{					currentGame.destinationPlanet = planet;					strcpy(currentGame.destinationName, systemPlanet[currentGame.destinationPlanet].name);				}				rtn = 1;				engine.keyState[SDLK_LCTRL] = engine.keyState[SDLK_RCTRL] = 0;			}		}		planet++;		if (systemPlanet[planet].y == -1)			break;		planetSpace = systemPlanet[planet].y;	}	return rtn;}/*Scrolls the player's current information up the screen. Whenthe specified status line reaches a certain Y value, the entirelist is reset and the information lines begin again from the bottom(in other words, they loop around).*/void showStatus(SDL_Surface *infoSurface){	graphics.blit(infoSurface, 100, 80);	for (int i = 0 ; i < 22 ; i++)	{		graphics.textShape[i].y -= 0.25;		if ((graphics.textShape[i].y > 80) && (graphics.textShape[i].y < 400))			graphics.blitText(i);	}	if (graphics.textShape[21].y < 65)	{		graphics.textShape[0].y = 400;		for (int i = 1 ; i < 25 ; i++)		{			graphics.textShape[i].y = graphics.textShape[i - 1].y + 20;			if ((i == 7) || (i == 16) || (i == 19))				graphics.textShape[i].y += 25;		}	}	graphics.blevelRect(100, 80, 600, 20, 0x00, 0x00, 0x99);	graphics.blevelRect(100, 400, 600, 20, 0x00, 0x00, 0x99);	graphics.blitText(26);	graphics.blitText(27);}void createOptions(SDL_Surface *optionsSurface){	SDL_FillRect(optionsSurface, NULL, graphics.black);	graphics.blevelRect(optionsSurface, 0, 0, optionsSurface->w - 2, optionsSurface->h - 2, 0x00, 0x00, 0x44);	graphics.drawString("++ OPTIONS ++", 105, 8, FONT_WHITE, optionsSurface);	graphics.blevelRect(optionsSurface, 190, 45, 50, 22, 0x00, 0x00, 0x00);	graphics.blevelRect(optionsSurface, 250, 45, 50, 22, 0x00, 0x00, 0x00);	graphics.blevelRect(optionsSurface, 20, 45, 150, 22, 0x00, 0x00, 0x00);	if (currentGame.useSound)		graphics.blevelRect(optionsSurface, 190, 45, 50, 22, 0xff, 0x00, 0x00);	else		graphics.blevelRect(optionsSurface, 250, 45, 50, 22, 0xff, 0x00, 0x00);	graphics.drawString("ON", 207, 50, FONT_WHITE, optionsSurface);	graphics.drawString("OFF", 263, 50, FONT_WHITE, optionsSurface);	graphics.drawString("SOUND", 30, 50, FONT_WHITE, optionsSurface);	graphics.blevelRect(optionsSurface, 190, 95, 50, 22, 0x00, 0x00, 0x00);	graphics.blevelRect(optionsSurface, 250, 95, 50, 22, 0x00, 0x00, 0x00);	graphics.blevelRect(optionsSurface, 20, 95, 150, 22, 0x00, 0x00, 0x00);	if (currentGame.useMusic)		graphics.blevelRect(optionsSurface, 190, 95, 50, 22, 0xff, 0x00, 0x00);	else		graphics.blevelRect(optionsSurface, 250, 95, 50, 22, 0xff, 0x00, 0x00);	graphics.drawString("ON", 207, 100, FONT_WHITE, optionsSurface);	graphics.drawString("OFF", 263, 100, FONT_WHITE, optionsSurface);	graphics.drawString("MUSIC", 30, 100, FONT_WHITE, optionsSurface); 	graphics.blevelRect(optionsSurface, 190, 145, 50, 22, 0x00, 0x00, 0x00);	graphics.blevelRect(optionsSurface, 250, 145, 50, 22, 0x00, 0x00, 0x00);	graphics.blevelRect(optionsSurface, 20, 145, 150, 22, 0x00, 0x00, 0x00);	if (currentGame.fullScreen)		graphics.blevelRect(optionsSurface, 190, 145, 50, 22, 0xff, 0x00, 0x00);	else		graphics.blevelRect(optionsSurface, 250, 145, 50, 22, 0xff, 0x00, 0x00);	graphics.drawString("ON", 207, 150, FONT_WHITE, optionsSurface);	graphics.drawString("OFF", 263, 150, FONT_WHITE, optionsSurface);	graphics.drawString("FULLSCREEN", 30, 150, FONT_WHITE, optionsSurface);	graphics.blevelRect(optionsSurface, 20, 195, 150, 22, 0x00, 0x00, 0x00);	graphics.blevelRect(optionsSurface, 190, 195, 110, 22, 0x00, 0x00, 0x00);	if (currentGame.autoSaveSlot == -1)	{		graphics.drawString("NONE", 225, 200, FONT_WHITE, optionsSurface);	}	else	{		char string[] = "Slot %d";		sprintf(string, "Slot %d", currentGame.autoSaveSlot + 1);		graphics.blevelRect(optionsSurface, 190, 195, 110, 22, 0xff, 0x00, 0x00);		graphics.drawString(string, 225, 200, FONT_WHITE, optionsSurface);	}	graphics.drawString("AUTOSAVE SLOT", 30, 200, FONT_WHITE, optionsSurface);}void showOptions(SDL_Surface *optionsSurface){	if ((engine.keyState[SDLK_LCTRL]) || (engine.keyState[SDLK_RCTRL]))	{		if (Collision::collision(engine.cursor_x + 13, engine.cursor_y + 13, 6, 6, 417, 172, 45, 22))			currentGame.useSound = 1;		if (Collision::collision(engine.cursor_x + 13, engine.cursor_y + 13, 6, 6, 478, 172, 45, 22))			currentGame.useSound = 0;		if (Collision::collision(engine.cursor_x + 13, engine.cursor_y + 13, 6, 6, 417, 222, 45, 22))		{			currentGame.useMusic = 1;			if (engine.useAudio)			{				if (Mix_PausedMusic() == 1)					Mix_ResumeMusic();				else					Mix_PlayMusic(engine.music, -1);			}		}		if (Collision::collision(engine.cursor_x + 13, engine.cursor_y + 13, 6, 6, 478, 222, 45, 22))		{			currentGame.useMusic = 0;			if (engine.useAudio)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
狠狠色丁香婷婷综合久久片| 一区二区三区四区在线播放 | 欧美性猛交xxxx乱大交退制版 | 91精品蜜臀在线一区尤物| 天天操天天干天天综合网| 91麻豆精品国产| 久久成人羞羞网站| 久久精品人人爽人人爽| 国产91丝袜在线播放0| 日本一区二区视频在线观看| 97精品久久久午夜一区二区三区| 亚洲免费在线播放| 欧美区一区二区三区| 日本91福利区| 国产精品丝袜在线| 在线视频你懂得一区二区三区| 亚洲一卡二卡三卡四卡无卡久久| 欧美美女视频在线观看| 精品综合久久久久久8888| 中文字幕乱码亚洲精品一区| 色婷婷av久久久久久久| 丝袜美腿亚洲综合| 国产欧美日韩精品在线| 91激情在线视频| 久久99精品久久久| 亚洲天堂av一区| 日韩午夜在线观看视频| 99久久精品费精品国产一区二区| 性做久久久久久免费观看 | 欧美国产日韩亚洲一区| 91猫先生在线| 精品一区二区成人精品| 亚洲视频免费在线| 欧美成人一级视频| 在线精品国精品国产尤物884a| 蜜桃精品在线观看| 亚洲男同1069视频| 26uuu亚洲综合色| 欧美体内she精高潮| 国产剧情av麻豆香蕉精品| 亚洲宅男天堂在线观看无病毒| 精品国产乱码久久久久久影片| 成人动漫在线一区| 久久精品国产精品青草| 亚洲一区日韩精品中文字幕| 久久久久久亚洲综合影院红桃 | 欧美日韩综合在线免费观看| 99国产精品久| 国产一区二区按摩在线观看| 亚洲一区视频在线| 综合电影一区二区三区| 欧美电影免费观看高清完整版| 色哟哟亚洲精品| 岛国精品在线观看| 精品一区二区三区av| 亚洲二区视频在线| 亚洲色图在线播放| 国产欧美一区二区在线观看| 日韩精品专区在线影院观看| 欧美午夜电影网| 91麻豆精品视频| 成人av在线资源网| 国产综合一区二区| 久久精品二区亚洲w码| 亚洲国产精品影院| 亚洲男女一区二区三区| 国产精品高潮久久久久无| www国产成人| 日韩精品最新网址| 欧美一级电影网站| 欧美一区二区三区四区视频| 欧美日韩中文字幕一区| 欧美中文字幕一区| 91久久精品一区二区| 色综合激情五月| 色婷婷国产精品综合在线观看| 成人自拍视频在线观看| 成人免费毛片aaaaa**| 福利一区在线观看| 不卡的av网站| 91麻豆蜜桃一区二区三区| 日本精品一级二级| 欧美色图12p| 欧美一区永久视频免费观看| 欧美高清精品3d| 欧美一级免费大片| 日韩欧美国产一区二区三区 | 欧美日韩www| 欧美一二三区在线观看| 日韩美一区二区三区| 精品久久五月天| 国产日产亚洲精品系列| 国产欧美中文在线| 亚洲日穴在线视频| 亚洲成人免费视频| 另类人妖一区二区av| 国产精品一区二区x88av| 国产98色在线|日韩| 成人激情校园春色| 日本道免费精品一区二区三区| 精品视频在线免费| 日韩欧美中文一区二区| 久久精品在线观看| 一区二区三区在线影院| 蜜臀精品久久久久久蜜臀| 国精产品一区一区三区mba桃花| 成人午夜电影小说| 欧美性猛交xxxx乱大交退制版| 欧美一区二区免费观在线| 无吗不卡中文字幕| 麻豆91在线播放| 成人h动漫精品| 精品视频一区 二区 三区| 精品国产乱码久久久久久浪潮 | 99re6这里只有精品视频在线观看| 在线国产电影不卡| 久久视频一区二区| 一区二区欧美在线观看| 久久机这里只有精品| 91色porny| 欧美一级片在线看| 中文字幕综合网| 麻豆免费看一区二区三区| 91污片在线观看| 亚洲精品在线电影| 亚洲永久精品大片| 国产剧情在线观看一区二区| 欧美色窝79yyyycom| 国产片一区二区| 蜜桃视频一区二区三区| 91蝌蚪porny| 国产日本一区二区| 全部av―极品视觉盛宴亚洲| 97精品国产97久久久久久久久久久久 | 成人激情综合网站| 欧美一区二区高清| 一区二区免费看| 国产成人av在线影院| 日韩欧美国产不卡| 亚洲成av人片观看| 色综合色狠狠天天综合色| 久久久久久久久蜜桃| 免费看欧美女人艹b| 91成人看片片| 亚洲欧美在线高清| 国产成人啪午夜精品网站男同| 91精品国产综合久久久久久久久久 | 成人美女视频在线看| 欧美大片日本大片免费观看| 亚洲国产毛片aaaaa无费看| aaa国产一区| 中文字幕不卡的av| 国产电影精品久久禁18| 欧美成人精品福利| 男人的天堂亚洲一区| 欧美精品久久一区| 香港成人在线视频| 欧美在线高清视频| 亚洲情趣在线观看| av电影在线观看一区| 国产精品美女久久久久av爽李琼 | 9191国产精品| 亚洲国产精品久久不卡毛片| 色94色欧美sute亚洲线路二| 《视频一区视频二区| 9i在线看片成人免费| 国产精品电影院| 99re66热这里只有精品3直播 | 91丨九色porny丨蝌蚪| 中文字幕在线一区二区三区| 成人开心网精品视频| 国产欧美一区二区精品忘忧草| 激情五月婷婷综合网| 精品黑人一区二区三区久久| 激情六月婷婷久久| 久久久久国产精品人| 国产精品白丝jk黑袜喷水| 久久久99免费| 成人毛片视频在线观看| 中文字幕中文字幕一区| 91一区在线观看| 一区二区三区精品在线观看| 欧美午夜精品理论片a级按摩| 亚洲午夜日本在线观看| 欧美日本在线看| 免费观看一级特黄欧美大片| 日韩情涩欧美日韩视频| 国产一区二区看久久| 欧美极品xxx| 色综合久久99| 日韩精品电影一区亚洲| 2欧美一区二区三区在线观看视频| 国产精品一区二区在线看| 国产精品区一区二区三| 91久久精品一区二区三区| 日韩国产在线观看一区| 2014亚洲片线观看视频免费| 成人国产精品免费| 亚洲国产日韩a在线播放| 欧美一区二区三区四区在线观看|