C# 클래스 Source.Collisions.World

Holder for collisions. This will have most of the collision checking code Game1.cs should only be used to combine all the things together
파일 보기 프로젝트 열기: HarkerGameDev/TheGame 1 사용 예제들

공개 메소드들

메소드 설명
MakeParticles ( Vector2 pos, Microsoft.Xna.Framework.Graphics.Texture2D texture, int amount, int x, int y, Color color ) : void

Step ( float deltaTime ) : void
TestPoint ( Vector2 point ) : Polygon
World ( Game1 game ) : System

비공개 메소드들

메소드 설명
ApplyForce ( float scale, Polygon player, Vector2 position, float deltaTime ) : void
ApplyImpulse ( float scale, Player player, Vector2 position ) : void
CalculateProjectile ( Player player, float deltaTime, int projIndex ) : bool

Updates, moves, and collides all projectiles for a player

CheckObstacles ( Player player ) : void
CheckPlatforms ( Player player ) : void
randomVector ( int x, int y, Vector2 amplifier ) : Vector2

메소드 상세

MakeParticles() 공개 메소드

public MakeParticles ( Vector2 pos, Microsoft.Xna.Framework.Graphics.Texture2D texture, int amount, int x, int y, Color color ) : void
pos Vector2
texture Microsoft.Xna.Framework.Graphics.Texture2D
amount int
x int 0 is left and right, 1 is right, -1 is left
y int 0 is up and down, 1 is down, -1 is up
color Color
리턴 void

Step() 공개 메소드

public Step ( float deltaTime ) : void
deltaTime float
리턴 void

TestPoint() 공개 메소드

public TestPoint ( Vector2 point ) : Polygon
point Vector2
리턴 Polygon

World() 공개 메소드

public World ( Game1 game ) : System
game Game1
리턴 System