C# Class GameCreatorGroupProject.GameObject

ファイルを表示 Open project: HeroOfTheWinds/CS-350-410-431-Group-Project Class Usage Examples

Public Properties

Property Type Description
depth float
sprite Sprite

Public Methods

Method Description
GameObject ( String name, System.Vector2 referenceCoord, System.Vector2 vertexOffsets, float inputmap ) : System
GameObject ( String name, System.Vector2 referenceCoord, System.Vector2 vertexOffsets, float inputmap, float ispeed, float acceleration, bool collision ) : System
IsInside ( Point clickPt ) : bool
Update ( ) : void
getAcc ( ) : float
getBaseSpeed ( ) : float
getCol ( ) : bool
getLoc ( ) : System.Vector2[]
getMap ( ) : float[]
getMaxX ( ) : float
getMaxY ( ) : float
getMinX ( ) : float
getMinY ( ) : float
getName ( ) : String
getSegments ( ) : List
getSpeed ( ) : float
move ( System.Vector2 dist ) : void
ontimer ( ) : bool
removeCollision ( ) : void
setAcc ( float acceleration ) : void
setBaseSpeed ( float ispeed ) : void
setCollision ( ) : void
setMap ( float map ) : void
setName ( String name ) : void
setSpeed ( float speed ) : void
spawn ( System.Vector2 spawnCoords ) : bool
spawned ( ) : bool

Private Methods

Method Description
intersects ( float speed, string dir, List seg ) : bool

Method Details

GameObject() public method

public GameObject ( String name, System.Vector2 referenceCoord, System.Vector2 vertexOffsets, float inputmap ) : System
name String
referenceCoord System.Vector2
vertexOffsets System.Vector2
inputmap float
return System

GameObject() public method

public GameObject ( String name, System.Vector2 referenceCoord, System.Vector2 vertexOffsets, float inputmap, float ispeed, float acceleration, bool collision ) : System
name String
referenceCoord System.Vector2
vertexOffsets System.Vector2
inputmap float
ispeed float
acceleration float
collision bool
return System

IsInside() public method

public IsInside ( Point clickPt ) : bool
clickPt Point
return bool

Update() public method

public Update ( ) : void
return void

getAcc() public method

public getAcc ( ) : float
return float

getBaseSpeed() public method

public getBaseSpeed ( ) : float
return float

getCol() public method

public getCol ( ) : bool
return bool

getLoc() public method

public getLoc ( ) : System.Vector2[]
return System.Vector2[]

getMap() public method

public getMap ( ) : float[]
return float[]

getMaxX() public method

public getMaxX ( ) : float
return float

getMaxY() public method

public getMaxY ( ) : float
return float

getMinX() public method

public getMinX ( ) : float
return float

getMinY() public method

public getMinY ( ) : float
return float

getName() public method

public getName ( ) : String
return String

getSegments() public method

public getSegments ( ) : List
return List

getSpeed() public method

public getSpeed ( ) : float
return float

move() public method

public move ( System.Vector2 dist ) : void
dist System.Vector2
return void

ontimer() public method

public ontimer ( ) : bool
return bool

removeCollision() public method

public removeCollision ( ) : void
return void

setAcc() public method

public setAcc ( float acceleration ) : void
acceleration float
return void

setBaseSpeed() public method

public setBaseSpeed ( float ispeed ) : void
ispeed float
return void

setCollision() public method

public setCollision ( ) : void
return void

setMap() public method

public setMap ( float map ) : void
map float
return void

setName() public method

public setName ( String name ) : void
name String
return void

setSpeed() public method

public setSpeed ( float speed ) : void
speed float
return void

spawn() public method

public spawn ( System.Vector2 spawnCoords ) : bool
spawnCoords System.Vector2
return bool

spawned() public method

public spawned ( ) : bool
return bool

Property Details

depth public_oe property

public float depth
return float

sprite public_oe property

public Sprite,GameCreatorGroupProject sprite
return Sprite