Method | Description | |
---|---|---|
GetAngle ( ) : float |
Returns the given angle of the object
|
|
GetColor ( ) : Color |
Returns the actual color that this sprite will be using
|
|
GetColorID ( ) : int |
Returns the given color ID of the object
|
|
GetID ( ) : int |
Returns the objects unique ID.
|
|
GetRadius ( ) : float |
Returns the given radius of the object
|
|
GetSpriteID ( ) : int |
Returns the given sprite ID of the object
|
|
GetX ( ) : float |
Returns the given X location
|
|
GetY ( ) : float |
Returns the given Y location
|
|
GraphicsObject ( int id, float x, float y, float radius, float angle, int spriteID ) : System |
Constructor that accepts all but the colorID as parameters. This is usefull for object that do not need their color pallet changed (all objects other than the players)
|
|
GraphicsObject ( int id, float x, float y, float radius, float angle, int spriteID, Color color ) : System |
Constructor that creates an object with all parameters defined. This version allows the color to be defined through a color object rather than using a default list of colors based on ID.
|
|
GraphicsObject ( int id, float x, float y, float radius, float angle, int spriteID, int colorID ) : System |
This constructor creates a GraphicsObject with all its parameters defined with values
|
|
SetAngle ( float a ) : void |
Sets the angle of the GraphicsObject
|
|
SetColor ( Color color ) : void |
Sets the color that the GraphicsObject will use.
|
|
SetColor ( int colorID ) : void |
Sets the color of the GraphicsObject based on a predefined list of ID's. If the ID is not in the range of the colorID's then it will use the default (White)
|
|
SetColorID ( int colorID ) : void | ||
SetID ( int id ) : void |
Sets the ID of the GraphicsObject
|
|
SetRadius ( float r ) : void |
Sets the radius of the GraphicsObject
|
|
SetSpriteID ( int spriteID ) : void |
Sets the spriteID which will determine what sprite will be used for this object
|
|
SetX ( float x ) : void |
Sets the X location of the GraphicsObject
|
|
SetY ( float y ) : void |
Sets the Y location of the GraphicsObject
|
public GraphicsObject ( int id, float x, float y, float radius, float angle, int spriteID ) : System | ||
id | int | the ID of the object this should be unique |
x | float | the x location of the object |
y | float | the y location of the object |
radius | float | the radius of the object |
angle | float | the angle of the object |
spriteID | int | the ID of the sprite the object uses |
return | System |
public GraphicsObject ( int id, float x, float y, float radius, float angle, int spriteID, Color color ) : System | ||
id | int | the ID of the object this should be unique |
x | float | the x location of the object |
y | float | the y location of the object |
radius | float | the radius of the object |
angle | float | the angle of the object |
spriteID | int | the ID of the sprite the object uses |
color | Color | The color object that will be used to change the sprites color |
return | System |
public GraphicsObject ( int id, float x, float y, float radius, float angle, int spriteID, int colorID ) : System | ||
id | int | the ID of the object this should be unique |
x | float | the x location of the object |
y | float | the y location of the object |
radius | float | the radius of the object |
angle | float | the angle of the object |
spriteID | int | the ID of the sprite the object uses |
colorID | int | the ID of the color it wil have (used for the player sprites) |
return | System |
public SetAngle ( float a ) : void | ||
a | float | the angle to be given to the object |
return | void |
public SetColor ( Color color ) : void | ||
color | Color | The color that will be used |
return | void |
public SetColor ( int colorID ) : void | ||
colorID | int | the ID value of the color to be used |
return | void |
public SetID ( int id ) : void | ||
id | int | the id to be given to the object |
return | void |
public SetRadius ( float r ) : void | ||
r | float | the radius to be given to the object |
return | void |
public SetSpriteID ( int spriteID ) : void | ||
spriteID | int | the ID of the sprite to be used |
return | void |
public SetX ( float x ) : void | ||
x | float | the X location to be given to the object |
return | void |
public SetY ( float y ) : void | ||
y | float | the Y location to be given to the object |
return | void |