C# Class GameStruct.DIR

Show file Open project: dream-young-soul/soul

Public Properties

Property Type Description
_DELTA_X short[]
_DELTA_Y short[]

Public Methods

Method Description
GetAgainstDir ( byte dir ) : byte
GetDirByPos ( short nFromX, short nFromY, short nToX, short nToY ) : byte
GetNexPoint ( MapServer obj, short &x, short &y ) : bool
GetNextDir ( short srcx, short srcy, short destx, short desty ) : byte
Random_Dir ( ) : byte
Random_Walk ( MapServer obj, byte &dir, short &x, short &y ) : bool

Method Details

GetAgainstDir() public static method

public static GetAgainstDir ( byte dir ) : byte
dir byte
return byte

GetDirByPos() public static method

public static GetDirByPos ( short nFromX, short nFromY, short nToX, short nToY ) : byte
nFromX short
nFromY short
nToX short
nToY short
return byte

GetNexPoint() public static method

public static GetNexPoint ( MapServer obj, short &x, short &y ) : bool
obj MapServer
x short
y short
return bool

GetNextDir() public static method

public static GetNextDir ( short srcx, short srcy, short destx, short desty ) : byte
srcx short
srcy short
destx short
desty short
return byte

Random_Dir() public static method

public static Random_Dir ( ) : byte
return byte

Random_Walk() public static method

public static Random_Walk ( MapServer obj, byte &dir, short &x, short &y ) : bool
obj MapServer
dir byte
x short
y short
return bool

Property Details

_DELTA_X public static property

public static short[] _DELTA_X
return short[]

_DELTA_Y public static property

public static short[] _DELTA_Y
return short[]