資源簡介
1、新進入游戲馬上獲得系統隨機贈送的一個酷炫停車場。停車場有四個停車位。同時系統還贈送您一輛二手奧拓、外加1000金的生活補助費。
2、每個人最多只能擁有6輛車;
3、車市:等您有了錢,您可以到車市換一輛好車,或者買多輛車,這里有各種名牌車輛;越貴的車每分鐘的盈利能力越高!
4、把自己的車子停到好友家的車位,每分鐘根據車的盈利能力來賺錢。當您把車從車位挪走后,此筆收入才加入您的現金總額里。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Drawing;
using?System.Threading;
namespace?CarGame
{
????//汽車
????public?class?Car
????{
????????public?Car()?{?}
????????public?Car(int?carCost?int?carPayOff?String?carBrand?Image?carImageImage?carSignImage)
????????{
????????????this.CarCost?=?carCost;
????????????this.CarPayOff?=?carPayOff;
????????????this.CarBrand?=?carBrand;
????????????this.CarImage?=?carImage;
????????????this.CarSignImage?=?carSignImage;
????????????this.ParkingPayOff?=?0;
????????????this.CarState?=?“未停車“;
????????}
????????//汽車造價
????????private?int?carCost;
????????public?int?CarCost
????????{
????????????get?{?return?carCost;?}
????????????set?{?carCost?=?value;?}
????????}
????????//汽車盈利
????????private?int?carPayOff;
????????public?int?CarPayOff
????????{
????????????get?{?return?carPayOff;?}
????????????set?{?carPayOff?=?value;?}
????????}
????????//汽車品牌
????????private?String?carBrand;
????????public?String?CarBrand
????????{
????????????get?{?return?carBrand;?}
????????????set?{?carBrand?=?value;?}
????????}
????????//汽車圖片
????????private?Image?carImage;
????????public?Image?CarImage
????????{
????????????get?{?return?carImage;?}
????????????set?{?carImage?=?value;?}
????????}
????????//汽車標志圖片
????????private?Image?carSignImage;
????????public?Image?CarSignImage
????????{
????????????get?{?return?carSignImage;?}
????????????set?{?carSignImage?=?value;?}
????????}
????????//停車盈利
????????private?int?parkingPayOff;
????????public?int?ParkingPayOff
????????{
????????????get?{?return?parkingPayOff;?}
????????????set?{?parkingPayOff?=?value;?}
????????}
????????//計時器
????????private?Thread?thread;
????????public?Thread?Thread
????????{
????????????get?{?return?thread;?}
????????????set?{?thread?=?value;?}
????????}
????????//狀態
????????private?String?carState;
????????public?String?CarState
????????{
????????????get?{?return?carState;?}
????????????set?{?carState?=?value;?}
????????}
????????//停車
????????public?void?StartParking()
????????{
????????????this.ParkingPayOff?=?0;
????????????this.Thread?=?new?Thread(this.AddMoney);
????????????this.Thread.IsBackground?=?true;
????????????this.Thread.Start();
????????}
????????public?void?AddMoney()
????????{
????????????while?(true)
????????????{
????????????????Thread.Sleep(60000);
????????????????this.ParkingPayOff?+=?this.CarPayOff;
????????????????this.CarState?=?this.CarState.Substring(0?this.CarState.LastIndexOf(‘,‘)?+?1)?+?“\r\n預計收入“?+?this.ParkingPayOff?+?“金“;
????????????}
????????}
????????//取消停車
????????public?int?StopParking()
????????{
????????????this.Thread.Abort();
????????????return?this.ParkingPayOff;
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-05-12?20:06??搶車位\
?????目錄???????????0??2013-05-12?20:06??搶車位\CarGame\
?????目錄???????????0??2013-05-12?20:06??搶車位\CarGame\CarGame\
?????文件?????????911??2011-05-27?00:00??搶車位\CarGame\CarGame.sln
?????文件???????38400??2011-05-27?00:00??搶車位\CarGame\CarGame.suo
?????目錄???????????0??2013-05-12?20:06??搶車位\CarGame\CarGame\bin\
?????目錄???????????0??2013-05-12?20:06??搶車位\CarGame\CarGame\bin\Debug\
?????文件?????????737??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\btnBgImage.jpg
?????目錄???????????0??2013-05-12?20:06??搶車位\CarGame\CarGame\bin\Debug\Car\
?????文件?????????508??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car.txt
?????文件??????134144??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\CarGame.exe
?????文件??????105984??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\CarGame.pdb
?????文件???????14328??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\CarGame.vshost.exe
?????文件?????????490??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\CarGame.vshost.exe.manifest
?????文件??????106222??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\1.jpg
?????文件??????165235??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\2.jpg
?????文件??????123023??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\3.jpg
?????文件??????129339??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\4.jpg
?????文件???????46081??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\BENZ?SLR.png
?????文件???????55829??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\Ferrari?Enzo.png
?????文件???????44360??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\NISSAN?GTR.png
?????文件????????1893??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\NISSAN標志.png
?????文件???????43549??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\QQ.png
?????文件?????????937??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\QQ標志.png
?????文件????????1471??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\豐田標志.png
?????文件???????39271??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\樂馳.png
?????文件?????????919??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\樂馳標志.png
?????文件???????39531??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\蘭博基尼.png
?????文件????????1966??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\蘭博基尼標志.png
?????文件???????36169??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\別克凱越.png
?????文件????????2120??2011-05-27?00:00??搶車位\CarGame\CarGame\bin\Debug\Car\別克標志.png
............此處省略63個文件信息
- 上一篇:小波故障診斷
- 下一篇:中國科技統計年鑒2001-2005
評論
共有 條評論