C# Class SagaLib.Global

The global class contains objects that can be usefull throughout the entire application.
Afficher le fichier Open project: Willyham/SagaRO2

Méthodes publiques

Свойство Type Description
MAX_SIGHT_RANGE uint
Random RandomF
Unicode System.Text.UnicodeEncoding
clientMananger ClientManager

Méthodes publiques

Méthode Description
MakeHourDelay ( int hours ) : int

Convert hours into task delay time

MakeMilliDelay ( int milliseconds ) : int

Convert milliseconds into task delay time

MakeMinDelay ( int minutes ) : int

Convert minutes into task delay time

MakeSecDelay ( int seconds ) : int

Convert seconds into task delay time

MakeSightRange ( uint range ) : uint
SetStringLength ( string s, int length ) : string

Make sure the length of a string doesn't exceed a given maximum length.

Method Details

MakeHourDelay() public static méthode

Convert hours into task delay time
public static MakeHourDelay ( int hours ) : int
hours int
Résultat int

MakeMilliDelay() public static méthode

Convert milliseconds into task delay time
public static MakeMilliDelay ( int milliseconds ) : int
milliseconds int
Résultat int

MakeMinDelay() public static méthode

Convert minutes into task delay time
public static MakeMinDelay ( int minutes ) : int
minutes int
Résultat int

MakeSecDelay() public static méthode

Convert seconds into task delay time
public static MakeSecDelay ( int seconds ) : int
seconds int
Résultat int

MakeSightRange() public static méthode

public static MakeSightRange ( uint range ) : uint
range uint
Résultat uint

SetStringLength() public static méthode

Make sure the length of a string doesn't exceed a given maximum length.
public static SetStringLength ( string s, int length ) : string
s string String to process.
length int Maximum length for the string.
Résultat string

Property Details

MAX_SIGHT_RANGE public_oe static_oe property

public static uint MAX_SIGHT_RANGE
Résultat uint

Random public_oe static_oe property

A random number generator.
public static RandomF Random
Résultat RandomF

Unicode public_oe static_oe property

Unicode encoder to encode en decode from bytes to string and visa versa.
public static UnicodeEncoding,System.Text Unicode
Résultat System.Text.UnicodeEncoding

clientMananger public_oe static_oe property

The global clientmananger.
public static ClientManager,SagaLib clientMananger
Résultat ClientManager