/* 
 * Triplane Classic - a side-scrolling dogfighting game.
 * Copyright (C) 1996,1997,2009  Dodekaedron Software Creations Oy
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * tjt@users.sourceforge.net
 */

#ifndef WUTIL_H
#define WUTIL_H

#include <stdlib.h>

void setwrandom(int seed);
int wrandom(int limit);
void wrandom_sanity_check(void);

void *walloc(size_t size);
void wfree(void *);

void wtoggle(int *);

void init_trigs(void);
int arcsinit(int luku);
void calculate_difference(int x1, int y1, int x2, int y2, int *distance, int *angle = NULL);
int squareroot(int number);

extern int cosinit[361];
extern int sinit[361];

#endif
