C# Class SagaLib.Global

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

Public Properties

Property Type Description
MAX_SIGHT_RANGE uint
Random RandomF
Unicode System.Text.UnicodeEncoding
clientMananger ClientManager

Public Methods

Method 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 method

Convert hours into task delay time
public static MakeHourDelay ( int hours ) : int
hours int
return int

MakeMilliDelay() public static method

Convert milliseconds into task delay time
public static MakeMilliDelay ( int milliseconds ) : int
milliseconds int
return int

MakeMinDelay() public static method

Convert minutes into task delay time
public static MakeMinDelay ( int minutes ) : int
minutes int
return int

MakeSecDelay() public static method

Convert seconds into task delay time
public static MakeSecDelay ( int seconds ) : int
seconds int
return int

MakeSightRange() public static method

public static MakeSightRange ( uint range ) : uint
range uint
return uint

SetStringLength() public static method

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.
return string

Property Details

MAX_SIGHT_RANGE public_oe static_oe property

public static uint MAX_SIGHT_RANGE
return uint

Random public_oe static_oe property

A random number generator.
public static RandomF Random
return 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
return System.Text.UnicodeEncoding

clientMananger public_oe static_oe property

The global clientmananger.
public static ClientManager,SagaLib clientMananger
return ClientManager