本文整理汇总了C#中Pokemon.TotalSpeed方法的典型用法代码示例。如果您正苦于以下问题:C# Pokemon.TotalSpeed方法的具体用法?C# Pokemon.TotalSpeed怎么用?C# Pokemon.TotalSpeed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pokemon
的用法示例。
在下文中一共展示了Pokemon.TotalSpeed方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OpenStatWindow
//Creates a box for a Pokemon Overview. Currently shows a base stat overview for the current
//selected pokemon. Having trouble converting out move and item names for the overview.
//Currently has hard coded names for items/moves to test UI spacing.
public void OpenStatWindow(Pokemon pkmn)
{
if (dataWindow) {
GUI.DrawTexture (new Rect (Screen.width - 275, Screen.height - 250, 250, 250), GUImgr.gradRight);
/*foreach (var slot in Player.trainer.party.GetSlots ()) {
var pokemon = slot.pokemon;
if (party.IsActive (pokemon)) {*/
GUI.Label (new Rect (Screen.width - 270, Screen.height - 245, 200, 25), pkmn.GetName ());
GUI.Label (new Rect (Screen.width - 270, Screen.height - 215, 75, 25), "HP: " + pkmn.CurrentHP () + "/" + pkmn.TotalHP ());
GUI.Label (new Rect (Screen.width - 270, Screen.height - 185, 75, 25), "Atk: " + pkmn.TotalAttack ());
GUI.Label (new Rect (Screen.width - 270, Screen.height - 155, 75, 25), "Def: " + pkmn.TotalDefence ());
GUI.Label (new Rect (Screen.width - 270, Screen.height - 125, 75, 25), "Spd: " + pkmn.TotalSpeed ());
//As far as I can tell, held items aren't implemented, so I'm just hardcoding None.
GUI.Label (new Rect (Screen.width - 195, Screen.height - 215, 190, 25), "Item: None" /*+ pokemon.GetItemName()*/);
int height = 185;
int loop = 1;
foreach (Move mve in pkmn.moves) {
if (loop > 4)
break;
GUI.Label (new Rect (Screen.width - 195, Screen.height - height, 190, 25), "Move " + loop + ": " + mve.ToFriendlyString ());
loop++;
height -= 30;
}
}
//GUI.Label (new Rect (Screen.width - 195, Screen.height - 185, 190, 25), "Move 1: Hydro Cannon" /*+ pokemon.GetMoveName(0)*/);
//GUI.Label (new Rect (Screen.width - 195, Screen.height - 155, 190, 25), "Move 2: " /*+ pokemon.GetMoveName(0)*/);
//GUI.Label (new Rect (Screen.width - 195, Screen.height - 125, 190, 25), "Move 3: " /*+ pokemon.GetMoveName(0)*/);
//GUI.Label (new Rect (Screen.width - 195, Screen.height - 95, 190, 25), "Move 4: " /*+ pokemon.GetMoveName(0)*/);
}
示例2: OpenStatWindow
//Creates a box for a Pokemon Overview. Currently shows a base stat overview for the current
//selected pokemon. Having trouble converting out move and item names for the overview.
//Currently has hard coded names for items/moves to test UI spacing.
public void OpenStatWindow(Pokemon pkmn) {
if (dataWindow) {
GUI.DrawTexture (new Rect (Screen.width - 275, Screen.height - 250, 250, 250), GUImgr.gradRight);
GUI.Label (new Rect (Screen.width - 270, Screen.height - 245, 200, 25), pkmn.GetName ());
GUI.Label (new Rect (Screen.width - 270, Screen.height - 215, 75, 25), "HP: " + pkmn.CurrentHP () + "/" + pkmn.TotalHP ());
GUI.Label (new Rect (Screen.width - 270, Screen.height - 185, 75, 25), "Atk: " + pkmn.TotalAttack ());
GUI.Label (new Rect (Screen.width - 270, Screen.height - 155, 75, 25), "Def: " + pkmn.TotalDefence ());
GUI.Label (new Rect (Screen.width - 270, Screen.height - 125, 75, 25), "Spd: " + pkmn.TotalSpeed ());
//As far as I can tell, held items aren't implemented, so I'm just hardcoding None.
GUI.Label (new Rect (Screen.width - 195, Screen.height - 215, 190, 25), "Item: None" /*+ pokemon.GetItemName()*/);
int height = 185;
int loop = 1;
foreach (Move mve in pkmn.moves) {
if (loop > 4)
break;
GUI.Label (new Rect (Screen.width - 195, Screen.height - height, 190, 25), "Move " + loop + ": " + mve.ToFriendlyString ());
loop++;
height -= 30;
}
}
}