C# 클래스 Engine.Objects.Segment

An obstruction segment.
파일 보기 프로젝트 열기: Radnen/sphere-sfml

공개 메소드들

메소드 설명
Draw ( Vector2f &offset, ColorInstance color ) : void

Draws this obstruction segement to the System.Drawings.Graphics.

Segment ( ) : System.IO

Creates an empty segment.

Segment ( BinaryReader stream ) : System.IO

Creates and loads a segment from a filestream.

Segment ( int x1, int y1, int x2, int y2 ) : System.IO

Creates a segment with supplied values.

비공개 메소드들

메소드 설명
Save ( BinaryWriter binwrite ) : void

Stores this segment into a filestream.

메소드 상세

Draw() 공개 메소드

Draws this obstruction segement to the System.Drawings.Graphics.
public Draw ( Vector2f &offset, ColorInstance color ) : void
offset Vector2f The x/y offset to use.
color ColorInstance
리턴 void

Segment() 공개 메소드

Creates an empty segment.
public Segment ( ) : System.IO
리턴 System.IO

Segment() 공개 메소드

Creates and loads a segment from a filestream.
public Segment ( BinaryReader stream ) : System.IO
stream System.IO.BinaryReader The System.IO.BinaryReader to use.
리턴 System.IO

Segment() 공개 메소드

Creates a segment with supplied values.
public Segment ( int x1, int y1, int x2, int y2 ) : System.IO
x1 int The upper left x.
y1 int The upper left y.
x2 int The lower right x.
y2 int The lower right y.
리턴 System.IO