project_files/frontlib/hwconsts.c
changeset 7479 c8c552ee3acb
parent 7314 6171f0bad318
child 7497 7e1d72fc03c7
equal deleted inserted replaced
7476:2fb781bbdd51 7479:c8c552ee3acb
    17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    18  */
    18  */
    19 
    19 
    20 #include "hwconsts.h"
    20 #include "hwconsts.h"
    21 
    21 
    22 const uint32_t flib_teamcolor_defaults[] = HW_TEAMCOLOR_ARRAY;
    22 const uint32_t flib_teamcolors[] = HW_TEAMCOLOR_ARRAY;
    23 const size_t flib_teamcolor_defaults_len = sizeof(flib_teamcolor_defaults)/sizeof(uint32_t)-1;
    23 const size_t flib_teamcolor_count = sizeof(flib_teamcolors)/sizeof(uint32_t)-1;
       
    24 
       
    25 
       
    26 uint32_t flib_get_teamcolor(int colorIndex) {
       
    27 	if(colorIndex>=0 && colorIndex < flib_teamcolor_count) {
       
    28 		return flib_teamcolors[colorIndex];
       
    29 	} else {
       
    30 		return 0;
       
    31 	}
       
    32 }
       
    33 
       
    34 int flib_get_teamcolor_count() {
       
    35 	return flib_teamcolor_count;
       
    36 }
       
    37 
       
    38 int flib_get_hedgehogs_per_team() {
       
    39 	return HEDGEHOGS_PER_TEAM;
       
    40 }
       
    41 
       
    42 int flib_get_weapons_count() {
       
    43 	return WEAPONS_COUNT;
       
    44 }