C# 클래스 MoodSwingCoreComponents.MS2DCollidable

MS2DCollidable is an MS2DComponent that has a Shape that can be used for switch-casing collision detection.
상속: MS2DComponent
파일 보기 프로젝트 열기: verngutz/MoodSwing 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
collisionTexture Texture2D
shape Shape

공개 메소드들

메소드 설명
CollidesWith ( MS2DCollidable other ) : bool

Check if this MS2DCollidable collides with another MS2DCollidable.

EnclosesPoint ( Point p ) : bool

Check whether Point p is within the bounds of this MS2DCollidable

MS2DCollidable ( Rectangle boundingRectangle, Shape shape, SpriteBatch spriteBatch, Game game ) : System
MS2DCollidable ( Vector2 position, Vector2 size, Shape shape, SpriteBatch spriteBatch, Game game ) : System

메소드 상세

CollidesWith() 공개 메소드

Check if this MS2DCollidable collides with another MS2DCollidable.
public CollidesWith ( MS2DCollidable other ) : bool
other MS2DCollidable the other MS2DCollidable
리턴 bool

EnclosesPoint() 공개 메소드

Check whether Point p is within the bounds of this MS2DCollidable
public EnclosesPoint ( Point p ) : bool
p Point the Point to check
리턴 bool

MS2DCollidable() 공개 메소드

public MS2DCollidable ( Rectangle boundingRectangle, Shape shape, SpriteBatch spriteBatch, Game game ) : System
boundingRectangle Rectangle
shape Shape
spriteBatch SpriteBatch
game Game
리턴 System

MS2DCollidable() 공개 메소드

public MS2DCollidable ( Vector2 position, Vector2 size, Shape shape, SpriteBatch spriteBatch, Game game ) : System
position Vector2
size Vector2
shape Shape
spriteBatch SpriteBatch
game Game
리턴 System

프로퍼티 상세

collisionTexture 보호되어 있는 프로퍼티

protected Texture2D collisionTexture
리턴 Texture2D

shape 보호되어 있는 프로퍼티

protected Shape shape
리턴 Shape