C# 클래스 PathfindingTest.Players.Player

상속: MouseClickListener, MouseMotionListener
파일 보기 프로젝트 열기: Wotuu/RTS_XNA_v2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
alliance Alliance
arrowManager ArrowManager
color Color
device GraphicsDevice
fastStore UnitStore
lightTexture Microsoft.Xna.Framework.Graphics.Texture2D
meleeStore UnitStore
rangedStore UnitStore

Private Properties

프로퍼티 타입 설명
Draw void

공개 메소드들

메소드 설명
DeselectAllBuildings ( ) : void

Deselects all buildings.

DeselectAllUnits ( ) : void

Deselects all units.

DrawHud ( SpriteBatch sb ) : void
DrawLights ( GameTime gameTime, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D lightTexture ) : void
DrawLights ( SpriteBatch spriteBatch ) : void
DrawMiniLights ( SpriteBatch spriteBatch, MiniMap map ) : void
GetAddedOffsettedMouseLocation ( MouseEvent m ) : Point

Gets the mouse location with the offset added.

GetBuildings ( ) : BuildingSelection
GetMouseOverBuilding ( CustomArrayList buildings ) : PathfindingTest.Buildings.Building

Whether the mouse is over a unit or not if it is, it'll return it. =D

GetMouseOverUnit ( ) : Unit

Gets the unit that the mouse is over, of all players.

GetMouseOverUnit ( CustomArrayList units ) : Unit

Whether the mouse is over a unit or not if it is, it'll return it. =D

GetNewPreviewPattern ( Point patternCenterLocation, Point offsettedMouseLocation, int angle ) : UnitGroupPattern

Gets the new current preview pattern (TEMPORARY FUNCTION)

GetSelectedBuildings ( ) : BuildingSelection
GetSelectedUnits ( ) : UnitSelection
GetSubstractedOffsettedMouseLocation ( MouseEvent m ) : Point

Gets the mouse location with the offset substracted.

GetUnits ( ) : UnitSelection
IsMouseOverFriendlyBuilding ( ) : PathfindingTest.Buildings.Building
IsPreviewingBuilding ( ) : System.Boolean

Whether the player is currently previewing a building

OnMouseClick ( MouseEvent m ) : void
OnMouseDrag ( MouseEvent m ) : void
OnMouseMotion ( MouseEvent m ) : void
OnMouseRelease ( MouseEvent m ) : void
Player ( Alliance alliance, Color color, Point startLocation ) : System

Player constructor.

RemovePreviewBuildings ( ) : void

Removes all the preview buildings

SpawnStartUnits ( ) : void

Spawns the starting units of this player.

Update ( KeyboardState ks, Microsoft.Xna.Framework.Input.MouseState ms ) : void

Standard Update function.

stopUnitSelection ( ) : void

비공개 메소드들

메소드 설명
Draw ( SpriteBatch sb ) : void

Standard Draw function.

메소드 상세

DeselectAllBuildings() 공개 메소드

Deselects all buildings.
public DeselectAllBuildings ( ) : void
리턴 void

DeselectAllUnits() 공개 메소드

Deselects all units.
public DeselectAllUnits ( ) : void
리턴 void

DrawHud() 공개 메소드

public DrawHud ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

DrawLights() 공개 메소드

