C# Class Dandy.World

Show file Open project: jackpal/Dandy-Dungeon Class Usage Examples

Public Properties

Property Type Description
level byte
map Map
numPlayers uint
player Dandy.Player[]
time System.DateTime

Public Methods

Method Description
ChangeLevel ( int delta ) : void
DoArrowMove ( Player p, bool isFirstMove ) : void
DoMonsters ( ) : void
DoSmartBomb ( ) : void
EatFood ( uint index ) : void
Fire ( uint index ) : void
GetCOG ( float &x, float &y ) : void
GetDirectionOfNearestPlayer ( uint x, uint y ) : Direction
Init ( ) : void
IsGameOver ( ) : bool
IsPartyInWarp ( ) : bool
LoadLevel ( uint index ) : void
Move ( uint stick, Direction dir ) : void
MoveCoords ( byte &x, byte &y, Direction direction ) : void
PlaceInWorld ( uint index, uint x, uint y ) : void
SetPlayerPositions ( ) : void
Update ( ) : void
UseSmartBomb ( uint index ) : void
World ( ) : System
getRandom ( uint range ) : uint

Method Details

ChangeLevel() public method

public ChangeLevel ( int delta ) : void
delta int
return void

DoArrowMove() public method

public DoArrowMove ( Player p, bool isFirstMove ) : void
p Player
isFirstMove bool
return void

DoMonsters() public method

public DoMonsters ( ) : void
return void

DoSmartBomb() public method

public DoSmartBomb ( ) : void
return void

EatFood() public method

public EatFood ( uint index ) : void
index uint
return void

Fire() public method

public Fire ( uint index ) : void
index uint
return void

GetCOG() public method

public GetCOG ( float &x, float &y ) : void
x float
y float
return void

GetDirectionOfNearestPlayer() public method

public GetDirectionOfNearestPlayer ( uint x, uint y ) : Direction
x uint
y uint
return Direction

Init() public method

public Init ( ) : void
return void

IsGameOver() public method

public IsGameOver ( ) : bool
return bool

IsPartyInWarp() public method

public IsPartyInWarp ( ) : bool
return bool

LoadLevel() public method

public LoadLevel ( uint index ) : void
index uint
return void

Move() public method

public Move ( uint stick, Direction dir ) : void
stick uint
dir Direction
return void

MoveCoords() public static method

public static MoveCoords ( byte &x, byte &y, Direction direction ) : void
x byte
y byte
direction Direction
return void

PlaceInWorld() public method

public PlaceInWorld ( uint index, uint x, uint y ) : void
index uint
x uint
y uint
return void

SetPlayerPositions() public method

public SetPlayerPositions ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UseSmartBomb() public method

public UseSmartBomb ( uint index ) : void
index uint
return void

World() public method

public World ( ) : System
return System

getRandom() public method

public getRandom ( uint range ) : uint
range uint
return uint

Property Details

level public property

public byte level
return byte

map public property

public Map,Dandy map
return Map

numPlayers public property

public uint numPlayers
return uint

player public property

public Player[],Dandy player
return Dandy.Player[]

time public property

public DateTime,System time
return System.DateTime