프로퍼티 | 타입 | 설명 | |
---|---|---|---|
alliance | Alliance | ||
arrowManager | ArrowManager | ||
color | Color | ||
device | GraphicsDevice | ||
fastStore | UnitStore | ||
lightTexture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
meleeStore | UnitStore | ||
rangedStore | UnitStore |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Draw | void |
메소드 | 설명 | |
---|---|---|
DeselectAllBuildings ( ) : void |
Deselects all buildings.
|
|
DeselectAllUnits ( ) : void |
Deselects all units.
|
|
DrawHud ( |
||
DrawLights ( |
||
DrawLights ( |
||
DrawMiniLights ( |
||
GetAddedOffsettedMouseLocation ( MouseEvent m ) : Point |
Gets the mouse location with the offset added.
|
|
GetBuildings ( ) : |
||
GetMouseOverBuilding ( CustomArrayList |
Whether the mouse is over a unit or not if it is, it'll return it. =D
|
|
GetMouseOverUnit ( ) : |
Gets the unit that the mouse is over, of all players.
|
|
GetMouseOverUnit ( CustomArrayList |
Whether the mouse is over a unit or not if it is, it'll return it. =D
|
|
GetNewPreviewPattern ( Point patternCenterLocation, Point offsettedMouseLocation, int angle ) : |
Gets the new current preview pattern (TEMPORARY FUNCTION)
|
|
GetSelectedBuildings ( ) : |
||
GetSelectedUnits ( ) : |
||
GetSubstractedOffsettedMouseLocation ( MouseEvent m ) : Point |
Gets the mouse location with the offset substracted.
|
|
GetUnits ( ) : |
||
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 ( |
Standard Update function.
|
|
stopUnitSelection ( ) : void |
메소드 | 설명 | |
---|---|---|
Draw ( |
Standard Draw function.
|
public DrawHud ( |
||
sb | ||
리턴 | void |
public DrawLights ( |
||
gameTime | ||
spriteBatch | ||
lightTexture | Microsoft.Xna.Framework.Graphics.Texture2D | |
리턴 | void |
public DrawLights ( |
||
spriteBatch | ||
리턴 | void |
public DrawMiniLights ( |
||
spriteBatch | ||
map | MiniMap | |
리턴 | void |
public GetAddedOffsettedMouseLocation ( MouseEvent m ) : Point | ||
m | MouseEvent | The mouse event. |
리턴 | Point |
public GetBuildings ( ) : |
||
리턴 |
public GetMouseOverBuilding ( CustomArrayList |
||
buildings | CustomArrayList |
|
리턴 | PathfindingTest.Buildings.Building |
public GetMouseOverUnit ( CustomArrayList |
||
units | CustomArrayList |
|
리턴 |
public GetNewPreviewPattern ( Point patternCenterLocation, Point offsettedMouseLocation, int angle ) : |
||
patternCenterLocation | Point | |
offsettedMouseLocation | Point | The location at which the mouse is at, with offset substracted |
angle | int | The angle |
리턴 |
public GetSelectedBuildings ( ) : |
||
리턴 |
public GetSelectedUnits ( ) : |
||
리턴 |
public GetSubstractedOffsettedMouseLocation ( MouseEvent m ) : Point | ||
m | MouseEvent | The mouse event. |
리턴 | Point |
public IsMouseOverFriendlyBuilding ( ) : PathfindingTest.Buildings.Building | ||
리턴 | PathfindingTest.Buildings.Building |
public Player ( Alliance alliance, Color color, Point startLocation ) : System | ||
alliance | Alliance | |
color | Color | |
startLocation | Point | |
리턴 | System |
public Update ( |
||
ks | ||
ms | Microsoft.Xna.Framework.Input.MouseState | |
리턴 | void |
public Texture2D,Microsoft.Xna.Framework.Graphics lightTexture | ||
리턴 | Microsoft.Xna.Framework.Graphics.Texture2D |