C# Class Engine.Objects.Segment

An obstruction segment.
Afficher le fichier Open project: Radnen/sphere-sfml

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
Save ( BinaryWriter binwrite ) : void

Stores this segment into a filestream.

Method Details

Draw() public méthode

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
Résultat void

Segment() public méthode

Creates an empty segment.
public Segment ( ) : System.IO
Résultat System.IO

Segment() public méthode

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

Segment() public méthode

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.
Résultat System.IO