Castle Battle  1.0
Classes | Variables
cannon.h File Reference
#include <irrlicht.h>
#include "ball.h"
#include "keyboard.h"
#include "camera.h"

Go to the source code of this file.

Classes

class  Cannon
 Cannon handles the cannon object. More...
 

Variables

const f32 INCLINATE_FACTOR = 0.1f
 
const f32 MAX_ANGLE_BOTTOM = 5.f
 
const f32 MAX_ANGLE_TOP = 45.f
 
const f32 MAX_ANGLE_LEFT = -20.f
 
const f32 MAX_ANGLE_RIGHT = 20.f
 
const f32 MAX_CANNON_FORCE = 50.f
 
const f32 CANNON_POWER = 50.f
 
const f32 BARREL_RADIUS = 0.6f
 

Variable Documentation

◆ BARREL_RADIUS

const f32 BARREL_RADIUS = 0.6f

The radius of the barrel

◆ CANNON_POWER

const f32 CANNON_POWER = 50.f

Cannon power

◆ INCLINATE_FACTOR

const f32 INCLINATE_FACTOR = 0.1f

Speed of barrel of the cannon

◆ MAX_ANGLE_BOTTOM

const f32 MAX_ANGLE_BOTTOM = 5.f

◆ MAX_ANGLE_LEFT

const f32 MAX_ANGLE_LEFT = -20.f

◆ MAX_ANGLE_RIGHT

const f32 MAX_ANGLE_RIGHT = 20.f

◆ MAX_ANGLE_TOP

const f32 MAX_ANGLE_TOP = 45.f

◆ MAX_CANNON_FORCE

const f32 MAX_CANNON_FORCE = 50.f

Max cannon power