From 5f5f1cd006a3ed2435743db0cc9e5e0952e84cb8 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Sun, 5 Feb 2023 23:35:36 -0800 Subject: v1 done, base game --- vector.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 vector.h (limited to 'vector.h') diff --git a/vector.h b/vector.h new file mode 100644 index 0000000..ea2ddcd --- /dev/null +++ b/vector.h @@ -0,0 +1,21 @@ +#ifndef VECTOR +#define VECTOR +typedef struct Vector { + int mx; + int my; +} vector_t; +vector_t init_vector(int mx, int my); +typedef struct VectorP { + vector_t* vectors; + int length; +} vectorp_t; +vectorp_t init_vectorp(vector_t* vectors, int length); +//removes a vector from vectorp +vectorp_t remove_vector(vectorp_t vectorp, int index); +vectorp_t remove_vectors(vectorp_t vectorp, int* indexes, int indexCount); +typedef struct VectorPP { + vectorp_t* vectorps; + int length; +} vectorpp_t; +vectorpp_t init_vectorpp(vectorp_t* vectorps, int length); +#endif -- cgit v1.3.1