Logo
Public Member Functions | Properties | List of all members
Yukar.Engine.TouchRectCollider Class Reference

Check if we are touching inside a rectangle More...

Inheritance diagram for Yukar.Engine.TouchRectCollider:
Yukar.Engine.TouchCollider

Public Member Functions

 TouchRectCollider (SharpKmyMath.Vector2 position, SharpKmyMath.Vector2 length)
 
 TouchRectCollider (Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Vector2 length)
 
 TouchRectCollider (SharpKmyMath.Vector2 position, SharpKmyMath.Vector2 length, int result)
 
 TouchRectCollider (Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Vector2 length, int result)
 
override int IsTouching (SharpKmyMath.Vector2 touchPos)
 
override int IsTouchingCenter (SharpKmyMath.Vector2 touchPos, float centerLength)
 
override System.Tuple< int, EdgePositionIsTouchingEdge (SharpKmyMath.Vector2 touchPos, float edgeLength)
 
override bool IsOutOfRange (SharpKmyMath.Vector2 touchPos)
 
override int CollideRectangele (SharpKmyMath.Rectangle rectangle)
 
override bool IsOutOfRange (SharpKmyMath.Rectangle rectangle)
 
override int CoverRectangle (SharpKmyMath.Rectangle rectangle)
 
override void Draw (Microsoft.Xna.Framework.Color color)
 
void SetPositinAndLength (SharpKmyMath.Vector2 position, SharpKmyMath.Vector2 length)
 
void SetPositinAndLength (Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Vector2 length)
 
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)
 

Properties

SharpKmyMath.Vector2 Position [get, set]
 
SharpKmyMath.Vector2 Length [get, set]
 
Microsoft.Xna.Framework.Rectangle Rectangle [get, set]
 

Additional Inherited Members

- Public Types inherited from Yukar.Engine.TouchCollider
enum  EdgePosition {
  None = -1 , Left , Right , Top ,
  Bottom , LeftTop , LeftBottom , RightTop ,
  RightBottom
}
 
- Static Public Attributes inherited from Yukar.Engine.TouchCollider
const int RESULT_OUT_OF_RANGE = -2
 
- Protected Member Functions inherited from Yukar.Engine.TouchCollider
 TouchCollider ()
 
 TouchCollider (int result)
 
- Protected Attributes inherited from Yukar.Engine.TouchCollider
int result = -1
 
- Static Protected Attributes inherited from Yukar.Engine.TouchCollider
static readonly int Alpha = 100
 
static readonly float FloatAlpha = Alpha / 255.0f
 

Detailed Description

Check if we are touching inside a rectangle

Constructor & Destructor Documentation

◆ TouchRectCollider() [1/4]

Yukar.Engine.TouchRectCollider.TouchRectCollider ( SharpKmyMath.Vector2  position,
SharpKmyMath.Vector2  length 
)

◆ TouchRectCollider() [2/4]

Yukar.Engine.TouchRectCollider.TouchRectCollider ( Microsoft.Xna.Framework.Vector2  position,
Microsoft.Xna.Framework.Vector2  length 
)

◆ TouchRectCollider() [3/4]

Yukar.Engine.TouchRectCollider.TouchRectCollider ( SharpKmyMath.Vector2  position,
SharpKmyMath.Vector2  length,
int  result 
)

◆ TouchRectCollider() [4/4]

Yukar.Engine.TouchRectCollider.TouchRectCollider ( Microsoft.Xna.Framework.Vector2  position,
Microsoft.Xna.Framework.Vector2  length,
int  result 
)

Member Function Documentation

◆ CollideRectangele()

override int Yukar.Engine.TouchRectCollider.CollideRectangele ( SharpKmyMath.Rectangle  rectangle)
virtual

◆ CoverRectangle()

override int Yukar.Engine.TouchRectCollider.CoverRectangle ( SharpKmyMath.Rectangle  rectangle)
virtual

◆ Draw()

override void Yukar.Engine.TouchRectCollider.Draw ( Microsoft.Xna.Framework.Color  color)
virtual

◆ IsOutOfRange() [1/2]

override bool Yukar.Engine.TouchRectCollider.IsOutOfRange ( SharpKmyMath.Rectangle  rectangle)
virtual

◆ IsOutOfRange() [2/2]

override bool Yukar.Engine.TouchRectCollider.IsOutOfRange ( SharpKmyMath.Vector2  touchPos)
virtual

◆ IsTouching()

override int Yukar.Engine.TouchRectCollider.IsTouching ( SharpKmyMath.Vector2  touchPos)
virtual

◆ IsTouchingCenter()

override int Yukar.Engine.TouchRectCollider.IsTouchingCenter ( SharpKmyMath.Vector2  touchPos,
float  centerLength 
)
virtual

◆ IsTouchingEdge()

override System.Tuple< int, EdgePosition > Yukar.Engine.TouchRectCollider.IsTouchingEdge ( SharpKmyMath.Vector2  touchPos,
float  edgeLength 
)
virtual

◆ SetPositinAndLength() [1/2]

void Yukar.Engine.TouchRectCollider.SetPositinAndLength ( Microsoft.Xna.Framework.Vector2  position,
Microsoft.Xna.Framework.Vector2  length 
)

◆ SetPositinAndLength() [2/2]

void Yukar.Engine.TouchRectCollider.SetPositinAndLength ( SharpKmyMath.Vector2  position,
SharpKmyMath.Vector2  length 
)

Property Documentation

◆ Length

SharpKmyMath.Vector2 Yukar.Engine.TouchRectCollider.Length
getset

◆ Position

SharpKmyMath.Vector2 Yukar.Engine.TouchRectCollider.Position
getset

◆ Rectangle

Microsoft.Xna.Framework.Rectangle Yukar.Engine.TouchRectCollider.Rectangle
getset