- UID
- 28923
- 热情
- 249
- 人气
- 771
- 主题
- 35
- 帖子
- 785
- 精华
- 0
- 积分
- 931
- 分享
- 0
- 记录
- 0
- 相册
- 0
- 好友
- 1
- 日志
- 0
- 在线时间
- 1127 小时
- 注册时间
- 2003-10-8
- 阅读权限
- 20
- 最后登录
- 2021-7-5
升级 86.2% - UID
- 28923
- 热情
- 249
- 人气
- 771
- 主题
- 35
- 帖子
- 785
- 精华
- 0
- 积分
- 931
- 阅读权限
- 20
- 注册时间
- 2003-10-8
|
我来个 c#.net的
private bool IsTrueLove(Boy thisBoy, Girl thisGirl){
if ( thisBoy.HasHouse() && thisBoy.HasCar()){
return thisGirl.MarryTo(thisBoy);
} else if ( thisGirl.IsWillingToWait() ){
while( ! (thisBoy.AnnualIncome() > 100000 && thisGirl.Susceptibility> 8){
for (int day = 1; day <= 365; day++){
if ( day == Holiday.Valentine.DayOfYear ){
if ( thisBoy.GiveGirl(rose))
thisGirl.Susceptibility++;
else
thisGirl.Susceptibility--;
}
if( day == thisGirl.Birthday.DayOfYear ){
if ( thisBoy.givegirl(rose) )
thisGirl.Susceptibility++;
else
girl.Susceptibility--;
}
thisBoy.MakeMoney();
if( thisGirl.Susceptibility == 0 & thisGirl.AnotherOption()) {
thisGirl.GotoAnotherBoy();
thisBoy.Dismay = true;
thisBoy.FlushingThread(@"bbs.skykiwi.co.nz");
return false;
}
}
}
try{
thisGirl.RequireHouse(thisBoy);
thisGirl.RequireCar(thisBoy);
thisGirl.GoShopping() = thisBoy.CanAfford();
if ( thisBoy.PossessHouse() && thisBoy.PossessCare()){
thisGirl.GoVacation(Austrilia, thisBoy);
thisGirl.MarryTo(NewZealand.FrogVillage, thisBoy);
thisBoy.RelentlesslyMakingMoney();
}
}
catch{
thisGirl.ByeBye(thisBoy);
thisBoy.Dismay = true;
thisBoy.FlushingThread(@"bbs.skykiwi.co.nz");
thisGirl.Broadcast(thisBoy.Name + " is a cheapskate and no worth dating.");
return false;
}
return true;
}
} |
|