Logo
クラス | 静的公開メンバ関数 | 全メンバ一覧
Yukar.Common.Misc クラス

クラス

class  ExpInfo
 
class  MaxMin
 
struct  RectangleF
 
struct  Vector3Int
 

静的公開メンバ関数

static Rectangle RectangleIntersect (Rectangle src, Rectangle dst)
 
static Rectangle ClampRectangle (int tw, int th, Rectangle rect)
 
static Rectangle ClampRectangle (int tw, int th, int x, int y, int w, int h)
 
static bool ClampRectangle (int tw, int th, ref int x, ref int y, ref int w, ref int h)
 
static bool HasArea (Rectangle rect)
 
static int GetExpLevel (List< int > expList, int exp)
 経験値からレベルを求める(1 〜 expList.Count+1)。 expList が null または空の場合はレベル1を返す。 exp が最大累積経験値以上の場合は最大レベル(expList.Count+1)を返す。 [詳解]
 
static ExpInfo GetExpInfo (List< int > expList, int exp, int level)
 経験値テーブル・現在経験値・現在レベルから ExpInfo を生成するコアメソッド。 expList が null またはレベルが1未満の場合は null を返す。 [詳解]
 
static ExpInfo GetExpInfoByExp (List< int > expList, int exp)
 経験値テーブルと現在経験値から ExpInfo を生成する。 レベルは GetExpLevel で自動計算する。 [詳解]
 
static ExpInfo GetExpInfoByLevel (List< int > expList, int level)
 経験値テーブルとレベルから ExpInfo を生成する。 そのレベルの基準累積経験値を exp として GetExpInfo を呼び出す。 [詳解]
 
static ExpInfo GetExpInfo (Common.GameData.Hero hero)
 ヒーローの経験値テーブル・現在経験値・レベルから ExpInfo を生成するラッパー。 [詳解]
 
static ExpInfo GetExpInfo (Common.GameData.Hero hero, int level)
 
static ExpInfo GetExpInfo (Common.GameData.CastJob castJob)
 職業の経験値テーブル・現在経験値・レベルから ExpInfo を生成するラッパー。 [詳解]
 
static ExpInfo GetExpInfo (Common.GameData.CastJob castJob, int level)
 
static string GetFlavorText (Rom.FlavorTexts flavorTexts, int index)
 
static T Clamp< T > (T val, T min, T max)
 
static bool IsValidIndex< T > (IReadOnlyList< T > list, int index)
 
static float ClampAngle360 (float angle)
 
static float ClampAngle180 (float angle)
 
static string PtrToStringUtf8 (IntPtr ptr)
 
static bool IsSamePath (string path1, string path2)
 
static bool GetImageSizeDecoded (string path, out int width, out int height)
 
static bool GetImageSize (string path, out int width, out int height)
 

メソッド詳解

◆ Clamp< T >()

static T Yukar.Common.Misc.Clamp< T > ( val,
min,
max 
)
static
型制約
T :IComparable<T> 

◆ ClampAngle180()

static float Yukar.Common.Misc.ClampAngle180 ( float  angle)
static

◆ ClampAngle360()

static float Yukar.Common.Misc.ClampAngle360 ( float  angle)
static

◆ ClampRectangle() [1/3]

static Rectangle Yukar.Common.Misc.ClampRectangle ( int  tw,
int  th,
int  x,
int  y,
int  w,
int  h 
)
static

◆ ClampRectangle() [2/3]

static Rectangle Yukar.Common.Misc.ClampRectangle ( int  tw,
int  th,
Rectangle  rect 
)
static

◆ ClampRectangle() [3/3]

static bool Yukar.Common.Misc.ClampRectangle ( int  tw,
int  th,
ref int  x,
ref int  y,
ref int  w,
ref int  h 
)
static

◆ GetExpInfo() [1/5]

static ExpInfo Yukar.Common.Misc.GetExpInfo ( Common.GameData.CastJob  castJob)
static

職業の経験値テーブル・現在経験値・レベルから ExpInfo を生成するラッパー。

