ConceptCreator/src/app/game-model/gamesystems/State.ts
Sebastian Böckelmann aada044e08
Some checks failed
E2E Testing / test (push) Failing after 1m25s
Implement ProductStateCreation
2024-02-10 17:07:24 +01:00

28 lines
541 B
TypeScript

import {Transition} from "./Transition";
export abstract class State<T extends Transition<any>> {
incomingTransitions: T[] =[];
outgoingTransitions: T[] =[];
initial: boolean = false;
addIncomingTransition(transition: T) {
this.incomingTransitions.push(transition);
}
addOutgoingTransition(transition: T) {
this.outgoingTransitions.push(transition);
}
removeIncomingTransition(transition: T) {
}
removeOutgoingTransition(transition: T) {
}
abstract equals(state: State<Transition<any>>): boolean;
}