C# Класс PathfindingTest.UI.Menus.Multiplayer.Panels.PlayerLocation.MapPlayerLocationGroup

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
buttons LinkedList

Открытые методы

Метод Описание
GetIndexOfButton ( MapPlayerLocationButton button ) : int

Gets the index of a button.

GetMapLocationByButtonTextNumber ( int number ) : Point

Gets the map location by button text number ( 1, 2, 3 etc.)

MapPlayerLocationGroup ( XNAInterfaceComponents.Components.XNAPanel parent, Point offset, String mapname ) : System
MapToMiniMap ( Point mapCoordinates ) : Point

Converts map coordinates to mini map coordinates

OnMapSelectionChanged ( System.Boolean flag ) : void

Should be called when the map selection has changed

OnPlayerIndexChanged ( MapPlayerLocationButton clickedButton, int number ) : void

When a user clicks on an empty MapPlayerLocationButton, a number needs to appear.

OnPlayerIndexChangedMP ( int userID, int buttonIndex ) : void

Changes the index of a user on the map.

Unload ( ) : void

Unloads the group.

Описание методов

GetIndexOfButton() публичный Метод

Gets the index of a button.
public GetIndexOfButton ( MapPlayerLocationButton button ) : int
button MapPlayerLocationButton The button to search for
Результат int

GetMapLocationByButtonTextNumber() публичный Метод

Gets the map location by button text number ( 1, 2, 3 etc.)
public GetMapLocationByButtonTextNumber ( int number ) : Point
number int The number
Результат Point

MapPlayerLocationGroup() публичный Метод

public MapPlayerLocationGroup ( XNAInterfaceComponents.Components.XNAPanel parent, Point offset, String mapname ) : System
parent XNAInterfaceComponents.Components.XNAPanel
offset Point
mapname String
Результат System

MapToMiniMap() публичный Метод

Converts map coordinates to mini map coordinates
public MapToMiniMap ( Point mapCoordinates ) : Point
mapCoordinates Point The map coordinates you want to convert
Результат Point

OnMapSelectionChanged() публичный Метод

Should be called when the map selection has changed
public OnMapSelectionChanged ( System.Boolean flag ) : void
flag System.Boolean Whether the flag was visible or not.
Результат void

OnPlayerIndexChanged() публичный Метод

When a user clicks on an empty MapPlayerLocationButton, a number needs to appear.
public OnPlayerIndexChanged ( MapPlayerLocationButton clickedButton, int number ) : void
clickedButton MapPlayerLocationButton
number int Number to display on the map
Результат void

OnPlayerIndexChangedMP() публичный Метод

Changes the index of a user on the map.
public OnPlayerIndexChangedMP ( int userID, int buttonIndex ) : void
userID int User ID to change
buttonIndex int The button index.
Результат void

Unload() публичный Метод

Unloads the group.
public Unload ( ) : void
Результат void

Описание свойств

buttons публичное свойство

public LinkedList buttons
Результат LinkedList