引数
castJob対象の職業。null の場合は null を返す。
戻り値
経験値情報。castJob または castJob.rom が null の場合は null。

◆ GetExpInfo() [2/5]

static ExpInfo Yukar.Common.Misc.GetExpInfo ( Common.GameData.CastJob  castJob,
int  level 
)
static

◆ GetExpInfo() [3/5]

static ExpInfo Yukar.Common.Misc.GetExpInfo ( Common.GameData.Hero  hero)
static

ヒーローの経験値テーブル・現在経験値・レベルから ExpInfo を生成するラッパー。

引数
hero対象のヒーロー。null の場合は null を返す。
戻り値
経験値情報。hero または hero.rom が null の場合は null。

◆ GetExpInfo() [4/5]

static ExpInfo Yukar.Common.Misc.GetExpInfo ( Common.GameData.Hero  hero,
int  level 
)
static

◆ GetExpInfo() [5/5]

static ExpInfo Yukar.Common.Misc.GetExpInfo ( List< int >  expList,
int  exp,
int  level 
)
static

経験値テーブル・現在経験値・現在レベルから ExpInfo を生成するコアメソッド。 expList が null またはレベルが1未満の場合は null を返す。

引数
expListレベルアップに必要な累積経験値のリスト。
exp現在の累積経験値。
level現在のレベル(1始まり)。
戻り値
経験値情報。expList が null またはレベルが1未満の場合は null。

◆ GetExpInfoByExp()

static ExpInfo Yukar.Common.Misc.GetExpInfoByExp ( List< int >  expList,
int  exp 
)
static

経験値テーブルと現在経験値から ExpInfo を生成する。 レベルは GetExpLevel で自動計算する。

引数
expListレベルアップに必要な累積経験値のリスト。
exp現在の累積経験値。
戻り値
経験値情報。expList が null の場合は null。

◆ GetExpInfoByLevel()

static ExpInfo Yukar.Common.Misc.GetExpInfoByLevel ( List< int >  expList,
int  level 
)
static

経験値テーブルとレベルから ExpInfo を生成する。 そのレベルの基準累積経験値を exp として GetExpInfo を呼び出す。

引数
expListレベルアップに必要な累積経験値のリスト。
level現在のレベル(1始まり)。
戻り値
経験値情報。expList が null の場合は null。

◆ GetExpLevel()

static int Yukar.Common.Misc.GetExpLevel ( List< int >  expList,
int  exp 
)
static

経験値からレベルを求める(1 〜 expList.Count+1)。 expList が null または空の場合はレベル1を返す。 exp が最大累積経験値以上の場合は最大レベル(expList.Count+1)を返す。

引数
expListレベルアップに必要な累積経験値のリスト。
exp現在の累積経験値。
戻り値
対応するレベル(1始まり)。

◆ GetFlavorText()

static string Yukar.Common.Misc.GetFlavorText ( Rom.FlavorTexts  flavorTexts,
int  index 
)
static

◆ GetImageSize()

static bool Yukar.Common.Misc.GetImageSize ( string  path,
out int  width,
out int  height 
)
static

◆ GetImageSizeDecoded()

static bool Yukar.Common.Misc.GetImageSizeDecoded ( string  path,
out int  width,
out int  height 
)
static

◆ HasArea()

static bool Yukar.Common.Misc.HasArea ( Rectangle  rect)
static

◆ IsSamePath()

static bool Yukar.Common.Misc.IsSamePath ( string  path1,
string  path2 
)
static

◆ IsValidIndex< T >()

static bool Yukar.Common.Misc.IsValidIndex< T > ( IReadOnlyList< T >  list,
int  index 
)
static

◆ PtrToStringUtf8()

static string Yukar.Common.Misc.PtrToStringUtf8 ( IntPtr  ptr)
static

◆ RectangleIntersect()

static Rectangle Yukar.Common.Misc.RectangleIntersect ( Rectangle  src,
Rectangle  dst 
)
static