#ifndef ATOMS_H
#define ATOMS_H

#include "vector.h"
#include "render.h"
#include "blobs.h"

#define MAXATOMS 1024
#define MAXBONDS 4096
#define MAXGROUPS 256

typedef struct atom
{
    vector pos;
    vector vel;
    vector acl;
    colorARGB col;
    int size;
    float mass;
    int radius;
    int grp;
    int nbonds;
    bool exists;
} atom;

typedef struct bond
{
    int atom1, atom2;
    float balance;
    bool broken;
} bond;

typedef struct atomgroup
{
    int atom_space;
    int break_space;
    int deform_space;
}atomgroup;

void testcreateagroup();
void SetAtom(atom *a, int group, int size, float mass, float px, float py, float vx, float vy);
void atom2blob(atom *a, blob *b);

#endif
