You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegames/kue/utility.h

32 lines
818 B
C++

#ifndef _UTILITY_H
#define _UTILITY_H
#include "texture.h"
// Helper functions for rules implementations
namespace KueUtility {
enum rackType {None, Triangle, Diamond};
// Regulation table layout
void layoutTable();
// Regulation pocket layout
void layoutPockets();
// Lays out the billiard in either 8-ball or 9-ball style, or just
// place the cue ball (with rack_type = None)
// Billiard 0 becomes the cue ball, and the rest of the billiards
// are indexed according to their face number
void layoutBilliards(rackType rack_type = None);
// The texture for a given billiard index
KueTexture textureForBilliard(unsigned int index);
// Regulation radius of billiards, in meters
double defaultBilliardRadius();
// Regulation radius of pockets, in meters
double defaultPocketRadius();
};
#endif