Kinoko
A reimplementation of Mario Kart Wii's physics engine in C++
Toggle main menu visibility
Loading...
Searching...
No Matches
KSystem.hh
1
#pragma once
2
3
#include <
Common.hh
>
4
5
#include "host/Context.hh"
6
7
namespace
Kinoko {
8
10
class
KSystem
:
EGG::Disposer
{
11
friend
class
Context;
12
13
public
:
14
virtual
~KSystem
() {}
15
17
virtual
void
init
() = 0;
18
20
virtual
void
calc
() = 0;
21
24
virtual
bool
run
() = 0;
25
30
virtual
void
parseOptions
(
int
argc,
char
**argv) = 0;
31
32
protected
:
33
static
KSystem
*s_instance;
34
};
35
36
}
// namespace Kinoko
Common.hh
This header houses common data types such as our integral types and enums.
Kinoko::EGG::Disposer
An interface for ensuring certain structures and classes are destroyed with the heap.
Definition
Disposer.hh:11
Kinoko::KSystem
Base interface for a Kinoko system.
Definition
KSystem.hh:10
Kinoko::KSystem::init
virtual void init()=0
Initializes the system.
Kinoko::KSystem::run
virtual bool run()=0
Executes a run.
Kinoko::KSystem::parseOptions
virtual void parseOptions(int argc, char **argv)=0
Parses non-generic command line options.
Kinoko::KSystem::calc
virtual void calc()=0
Executes a frame.
host
KSystem.hh
Made by
Malleo
. Logo by
vabold
. Website generated by
Doxygen
1.17.0