Skip to content

Instantly share code, notes, and snippets.

View bitbrain's full-sized avatar
⚒️
Forging an RPG

miguel bitbrain

⚒️
Forging an RPG
View GitHub Profile
/* OpenGL module
* Assessment 5
*
* author: Miguel Gonzalez <m.gonzalez@student.fontys.nl>
*/
#include <GL/glut.h>
int number = 12;
@bitbrain
bitbrain / assessment.cpp
Last active September 15, 2015 22:52
Leider gehen materials nicht..
/* OpenGL module
* Assessment 4
*
* author: Miguel Gonzalez <m.gonzalez@student.fontys.nl>
*/
#include <GL/glut.h>
GLint CAM_POS[] = { 3.0, 3.0, 3.0 };
GLfloat mat[4];
@bitbrain
bitbrain / Calc.java
Last active September 4, 2015 18:16
float[] euroKurse = {
0.93f, // Wechselkurs, Währung 1
4.49f, // Wechselkurs, Währung 2
1.29f, // Wechselkurs, Währung 3
3.49f // Wechselkurs, Währung 4
};
String[] kursNamen = {
"Yen", // Name, Währung 1
"Dollar", // Name, Währung 2
/// <summary>
/// Method that switfly finds the best path from start to end. Doesn't reverse outcome
/// </summary>
/// <returns>The end breadcrump where each .next is a step back)</returns>
private static BreadCrumb FindPathReversed(World world, Point3D start, Point3D end)
{
MinHeap<BreadCrumb> openList = new MinHeap<BreadCrumb>(256);
BreadCrumb[, ,] brWorld = new BreadCrumb[world.Right, world.Top, world.Back];
BreadCrumb node;
Point3D tmp;
public enum PostConstructModule implements Module, TypeListener {
INSTANCE;
/**
* {@inheritDoc}
*
* @see com.google.inject.Module#configure(com.google.inject.Binder)
*/
@Override
package de.bitbrain.guice;
import com.google.inject.AbstractModule;
import com.google.inject.matcher.Matchers;
import com.google.inject.name.Names;
public class FooBarModule extends AbstractModule {
@Override
protected void configure() {
package de.bitbrain.guice;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import com.google.inject.ScopeAnnotation;
package de.bitbrain.guice;
import java.util.HashMap;
import java.util.Map;
import com.google.inject.Key;
import com.google.inject.Provider;
import com.google.inject.Scope;
public class StateScope implements Scope {
package de.bitbrain.guice;
import com.google.inject.Inject;
public abstract class State {
@Inject
private Renderer renderer;
package de.bitbrain.guice;
import java.util.HashMap;
import java.util.Map;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.name.Named;
public class StateHandler {