C# 클래스 DodongosQuest.World

파일 보기 프로젝트 열기: faintpixel/Roguelike 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Player DodongosQuest.Creatures.Player.PlayerCharacter
_level int

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddSpecialEffectToWorld() 공개 메소드

public AddSpecialEffectToWorld ( ISpecialEffect specialEffect ) : void
specialEffect ISpecialEffect
리턴 void

CanPlayerSeeWorldIndex() 공개 메소드

public CanPlayerSeeWorldIndex ( Vector2 worldIndex ) : bool
worldIndex Vector2
리턴 bool

CenterCameraOnPlayer() 공개 메소드

public CenterCameraOnPlayer ( ) : void
리턴 void

CloseDoorAtPositionSuccessful() 공개 메소드

public CloseDoorAtPositionSuccessful ( Vector2 doorWorldIndex, Vector2 playerWorldIndex ) : bool
doorWorldIndex Vector2
playerWorldIndex Vector2
리턴 bool

ConvertScreenPositionToTileIndex() 공개 메소드

public ConvertScreenPositionToTileIndex ( float x, float y ) : Vector2
x float
y float
리턴 Vector2

ConvertTileIndexToWorldPosition() 공개 메소드

public ConvertTileIndexToWorldPosition ( float x, float y ) : Vector2
x float
y float
리턴 Vector2

ConvertWorldPositionToTileIndex() 공개 메소드

public ConvertWorldPositionToTileIndex ( float x, float y ) : Vector2
x float
y float
리턴 Vector2

DiscoverTerrainAroundPlayer() 공개 메소드

public DiscoverTerrainAroundPlayer ( ) : void
리턴 void

Draw() 공개 메소드

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

Flame_Out() 공개 메소드

public Flame_Out ( Fire sender ) : void
sender DodongosQuest.Creatures.Fire
리턴 void

GetContainerAtIndex() 공개 메소드

public GetContainerAtIndex ( Vector2 index ) : IContainer
index Vector2
리턴 IContainer

GetCreatureAtIndex() 공개 메소드

public GetCreatureAtIndex ( Vector2 index ) : ICreature
index Vector2
리턴 ICreature

GetCreaturesWithinVisibleDistanceOfPlayer() 공개 메소드

public GetCreaturesWithinVisibleDistanceOfPlayer ( int range ) : List
range int
리턴 List

GetDoorAtIndex() 공개 메소드

public GetDoorAtIndex ( Vector2 index ) : Door
index Vector2
리턴 Door

GetStraightLineDistance() 공개 메소드

public GetStraightLineDistance ( Vector2 point1, Vector2 point2 ) : int
point1 Vector2
point2 Vector2
리턴 int

GetSurroundingWorldIndexPositions() 공개 메소드

public GetSurroundingWorldIndexPositions ( Vector2 worldIndex ) : List
worldIndex Vector2
리턴 List

GetWorldIndexOneSpaceAway() 공개 메소드

public GetWorldIndexOneSpaceAway ( Direction direction, Vector2 startingIndex ) : Vector2
direction Direction
startingIndex Vector2
리턴 Vector2

GetWorldIndexPointsAlongLine() 공개 메소드

public GetWorldIndexPointsAlongLine ( Vector2 point1, Vector2 point2 ) : List
point1 Vector2
point2 Vector2
리턴 List

GetWorldSize() 공개 메소드

public GetWorldSize ( ) : Vector2
리턴 Vector2

HandleCreatureDeath() 공개 메소드

public HandleCreatureDeath ( ICreature sender ) : void
sender ICreature
리턴 void

HandleFlameAttack() 공개 메소드

public HandleFlameAttack ( ICreature sender ) : void
sender ICreature
리턴 void

IsWorldIndexFreeOfObstacles() 공개 메소드

public IsWorldIndexFreeOfObstacles ( Vector2 index ) : bool
index Vector2
리턴 bool

MoveCreatureInDirectionSuccessful() 공개 메소드

public MoveCreatureInDirectionSuccessful ( Direction direction, ICreature creature ) : bool
direction Direction
creature ICreature
리턴 bool

MovePlayerInDirectionSuccessful() 공개 메소드

public MovePlayerInDirectionSuccessful ( Direction direction ) : bool
direction Direction
리턴 bool

PlayerCanSeeWorldIndex() 공개 메소드

public PlayerCanSeeWorldIndex ( Vector2 worldIndex ) : bool
worldIndex Vector2
리턴 bool

PlayerHasExploredWorldIndex() 공개 메소드

public PlayerHasExploredWorldIndex ( Vector2 worldIndex ) : bool
worldIndex Vector2
리턴 bool

TakeTurn() 공개 메소드

public TakeTurn ( ) : void
리턴 void

Update() 공개 메소드

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

World() 공개 메소드

public World ( ) : System
리턴 System

World_DoneWithQuest() 공개 메소드

public World_DoneWithQuest ( IQuest sender ) : void
sender IQuest
리턴 void

manEatingPlant_Death() 공개 메소드

public manEatingPlant_Death ( ICreature sender ) : void
sender ICreature
리턴 void

프로퍼티 상세

Player 공개적으로 프로퍼티

public PlayerCharacter,DodongosQuest.Creatures.Player Player
리턴 DodongosQuest.Creatures.Player.PlayerCharacter

_level 공개적으로 프로퍼티

public int _level
리턴 int