-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscope.h
More file actions
36 lines (29 loc) · 788 Bytes
/
Copy pathscope.h
File metadata and controls
36 lines (29 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef SCOPE_H
#define SCOPE_H 1
#include <iostream>
#include <math.h>
#include <allegro.h>
#include "animation.h"
#include "image.h"
#include "misc.h"
struct SCOPE {
DATAFILE* images; // Images for drawing the scope
DATAFILE* powergauge;
DATAFILE* animation;
int pivot_x; // Pivot point
int pivot_y;
float weapon_power;
int frame_count; // Number of images in datafile
int current_frame; // The frame currently being drawn
float angle; // Scope angle
bool active; // Is the scope active?!
SCOPE();
int process(); // Think about stuff
void draw(BITMAP*, int, int, int); // Draw our thoughts
void show(); // Hide the scope
void hide(); // Show the scope
private:
int appear; // Counter used for show()
int vanish; // Counter used for hide()
};
#endif