17 lines
225 B
C
17 lines
225 B
C
|
#include "pipe.h"
|
||
|
|
||
|
pipe* pipe_create(){
|
||
|
/* Allocate memory */
|
||
|
pipe* p = malloc(sizeof(pipe));
|
||
|
|
||
|
/* Set values */
|
||
|
p->pos_x = 0;
|
||
|
p->pos_y = 0;
|
||
|
p->height = PIPE_HEIGHT;
|
||
|
|
||
|
return p;
|
||
|
}
|
||
|
|
||
|
void pipe_destroy(pipe* p){
|
||
|
free(p);
|
||
|
}
|