C# Class Paddle, XNA

Inheritance: MonoBehaviour
Show file Open project: hatRiot/XNA Class Usage Examples

Public Properties

Property Type Description
boundingBox BoundingBox
padSpeed int
padSpeed2 int
position Vector2
screenSize Vector2
size Vector2
texture Texture2D
velocity Vector2

Public Methods

Method Description
Control ( ) : void
Paddle ( Texture2D t, Vector2 p, Vector2 s, int screenWidth, int screenHeight, BoundingBox b ) : System
increasePad ( ) : void
updateBoundingBox ( ) : void

Method Details

Control() public method

public Control ( ) : void
return void

Paddle() public method

public Paddle ( Texture2D t, Vector2 p, Vector2 s, int screenWidth, int screenHeight, BoundingBox b ) : System
t UnityEngine.Texture2D
p Vector2
s Vector2
screenWidth int
screenHeight int
b BoundingBox
return System

increasePad() public method

public increasePad ( ) : void
return void

updateBoundingBox() public method

public updateBoundingBox ( ) : void
return void

Property Details

boundingBox public property

public BoundingBox boundingBox
return BoundingBox

padSpeed public property

public int padSpeed
return int

padSpeed2 public property

public int padSpeed2
return int

position public property

public Vector2 position
return Vector2

screenSize public property

public Vector2 screenSize
return Vector2

size public property

public Vector2 size
return Vector2

texture public property

public Texture2D texture
return Texture2D

velocity public property

public Vector2 velocity
return Vector2