C# Class DodongosQuest.World

Show file Open project: faintpixel/Roguelike Class Usage Examples

Public Properties

Property Type Description
Player DodongosQuest.Creatures.Player.PlayerCharacter
_level int

Public Methods

Method Description
AddSpecialEffectToWorld ( ISpecialEffect specialEffect ) : void
CanPlayerSeeWorldIndex ( Vector2 worldIndex ) : bool
CenterCameraOnPlayer ( ) : void
CloseDoorAtPositionSuccessful ( Vector2 doorWorldIndex, Vector2 playerWorldIndex ) : bool
ConvertScreenPositionToTileIndex ( float x, float y ) : Vector2
ConvertTileIndexToWorldPosition ( float x, float y ) : Vector2
ConvertWorldPositionToTileIndex ( float x, float y ) : Vector2
DiscoverTerrainAroundPlayer ( ) : void
Draw ( GameTime gameTime ) : void
Flame_Out ( Fire sender ) : void
GetContainerAtIndex ( Vector2 index ) : IContainer
GetCreatureAtIndex ( Vector2 index ) : ICreature
GetCreaturesWithinVisibleDistanceOfPlayer ( int range ) : List
GetDoorAtIndex ( Vector2 index ) : Door
GetStraightLineDistance ( Vector2 point1, Vector2 point2 ) : int
GetSurroundingWorldIndexPositions ( Vector2 worldIndex ) : List
GetWorldIndexOneSpaceAway ( Direction direction, Vector2 startingIndex ) : Vector2
GetWorldIndexPointsAlongLine ( Vector2 point1, Vector2 point2 ) : List
GetWorldSize ( ) : Vector2
HandleCreatureDeath ( ICreature sender ) : void
HandleFlameAttack ( ICreature sender ) : void
IsWorldIndexFreeOfObstacles ( Vector2 index ) : bool
MoveCreatureInDirectionSuccessful ( Direction direction, ICreature creature ) : bool
MovePlayerInDirectionSuccessful ( Direction direction ) : bool
PlayerCanSeeWorldIndex ( Vector2 worldIndex ) : bool
PlayerHasExploredWorldIndex ( Vector2 worldIndex ) : bool
TakeTurn ( ) : void
Update ( GameTime gameTime ) : void
World ( ) : System
World_DoneWithQuest ( IQuest sender ) : void
manEatingPlant_Death ( ICreature sender ) : void

Private Methods

Method Description
DiscoverTerrain ( Vector2 worldIndex ) : void
DiscoverTerrainAndSetVisible ( Vector2 worldIndex ) : void
IsIndexWithinBoundsOfWorld ( Vector2 index ) : bool
MovingToSpaceCausesAttack ( Vector2 movePosition, ICreature creature ) : bool
MovingToSpaceIsSuccessful ( Vector2 movePosition, ICreature creature ) : bool
MovingToSpaceOpensContainer ( Vector2 movePosition, ICreature creature ) : bool
MovingToSpaceOpensDoor ( Vector2 movePosition, ICreature creature ) : bool
SpecialEffectDone ( ISpecialEffect sender ) : void
TEST_addStuffToWorld ( ) : void

Method Details

AddSpecialEffectToWorld() public method

public AddSpecialEffectToWorld ( ISpecialEffect specialEffect ) : void
specialEffect ISpecialEffect
return void

CanPlayerSeeWorldIndex() public method

public CanPlayerSeeWorldIndex ( Vector2 worldIndex ) : bool
worldIndex Vector2
return bool

CenterCameraOnPlayer() public method

public CenterCameraOnPlayer ( ) : void
return void

CloseDoorAtPositionSuccessful() public method

public CloseDoorAtPositionSuccessful ( Vector2 doorWorldIndex, Vector2 playerWorldIndex ) : bool
doorWorldIndex Vector2
playerWorldIndex Vector2
return bool

ConvertScreenPositionToTileIndex() public method

public ConvertScreenPositionToTileIndex ( float x, float y ) : Vector2
x float
y float
return Vector2

ConvertTileIndexToWorldPosition() public method

public ConvertTileIndexToWorldPosition ( float x, float y ) : Vector2
x float
y float
return Vector2

ConvertWorldPositionToTileIndex() public method

public ConvertWorldPositionToTileIndex ( float x, float y ) : Vector2
x float
y float
return Vector2

DiscoverTerrainAroundPlayer() public method

public DiscoverTerrainAroundPlayer ( ) : void
return void

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Flame_Out() public method

public Flame_Out ( Fire sender ) : void
sender DodongosQuest.Creatures.Fire
return void

GetContainerAtIndex() public method

public GetContainerAtIndex ( Vector2 index ) : IContainer
index Vector2
return IContainer

GetCreatureAtIndex() public method

public GetCreatureAtIndex ( Vector2 index ) : ICreature
index Vector2
return ICreature

GetCreaturesWithinVisibleDistanceOfPlayer() public method

public GetCreaturesWithinVisibleDistanceOfPlayer ( int range ) : List
range int
return List

GetDoorAtIndex() public method

public GetDoorAtIndex ( Vector2 index ) : Door
index Vector2
return Door

GetStraightLineDistance() public method

public GetStraightLineDistance ( Vector2 point1, Vector2 point2 ) : int
point1 Vector2
point2 Vector2
return int

GetSurroundingWorldIndexPositions() public method

public GetSurroundingWorldIndexPositions ( Vector2 worldIndex ) : List
worldIndex Vector2
return List

GetWorldIndexOneSpaceAway() public method

public GetWorldIndexOneSpaceAway ( Direction direction, Vector2 startingIndex ) : Vector2
direction Direction
startingIndex Vector2
return Vector2

GetWorldIndexPointsAlongLine() public method

public GetWorldIndexPointsAlongLine ( Vector2 point1, Vector2 point2 ) : List
point1 Vector2
point2 Vector2
return List

GetWorldSize() public method

public GetWorldSize ( ) : Vector2
return Vector2

HandleCreatureDeath() public method

public HandleCreatureDeath ( ICreature sender ) : void
sender ICreature
return void

HandleFlameAttack() public method

public HandleFlameAttack ( ICreature sender ) : void
sender ICreature
return void

IsWorldIndexFreeOfObstacles() public method

public IsWorldIndexFreeOfObstacles ( Vector2 index ) : bool
index Vector2
return bool

MoveCreatureInDirectionSuccessful() public method

public MoveCreatureInDirectionSuccessful ( Direction direction, ICreature creature ) : bool
direction Direction
creature ICreature
return bool

MovePlayerInDirectionSuccessful() public method

public MovePlayerInDirectionSuccessful ( Direction direction ) : bool
direction Direction
return bool

PlayerCanSeeWorldIndex() public method

public PlayerCanSeeWorldIndex ( Vector2 worldIndex ) : bool
worldIndex Vector2
return bool

PlayerHasExploredWorldIndex() public method

public PlayerHasExploredWorldIndex ( Vector2 worldIndex ) : bool
worldIndex Vector2
return bool

TakeTurn() public method

public TakeTurn ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

World() public method

public World ( ) : System
return System

World_DoneWithQuest() public method

public World_DoneWithQuest ( IQuest sender ) : void
sender IQuest
return void

manEatingPlant_Death() public method

public manEatingPlant_Death ( ICreature sender ) : void
sender ICreature
return void

Property Details

Player public property

public PlayerCharacter,DodongosQuest.Creatures.Player Player
return DodongosQuest.Creatures.Player.PlayerCharacter

_level public property

public int _level
return int