Logo
公開型 | 公開メンバ関数 | 静的公開変数類 | 限定公開メンバ関数 | 限定公開変数類 | 静的限定公開変数類 | 全メンバ一覧
Yukar.Engine.TouchCollider クラスabstract

タッチ用の当たり判定 [詳解]

Yukar.Engine.TouchCollider の継承関係図
Yukar.Engine.TouchRectCollider

公開型

enum  EdgePosition {
  None = -1 , Left , Right , Top ,
  Bottom , LeftTop , LeftBottom , RightTop ,
  RightBottom
}
 

公開メンバ関数

abstract int IsTouching (SharpKmyMath.Vector2 touchPos)
 
abstract int IsTouchingCenter (SharpKmyMath.Vector2 touchPos, float centerLength)
 
abstract System.Tuple< int, EdgePositionIsTouchingEdge (SharpKmyMath.Vector2 touchPos, float edgeLength)
 
abstract bool IsOutOfRange (SharpKmyMath.Vector2 touchPos)
 
abstract int CollideRectangele (SharpKmyMath.Rectangle rectangle)
 
abstract bool IsOutOfRange (SharpKmyMath.Rectangle rectangle)
 
abstract int CoverRectangle (SharpKmyMath.Rectangle rectangle)
 
abstract void Draw (Microsoft.Xna.Framework.Color color)
 

静的公開変数類

const int RESULT_OUT_OF_RANGE = -2
 

限定公開メンバ関数

 TouchCollider ()
 
 TouchCollider (int result)
 

限定公開変数類

int result = -1
 

静的限定公開変数類

static readonly int Alpha = 100
 
static readonly float FloatAlpha = Alpha / 255.0f
 

詳解

タッチ用の当たり判定

列挙型メンバ詳解

◆ EdgePosition

列挙値
None 
Left 
Right 
Top 
Bottom 
LeftTop 
LeftBottom 
RightTop 
RightBottom 

構築子と解体子

◆ TouchCollider() [1/2]

Yukar.Engine.TouchCollider.TouchCollider ( )
protected

◆ TouchCollider() [2/2]

Yukar.Engine.TouchCollider.TouchCollider ( int  result)
protected

メソッド詳解

◆ CollideRectangele()

abstract int Yukar.Engine.TouchCollider.CollideRectangele ( SharpKmyMath.Rectangle  rectangle)
pure virtual

Yukar.Engine.TouchRectColliderで実装されています。

◆ CoverRectangle()

abstract int Yukar.Engine.TouchCollider.CoverRectangle ( SharpKmyMath.Rectangle  rectangle)
pure virtual

Yukar.Engine.TouchRectColliderで実装されています。

◆ Draw()

abstract void Yukar.Engine.TouchCollider.Draw ( Microsoft.Xna.Framework.Color  color)
pure virtual

Yukar.Engine.TouchRectColliderで実装されています。

◆ IsOutOfRange() [1/2]

abstract bool Yukar.Engine.TouchCollider.IsOutOfRange ( SharpKmyMath.Rectangle  rectangle)
pure virtual

Yukar.Engine.TouchRectColliderで実装されています。

◆ IsOutOfRange() [2/2]

abstract bool Yukar.Engine.TouchCollider.IsOutOfRange ( SharpKmyMath.Vector2  touchPos)
pure virtual

Yukar.Engine.TouchRectColliderで実装されています。

◆ IsTouching()

abstract int Yukar.Engine.TouchCollider.IsTouching ( SharpKmyMath.Vector2  touchPos)
pure virtual

Yukar.Engine.TouchRectColliderで実装されています。

◆ IsTouchingCenter()

abstract int Yukar.Engine.TouchCollider.IsTouchingCenter ( SharpKmyMath.Vector2  touchPos,
float  centerLength 
)
pure virtual

Yukar.Engine.TouchRectColliderで実装されています。

◆ IsTouchingEdge()

abstract System.Tuple< int, EdgePosition > Yukar.Engine.TouchCollider.IsTouchingEdge ( SharpKmyMath.Vector2  touchPos,
float  edgeLength 
)
pure virtual

Yukar.Engine.TouchRectColliderで実装されています。

メンバ詳解

◆ Alpha

readonly int Yukar.Engine.TouchCollider.Alpha = 100
staticprotected

◆ FloatAlpha

readonly float Yukar.Engine.TouchCollider.FloatAlpha = Alpha / 255.0f
staticprotected

◆ result

int Yukar.Engine.TouchCollider.result = -1
protected

◆ RESULT_OUT_OF_RANGE

const int Yukar.Engine.TouchCollider.RESULT_OUT_OF_RANGE = -2
static