C# 클래스 MapEditor.Helpers.Util

파일 보기 프로젝트 열기: Wotuu/RTS_XNA_v2

공개 메소드들

메소드 설명
GetCustomTexture2D ( SpriteBatch batch, Color color ) : Microsoft.Xna.Framework.Graphics.Texture2D

GetHypoteneuseAngleDegrees ( Point p1, Point p2 ) : float

Gets the angle of the hypoteneuse with the X-axis between two points.

GetHypoteneuseAngleRad ( Point p1, Point p2 ) : float

Gets the angle of the hypoteneuse with the X-axis between two points.

GetHypoteneuseLength ( Point p1, Point p2 ) : double

Gets the length of the hypoteneuse between two points.

GetPointOnCircle ( Point location, double radius, double angle ) : Point

Gets a point at the edge of a circle at a location, with given radius, with the given angle.

GetQuadDepth ( int width ) : int
LoadNodes ( String filename, GraphicsDevice graphicsdevice ) : void

Loads collisionnodes from a file

LoadPlayers ( String filename ) : void

메소드 상세

GetCustomTexture2D() 공개 정적인 메소드

public static GetCustomTexture2D ( SpriteBatch batch, Color color ) : Microsoft.Xna.Framework.Graphics.Texture2D
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
color Color
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

GetHypoteneuseAngleDegrees() 공개 정적인 메소드

Gets the angle of the hypoteneuse with the X-axis between two points.
public static GetHypoteneuseAngleDegrees ( Point p1, Point p2 ) : float
p1 Point Point one
p2 Point Point two
리턴 float

GetHypoteneuseAngleRad() 공개 정적인 메소드

Gets the angle of the hypoteneuse with the X-axis between two points.
public static GetHypoteneuseAngleRad ( Point p1, Point p2 ) : float
p1 Point Point one
p2 Point Point two
리턴 float

GetHypoteneuseLength() 공개 정적인 메소드

Gets the length of the hypoteneuse between two points.
public static GetHypoteneuseLength ( Point p1, Point p2 ) : double
p1 Point Point 1
p2 Point Point 2
리턴 double

GetPointOnCircle() 공개 정적인 메소드

Gets a point at the edge of a circle at a location, with given radius, with the given angle.
public static GetPointOnCircle ( Point location, double radius, double angle ) : Point
location Point The location of the circle
radius double The radius of the circle
angle double The angle
리턴 Point

GetQuadDepth() 공개 정적인 메소드

public static GetQuadDepth ( int width ) : int
width int
리턴 int

LoadNodes() 공개 정적인 메소드

Loads collisionnodes from a file
public static LoadNodes ( String filename, GraphicsDevice graphicsdevice ) : void
filename String
graphicsdevice GraphicsDevice Graphics Device
리턴 void

LoadPlayers() 공개 정적인 메소드

public static LoadPlayers ( String filename ) : void
filename String
리턴 void