forked from Tapsa/AGE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSprites.h
More file actions
35 lines (30 loc) · 894 Bytes
/
Sprites.h
File metadata and controls
35 lines (30 loc) · 894 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
#pragma once
#include <map>
#include <wx/bitmap.h>
#include <SFML/Audio/Sound.hpp>
#include <SFML/Audio/SoundBuffer.hpp>
#include "genie/resource/SpriteFile.h"
const float PI2A = 6.28319f, PI2 = 6.2832f;
class AGE_SLP
{
public:
int32_t slpID = -1, frameID, datID = -1, lastSlpID = -2, startframe;
uint16_t angles, fpa, frames, mirror;
wxString filename = "";
genie::SpriteFilePtr slp;
wxBitmap bitmap;
sf::SoundBuffer buffers[4];// Actual data
sf::Sound sounds[4];// To play data
int16_t xpos = 0, ypos = 0, xdelta = 0, ydelta = 0, delays[4] = { 0, -1, -1, -1 };
bool flip = false, is32 = false;
float beginbearing = 0.f, endbearing = PI2A;
virtual void reload(void);
};
class AGE_SLPs : public AGE_SLP
{
public:
std::multimap<int, AGE_SLP> deltas;
bool pause = false;
void reload(void) override;
size_t getMemoryInUse(void);
};