C# Class SmashBros.Models.Map

Show file Open project: Grutn/TDT4240-X2 Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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 method

public AddBox ( float x, float y, float widht, float height, float rotation ) : void
x float
y float
widht float
height float
rotation float
return void

AddBoxes() public method

public AddBoxes ( ) : void
return void

AddFloatBox() public method

public AddFloatBox ( float x, float y, float widht, float rotation ) : void
x float
y float
widht float
rotation float
return void

AddStartPos() public method

public AddStartPos ( float x, float y ) : void
x float
y float
return void

Map() public method

public Map ( ) : System
return System

Property Details

DropZone public property

public Box DropZone
return Box

backgroundMusic public property

The assetname of the maps backgroundMusic.
public string backgroundMusic
return string

bgImage public property

Source name for image used in background during gameplay
public string bgImage
return string

boxes public property

A list of rectangles that have collisiondetection in all directions.
public List boxes
return List

floatingBoxes public property

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

mapImage public property

Source for the real map
public string mapImage
return string

mapPosition public property

Of much the map is offset from the
public Vector2 mapPosition
return Vector2

name public property

Name of the map
public string name
return string

size public 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
return Box

startingPosition public property

List with four positions that says where the players can start
public List startingPosition
return List

thumbImage public property

Source name of thumb Image, used for map selection screen
public string thumbImage
return string

zoomBox public property

The zooming bounds of the map
public Box zoomBox
return Box