Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 519 Bytes
/*
* Copyright (c) 2012 Evgeny Proydakov <lord.tiran@gmail.com>
*/
#ifndef _COLOR_H_
#define _COLOR_H_
#include "defines.h"
#define OBJECT_NULL 0
#define OBJECT_RED 1
#define OBJECT_GREEN 2
#define COLOR_GREEN_OBJECT 4
#define COLOR_RED_OBJECT 10
int object_from_color(int color_value)
{
if(color_value == COLOR_GREEN_OBJECT)
return OBJECT_GREEN;
else if(color_value == COLOR_RED_OBJECT)
return OBJECT_RED;
else
return OBJECT_NULL;
}
#endif // _COLOR_H_