C# Класс SmashBros.Models.Map

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

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

Свойство Тип Описание
DropZone Box
backgroundMusic string
bgImage string
boxes List
floatingBoxes List
mapImage string
mapPosition Vector2
name string
size Box
startingPosition List
thumbImage string
zoomBox Box

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

Метод Описание
AddBox ( float x, float y, float widht, float height, float rotation ) : void
AddBoxes ( ) : void
AddFloatBox ( float x, float y, float widht, float rotation ) : void
AddStartPos ( float x, float y ) : void
Map ( ) : System

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

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

public AddBox ( float x, float y, float widht, float height, float rotation ) : void
x float
y float
widht float
height float
rotation float
Результат void

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

public AddBoxes ( ) : void
Результат void

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

public AddFloatBox ( float x, float y, float widht, float rotation ) : void
x float
y float
widht float
rotation float
Результат void

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

public AddStartPos ( float x, float y ) : void
x float
y float
Результат void

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

public Map ( ) : System
Результат System

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

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

public Box DropZone
Результат Box

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

The assetname of the maps backgroundMusic.
public string backgroundMusic
Результат string

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

Source name for image used in background during gameplay
public string bgImage
Результат string

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

A list of rectangles that have collisiondetection in all directions.
public List boxes
Результат List

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

A list of rectangles that only have upwards collisiondetection and only if the player is not holding down "down".
public List floatingBoxes
Результат List

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

Source for the real map
public string mapImage
Результат string

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

Of much the map is offset from the
public Vector2 mapPosition
Результат Vector2

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

Name of the map
public string name
Результат string

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

How large the map is, edges is placed at the edges of this size X and y becomes the offset of the rectangle
public Box size
Результат Box

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

List with four positions that says where the players can start
public List startingPosition
Результат List

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

Source name of thumb Image, used for map selection screen
public string thumbImage
Результат string

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

The zooming bounds of the map
public Box zoomBox
Результат Box