Genetic generation of cars in a 2D environment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 

27 lines
421 B

//
// Path.h
// OSXGLEssentials
//
// Created by Joshua Moerman on 10/03/14.
//
//
#pragma once
#include <Box2D/Box2D.h>
#include <memory>
struct PathBuilder {
virtual ~PathBuilder() = default;
virtual void buildUpTo(float x) = 0;
};
// Has a path builder object
struct Path {
Path(b2World & world);
void buildUpTo(float x);
private:
b2World & world;
std::unique_ptr<PathBuilder> impl;
};