public YesNoPanel(Game game, CompoundGameComponent parent, int xSource, int ySource, int width, int height, int xDestination, int yDestination, string message) : base(game, xSource, ySource, width, height, xDestination, yDestination) { this.msgStr = message; this.parent = parent; LoadContent(); }
public SettingsMenuRoot(Game game, CompoundGameComponent parent, int xSource, int ySource, int width, int height, int xDestination, int yDestination, string message) : base(game, xSource, ySource, width, height, xDestination, yDestination, null, 40) { this.parent = parent; this.msgStr = message; LoadContent(); }
public PanelDynamic(Game game, CompoundGameComponent parent, string sideHandleFilename, string completePaneFilename, int height) : base(game, parent) { this.height = height; this.sideHandleFileName = sideHandleFilename; this.completePaneFilename = completePaneFilename; LoadContent(); }
public TimersPanel(Game game, CompoundGameComponent parent, int xSource, int ySource, int width, int height, int xDestination, int yDestination, string message) : base(game, xSource, ySource, width, height, xDestination, yDestination, null, 40) { timeScheme = new FischerTimeScheme(180, 5); this.msgStr = message; this.parent = parent; LoadContent(); }
public static PanelHistory createReference(Game game, CompoundGameComponent parent) { if (panelInfo == null) { panelInfo = new PanelHistory(game, parent); } return(panelInfo); }
//<Singleton Pattern> protected PanelHistory(Game game, CompoundGameComponent parent) : base(game, parent, "Panels\\SideHandle2", "Panels\\CompletePane2", 170 /*height*/) { lastEvents = new Queue <Message>(); font = Game.Content.Load <SpriteFont>("Fonts/InfoFontSmall"); curSpriteBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch)); linesNum = 0; }
public CompoundGameComponent(Game game, CompoundGameComponent parent) : base(game) //tree-structure { subComponents = new List <GameComponent>(); this.parent = parent; if (parent != null) { parent.SubComponents.Add(this); //attach this node to the tree } }
public PlayerNamePanel( Game game, CompoundGameComponent parent, int xSource, int ySource, int width, int height, int xDestination, int yDestination, string message, string defaultTextboxText) : base(game, xSource, ySource, width, height, xDestination, yDestination) { this.msgStr = message; this.parent = parent; this.defaultTextboxText = defaultTextboxText; LoadContent(); }
public Chessboard getChessboard(CompoundGameComponent parent) //factory method h3h3h3 { if (chessboard == null) { chessboard = new Chessboard(game, parent, checkers, models, chessboardTexture); if (game.Services.GetService(typeof(Chessboard)) != null) { game.Services.RemoveService(typeof(Chessboard)); } game.Services.AddService(typeof(Chessboard), chessboard); } return(chessboard); }
public TimerPanelNothing(Game game, CompoundGameComponent parent, int xSource, int ySource, int width, int height, int xDestination, int yDestination, string message ) : base( game, parent, xSource, ySource, width, height, xDestination, yDestination, message) { LoadContent(); }
public Chessboard(Game game, CompoundGameComponent parent, Checker[, ,] checkers, ChessModel[] models, AbstractBorderTexture[,] chessboardTexture) : base(game, parent) { cam = (GameCamera)game.Services.GetService(typeof(BasicCamera)); this.checkers = checkers; this.models = models; this.chessboardTexture = chessboardTexture; spacingValue = models[0].PrefferedModelHeight; currentLevel = 8; LoadContent(); //SETTING ALPHA //Game.GraphicsDevice.RenderState.SourceBlend = Blend.SourceAlpha; // source rgb * source alpha //Game.GraphicsDevice.RenderState.AlphaSourceBlend = Blend.One; // don't modify source alpha //Game.GraphicsDevice.RenderState.DestinationBlend = Blend.InverseSourceAlpha; // dest rgb * (255 - source alpha) //Game.GraphicsDevice.RenderState.AlphaDestinationBlend = Blend.InverseSourceAlpha; // dest alpha * (255 - source alpha) //Game.GraphicsDevice.RenderState.BlendFunction = BlendFunction.Add; // add source and dest results }
public ToggleMenuPanel( Game game, CompoundGameComponent parent, int xSource, int ySource, int width, int height, int xDestination, int yDestination, string message, string option1, string option2 ) : base(game, xSource, ySource, width, height, xDestination, yDestination) { this.msgStr = message; this.parent = parent; this.option1Str = option1; this.option2Str = option2; LoadContent(); }
public TimerPanelOneSubPanel(Game game, CompoundGameComponent parent, int xSource, int ySource, int width, int height, int xDestination, int yDestination, string message, string explanation, string subExplanation, string units, int maxInt ) : base(game, xSource, ySource, width, height, xDestination, yDestination) { this.msgStr = message; this.explanationStr = explanation; this.subExplanationStr = subExplanation; this.unitsStr = units; this.maxInt = maxInt; this.parent = parent; LoadContent(); }
public TimerPanelTwoSubPanels( Game game, CompoundGameComponent parent, int xSource, int ySource, int width, int height, int xDestination, int yDestination, string message, string explanation, string subExplanation1, string units1, string subExplanation2, string units2, int maxInt1, int maxInt2 ) : base(game, parent, xSource, ySource, width, height, xDestination, yDestination, message, explanation, subExplanation1, units1, maxInt1) { this.subExplanation2str = subExplanation2; this.units2str = units2; this.maxInt2 = maxInt2; LoadContent1(); }
public PanelTime(Game game, CompoundGameComponent parent, AbstractTimeScheme timeScheme) : base(game, parent, "Panels\\SideHandle", "Panels\\CompletePane", 10) { this.time = timeScheme; time.Start(); LoadContent(); }
public Panel2D(Game game, CompoundGameComponent parent) : base(game, parent, "Panels\\SideHandle3", "Panels\\CompletePane3", 330) { LoadContent(); }
public PanelPause(Game game, CompoundGameComponent parent) : base(game, parent) { LoadContent(); }