C# Class SmashBros.Models.Map

Afficher le fichier Open project: Grutn/TDT4240-X2 Class Usage Examples

Méthodes publiques

Свойство Type Description
DropZone Box
backgroundMusic string
bgImage string
boxes List
floatingBoxes List
mapImage string
mapPosition Vector2
name string
size Box
startingPosition List
thumbImage string
zoomBox Box

Méthodes publiques

Méthode Description
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

Method Details

AddBox() public méthode

public AddBox ( float x, float y, float widht, float height, float rotation ) : void
x float
y float
widht float
height float
rotation float
Résultat void

AddBoxes() public méthode

public AddBoxes ( ) : void
Résultat void

AddFloatBox() public méthode

public AddFloatBox ( float x, float y, float widht, float rotation ) : void
x float
y float
widht float
rotation float
Résultat void

AddStartPos() public méthode

public AddStartPos ( float x, float y ) : void
x float
y float
Résultat void

Map() public méthode

public Map ( ) : System
Résultat System

Property Details

DropZone public_oe property

public Box DropZone
Résultat Box

backgroundMusic public_oe property

The assetname of the maps backgroundMusic.
public string backgroundMusic
Résultat string

bgImage public_oe property

Source name for image used in background during gameplay
public string bgImage
Résultat string

boxes public_oe property

A list of rectangles that have collisiondetection in all directions.
public List boxes
Résultat List

floatingBoxes public_oe property

A list of rectangles that only have upwards collisiondetection and only if the player is not holding down "down".
public List floatingBoxes
Résultat List

mapImage public_oe property

Source for the real map
public string mapImage
Résultat string

mapPosition public_oe property

Of much the map is offset from the
public Vector2 mapPosition
Résultat Vector2

name public_oe property

Name of the map
public string name
Résultat string

size public_oe property

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
Résultat Box

startingPosition public_oe property

List with four positions that says where the players can start
public List startingPosition
Résultat List

thumbImage public_oe property

Source name of thumb Image, used for map selection screen
public string thumbImage
Résultat string

zoomBox public_oe property

The zooming bounds of the map
public Box zoomBox
Résultat Box