This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
LaptopSimulator2015/Base/Minigame.cs

101 lines
3.9 KiB
C#
Raw Normal View History

using Base;
using System;
new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LaptopSimulator2015
{
public interface Minigame
new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
{
2019-09-19 18:51:31 +02:00
/// <summary>
/// The minigames displayed name, found in installers title and tooltips
/// </summary>
string name { get; }
2019-09-19 18:51:31 +02:00
/// <summary>
/// The minigames icon, found in installers and on desktop
/// </summary>
Image icon { get; }
2019-09-19 18:51:31 +02:00
/// <summary>
2019-09-29 11:23:07 +02:00
/// Added to credits, to be used for crediting authours of used icons etc
/// </summary>
string[] credits { get; }
/// <summary>
2019-09-19 18:51:31 +02:00
/// Level on which the Minigame becomes visible
/// </summary>
int availableAfter { get; }
/// <summary>
/// Defines the delay between frames
/// </summary>
new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
int gameClock { get; }
2019-09-19 18:51:31 +02:00
/// <summary>
2019-10-05 17:49:56 +02:00
/// Color to be painted to the Background before calling the draw method
/// </summary>
Color backColor { get; }
/// <summary>
/// In what quality to draw the frames
/// </summary>
bool isLowQuality { get; }
/// <summary>
2019-09-19 18:51:31 +02:00
/// DO NOT CHANGE! INTERNAL USE ONLY!
/// </summary>
new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
Panel desktopIcon { get; set; }
2019-09-19 18:51:31 +02:00
/// <summary>
/// Called before each time before gameTick, to be used for resetting/initializing variables
/// </summary>
/// <param name="g">A temporary Graphics object, should not be used</param>
/// <param name="minigamePanel">The panel on which the minigame is displayed</param>
/// <param name="minigameTimer">The timer used for scheduling frames</param>
void initGame(Panel minigamePanel, Timer minigameTimer);
2019-09-19 18:51:31 +02:00
/// <summary>
/// Called physics frame
2019-09-19 18:51:31 +02:00
/// </summary>
/// <param name="g">Graphics object, to be used for drawing the scene</param>
/// <param name="minigamePanel">The panel on which the minigame is displayed</param>
/// <param name="minigameTimer">The timer used for scheduling frames</param>
/// <param name="minigameTime">The amount of total displayed frames</param>
void gameTick(GraphicsWrapper g, Panel minigamePanel, Timer minigameTimer, uint minigameTime);
/// <summary>
/// Called graphics frame
/// </summary>
/// <param name="g">Graphics object, to be used for drawing the scene</param>
/// <param name="minigamePanel">The panel on which the minigame is displayed</param>
/// <param name="minigameTimer">The timer used for scheduling frames</param>
/// <param name="minigameTime">The amount of total displayed frames</param>
void draw(GraphicsWrapper g, Panel minigamePanel, Timer minigameTimer, uint minigameTime);
new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
}
public interface Level : Minigame
{
2019-09-19 18:51:31 +02:00
/// <summary>
/// Description shown on the installers first page
/// </summary>
string installerText { get; }
2019-09-19 18:51:31 +02:00
/// <summary>
/// Amount of seconds the minigame is to be played times ten
/// </summary>
int installerProgressSteps { get; }
}
public interface Goal : Minigame
{
2019-09-19 18:51:31 +02:00
/// <summary>
/// The level on which the Goal is reached
/// </summary>
int playableAfter { get; }
2019-09-19 18:51:31 +02:00
/// <summary>
/// The text displayed after the Minigame becomes visible
/// </summary>
string[] availableText { get; }
2019-09-19 18:51:31 +02:00
/// <summary>
/// The text displayed after finding out about the fact the Goal is not reached
/// </summary>
string[] incompleteText { get; }
2019-09-19 18:51:31 +02:00
/// <summary>
/// The text displayed after Goal is reached (NOT after the goals minigame is played)
/// </summary>
string[] completeText { get; }
}
new file: .gitignore new file: 1/1.cs new file: 1/1.csproj new file: 1/Properties/AssemblyInfo.cs new file: Base/Base.csproj new file: Base/Input.cs new file: Base/Level.cs new file: Base/Properties/AssemblyInfo.cs new file: LaptopSimulator2015.sln new file: LaptopSimulator2015/App.config new file: LaptopSimulator2015/CaptchaGenerator.cs new file: LaptopSimulator2015/FakeDesktop.Designer.cs new file: LaptopSimulator2015/FakeDesktop.cs new file: LaptopSimulator2015/FakeDesktop.resx new file: LaptopSimulator2015/LaptopSimulator2015.csproj new file: LaptopSimulator2015/Program.cs new file: LaptopSimulator2015/Properties/AssemblyInfo.cs new file: LaptopSimulator2015/Properties/Resources.Designer.cs new file: LaptopSimulator2015/Properties/Resources.resx new file: LaptopSimulator2015/Properties/Settings.Designer.cs new file: LaptopSimulator2015/Properties/Settings.settings new file: LaptopSimulator2015/Resources/fans.wav new file: LaptopSimulator2015/Resources/pcoptimizerpro.jpeg new file: LaptopSimulator2015/Settings.cs new file: LaptopSimulator2015/strings.Designer.cs new file: LaptopSimulator2015/strings.de.Designer.cs new file: LaptopSimulator2015/strings.de.resx new file: LaptopSimulator2015/strings.resx new file: README.md new file: SIT/App.config new file: SIT/MainForm.Designer.cs new file: SIT/MainForm.cs new file: SIT/MainForm.resx new file: SIT/Program.cs new file: SIT/Properties/AssemblyInfo.cs new file: SIT/Properties/Resources.Designer.cs new file: SIT/Properties/Resources.resx new file: SIT/Properties/Settings.Designer.cs new file: SIT/Properties/Settings.settings new file: SIT/SIT.csproj new file: ToDo.txt new file: make.bat
2019-07-23 14:54:05 +02:00
}