/*
 * Constants.h
 *
 *  Created on: Feb 25, 2011
 *      Author: cpresser
 */

#ifndef _CONSTANTS_H_
#define _CONSTANTS_H_

const Ogre::uint32 BALL_QUERY_FLAG = 1;
const Ogre::uint32 SIDE_QUERY_FLAG = 2;
const Ogre::uint32 PADDLE_QUERY_FLAG = 4;
const Ogre::uint32 BLOCK_QUERY_FLAG = 8;
const Ogre::uint32 FRONT_QUERY_FLAG = 16;
const Ogre::uint32 END_QUERY_FLAG = 32;

const Ogre::uint32 WALL_QUERY_FLAGS = SIDE_QUERY_FLAG | FRONT_QUERY_FLAG | END_QUERY_FLAG;
//const Ogre::uint32 _QUERY_FLAG = ;

/*
 * BASE SIZES
const int X_MAX = 150;
const int Y_MAX = 150;
const int LENGTH = 1000;
const int SPEED = 500;
const int PADDLE_SIZE = 50;
const int PADDLE_DEPTH = 5;
const int PADDLE_OFFSET = -30;//-50;
const int HALF_PADDLE = PADDLE_SIZE/2;//25;
const int BLOCK_SCALE = 40;//50;
const int HALF_BLOCK = BLOCK_SCALE/2;
const int BLOCK_GAP = 5;//10;
const int BALL_RADIUS = 10;
const int BALL_START_Z = -LENGTH/2;//PADDLE_OFFSET - BALL_RADIUS - BLOCK_GAP;
const int BRICK_GAP = 30;
const int INIT_SPEED = 400;
*/
const int SIZE_FACTOR = 1;
const int X_MAX = 150*SIZE_FACTOR;
const int Y_MAX = 150*SIZE_FACTOR;
const int LENGTH = 1000*SIZE_FACTOR;
const int SPEED = 500*SIZE_FACTOR;
const int PADDLE_SIZE = 50*SIZE_FACTOR;
const int PADDLE_DEPTH = 5*SIZE_FACTOR;
const int PADDLE_OFFSET = -30*SIZE_FACTOR;//-50;
const int HALF_PADDLE = PADDLE_SIZE/2;//25;
const int BLOCK_SCALE = 40*SIZE_FACTOR;//50;
const int HALF_BLOCK = BLOCK_SCALE/2;
const int BLOCK_GAP = 5*SIZE_FACTOR;//10;
const int BALL_RADIUS = 10*SIZE_FACTOR;
const int BALL_START_Z = -LENGTH/2;//PADDLE_OFFSET - BALL_RADIUS - BLOCK_GAP;
const int BRICK_GAP = 30*SIZE_FACTOR;
const int INIT_SPEED = 400*SIZE_FACTOR;
const int CAM1_POS = 400*SIZE_FACTOR;
const int CAM2_POS = 1400*SIZE_FACTOR; //1600*SIZE_FACTOR;

const Ogre::Real SETUP_PAUSE = 0.5;

const int BLOCK_BASE_SCORE = 100;
const int BALLS_START = 5;
const int BLOCK_LIMIT = 2;
const int BLOCK_LAYERS = 3;
const int BRICK_LIMIT = 1;
const int BRICK_LAYERS = 2;

const Ogre::String MATERIAL_STRINGS[] = {
                "CPresser/Cyan",
                "CPresser/Purple",
                "CPresser/Yellow",
                "CPresser/Blue",
                "CPresser/Green",
                "CPresser/Red",
        };
const int NUM_MATERIALS = 6;

#endif