//------------------------------------------------------------------------------------- // Class constructors public TextObject(GameHost game) : base(game) { ScaleX = 1; ScaleY = 1; SpriteColor = Color.White; }
public Ball(GameHost game, Vector2 position, Texture2D texture, Score score) : this(game, position) { // Store the provided texture SpriteTexture = texture; this.score = score; }
public Score(GameHost game) : base(game) { ScaleX = 1; ScaleY = 1; SpriteColor = Color.White; }
//------------------------------------------------------------------------------------- // Class constructors public SpriteObject(GameHost game) : base(game) { // Set the default scale and color ScaleX = 1; ScaleY = 1; SpriteColor = Color.White; }
//------------------------------------------------------------------------------------- // Class constructors public MonoLog(GameHost game) : base(game) { // Set the default scale and color ScaleX = 1; ScaleY = 1; SpriteColor = Color.White; Speed = 0.8f; }
public TextObject(GameHost game, SpriteFont font) : this(game) { Font = font; }
public Player(GameHost game, Vector2 position) : this(game) { // Store the provided position Position = position; }
//------------------------------------------------------------------------------------- // Class constructors public BenchmarkObject(GameHost game, SpriteFont font, Vector2 position, Color textColor) : base(game, font, position) { SpriteColor = textColor; }
//------------------------------------------------------------------------------------- // Class constructors /// <summary> /// Constructor for the object /// </summary> /// <param name="game">A reference to the MonoGame Game class inside which the object resides</param> public GameObjectBase(GameHost game) { // Store a reference to the game Game = game; }
public TextObject(GameHost game, SpriteFont font, Vector2 position, String text) : this(game, font, position) { Text = text; }
public TextObject(GameHost game, SpriteFont font, Vector2 position, String text, TextAlignment horizontalAlignment, TextAlignment verticalAlignment) : this(game, font, position, text) { HorizontalAlignment = horizontalAlignment; VerticalAlignment = verticalAlignment; }
public SpriteObject(GameHost game, Vector2 position) : this(game) { // Store the provided position Position = position; }
public Score(GameHost game, SpriteFont font) : this(game) { Font = font; }
public MonoLog(GameHost game, SpriteFont font) : this(game) { Font = font; LineSpacing = Font.LineSpacing; }
public EnvironmentGraphics(GameHost game, Vector2 position, Texture2D texture) : this(game, position) { // Store the provided texture SpriteTexture = texture; }
public EnvironmentGraphics(GameHost game, Vector2 position) : this(game) { // Store the provided position Position = position; }
//------------------------------------------------------------------------------------- // Class constructors public EnvironmentGraphics(GameHost game) : base(game) { SpriteColor = Color.White; }
public MonoLog(GameHost game, SpriteFont font, Color fontColor) : this(game, font) { FontColor = fontColor; }
public SpriteObject(GameHost game, Vector2 position, Texture2D texture) : this(game, position) { // Store the provided texture SpriteTexture = texture; }
public TextObject(GameHost game, SpriteFont font, Vector2 position) : this(game, font) { PositionX = position.X; PositionY = position.Y; }