public DrawLights ( GameTime gameTime, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D lightTexture ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
lightTexture Microsoft.Xna.Framework.Graphics.Texture2D
리턴 void

DrawLights() 공개 메소드

public DrawLights ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

DrawMiniLights() 공개 메소드

public DrawMiniLights ( SpriteBatch spriteBatch, MiniMap map ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
map MiniMap
리턴 void

GetAddedOffsettedMouseLocation() 공개 메소드

Gets the mouse location with the offset added.
public GetAddedOffsettedMouseLocation ( MouseEvent m ) : Point
m MouseEvent The mouse event.
리턴 Point

GetBuildings() 공개 메소드

public GetBuildings ( ) : BuildingSelection
리턴 PathfindingTest.Selection.BuildingSelection

GetMouseOverBuilding() 공개 메소드

Whether the mouse is over a unit or not if it is, it'll return it. =D
public GetMouseOverBuilding ( CustomArrayList buildings ) : PathfindingTest.Buildings.Building
buildings CustomArrayList
리턴 PathfindingTest.Buildings.Building

GetMouseOverUnit() 공개 메소드

Gets the unit that the mouse is over, of all players.
public GetMouseOverUnit ( ) : Unit
리턴 PathfindingTest.Units.Unit

GetMouseOverUnit() 공개 메소드

Whether the mouse is over a unit or not if it is, it'll return it. =D
public GetMouseOverUnit ( CustomArrayList units ) : Unit
units CustomArrayList
리턴 PathfindingTest.Units.Unit

GetNewPreviewPattern() 공개 메소드

Gets the new current preview pattern (TEMPORARY FUNCTION)
public GetNewPreviewPattern ( Point patternCenterLocation, Point offsettedMouseLocation, int angle ) : UnitGroupPattern
patternCenterLocation Point
offsettedMouseLocation Point The location at which the mouse is at, with offset substracted
angle int The angle
리턴 PathfindingTest.Selection.Patterns.UnitGroupPattern

GetSelectedBuildings() 공개 메소드

public GetSelectedBuildings ( ) : BuildingSelection
리턴 PathfindingTest.Selection.BuildingSelection

GetSelectedUnits() 공개 메소드

public GetSelectedUnits ( ) : UnitSelection
리턴 PathfindingTest.Selection.UnitSelection

GetSubstractedOffsettedMouseLocation() 공개 메소드

Gets the mouse location with the offset substracted.
public GetSubstractedOffsettedMouseLocation ( MouseEvent m ) : Point
m MouseEvent The mouse event.
리턴 Point

GetUnits() 공개 메소드

public GetUnits ( ) : UnitSelection
리턴 PathfindingTest.Selection.UnitSelection

IsMouseOverFriendlyBuilding() 공개 메소드

public IsMouseOverFriendlyBuilding ( ) : PathfindingTest.Buildings.Building
리턴 PathfindingTest.Buildings.Building

IsPreviewingBuilding() 공개 메소드

Whether the player is currently previewing a building
public IsPreviewingBuilding ( ) : System.Boolean
리턴 System.Boolean

OnMouseClick() 공개 메소드

public OnMouseClick ( MouseEvent m ) : void
m MouseEvent
리턴 void

OnMouseDrag() 공개 메소드

public OnMouseDrag ( MouseEvent m ) : void
m MouseEvent
리턴 void

OnMouseMotion() 공개 메소드

public OnMouseMotion ( MouseEvent m ) : void
m MouseEvent
리턴 void

OnMouseRelease() 공개 메소드

public OnMouseRelease ( MouseEvent m ) : void
m MouseEvent
리턴 void

Player() 공개 메소드

Player constructor.
public Player ( Alliance alliance, Color color, Point startLocation ) : System
alliance Alliance
color Color
startLocation Point
리턴 System

RemovePreviewBuildings() 공개 메소드

Removes all the preview buildings
public RemovePreviewBuildings ( ) : void
리턴 void

SpawnStartUnits() 공개 메소드

Spawns the starting units of this player.
public SpawnStartUnits ( ) : void
리턴 void

Update() 공개 메소드

Standard Update function.
public Update ( KeyboardState ks, Microsoft.Xna.Framework.Input.MouseState ms ) : void
ks Microsoft.Xna.Framework.Input.KeyboardState
ms Microsoft.Xna.Framework.Input.MouseState
리턴 void

stopUnitSelection() 공개 메소드

public stopUnitSelection ( ) : void
리턴 void

프로퍼티 상세

alliance 공개적으로 프로퍼티

public Alliance alliance
리턴 Alliance

arrowManager 공개적으로 프로퍼티

public ArrowManager arrowManager
리턴 ArrowManager

color 공개적으로 프로퍼티

public Color color
리턴 Color

device 공개적으로 프로퍼티

public GraphicsDevice device
리턴 GraphicsDevice

fastStore 공개적으로 프로퍼티

public UnitStore fastStore
리턴 UnitStore

lightTexture 공개적으로 프로퍼티

public Texture2D,Microsoft.Xna.Framework.Graphics lightTexture
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

meleeStore 공개적으로 프로퍼티

public UnitStore meleeStore
리턴 UnitStore

rangedStore 공개적으로 프로퍼티

public UnitStore rangedStore
리턴 UnitStore