抹布
精华
|
战斗力 鹅
|
回帖 0
注册时间 2006-12-11
|
本帖最后由 zero_free 于 2015-4-11 01:54 编辑
程序员的标准是这样的。
using 火焰之神;
using 灵魂祈愿;
public class FireBall {
public void CastFireBall(int type){
if(type == 35){
var ball = GetFireBall35();
ball.Execute();
} else {
//省略其他代码。
}
}
//太阳咒文其三十五,赤红光针
private 火球 GetFireBall35(){
var temp = new 火焰之神.火球();
temp.基本特性.Add(火焰之神.get特性(炽光));
temp.基本特性.Add(火焰之神.get特性(烈阳));
var 冲击 = 灵魂祈愿.冲击;
冲击.SetColor(真红);
temp.灵魂特性.Add(冲击);
var 奔走 = 灵魂祈愿.奔走;
奔走.SetShockType(灵魂祈愿.奔走.ShockTypeEnum.灼焱);
temp.灵魂特性.Add(奔走);
temp.Set旋转速度(78.6f);
temp.Set阵营(善良);
temp.SetPosition(晨曦.GetPosition());
temp.Set光照强度(new Color(255,255,255, 180));
return temp;
}
}
此魔法师的信仰主神是C#。高位源神是microsoft。
|
|