Racing Web
Result.h
Go to the documentation of this file.
1// Copyright (c) 2022 Cameron King.
2// Dual licensed under MIT and GPLv2 with OpenSSL exception.
3// See LICENSE for details.
5
6#ifndef RACINGWEB_SRC_RESULT_H_
7#define RACINGWEB_SRC_RESULT_H_
8
9#include "src/Car.h"
10
12struct Result {
18 Result(const Car &car, const int place) {
19 this->car = &car;
20 this->place = place;
21 }
23 const Car *car;
25 int place;
26};
27
28#endif // RACINGWEB_SRC_RESULT_H_
a race participant
Definition: Car.h:13
a single finish line result
Definition: Result.h:12
Result(const Car &car, const int place)
create a single finish line result
Definition: Result.h:18
const Car * car
a pointer to the car in question
Definition: Result.h:23
int place
what place did the car come in for this heat
Definition: Result.h:25