GameGraphics.GraphicsObject.GraphicsObject C# (CSharp) Method

GraphicsObject() public method

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)
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)
        {
            this.SetID(id);
            this.SetX(x);
            this.SetY(y);
            this.SetRadius(radius);
            this.SetAngle(angle);
            this.SetSpriteID(spriteID);
            this.SetColor(DEFAULT_COLOR);
        }

Same methods

GraphicsObject::GraphicsObject ( int id, float x, float y, float radius, float angle, int spriteID, Color color ) : System
GraphicsObject::GraphicsObject ( int id, float x, float y, float radius, float angle, int spriteID, int colorID ) : System