22 #ifndef BLADERUNNER_SLICE_ANIMATIONS_H 23 #define BLADERUNNER_SLICE_ANIMATIONS_H 25 #include "common/array.h" 26 #include "common/file.h" 27 #include "common/str.h" 28 #include "common/types.h" 30 #include "bladerunner/color.h" 31 #include "bladerunner/vector.h" 36 class BladeRunnerEngine;
62 Page() : _data(
nullptr), _lastAccess(0) {}
72 PageFile(
SliceAnimations *sliceAnimations) : _sliceAnimations(sliceAnimations), _fileNumber(-1) {}
75 void close(int8 fileIdx);
76 void *loadPage(uint32 page);
90 PageFile _coreAnimPageFile;
91 PageFile _framesPageFile;
96 , _coreAnimPageFile(
this)
97 , _framesPageFile(
this)
101 , _paletteCount(0) {}
107 bool openFrames(
int fileNumber);
109 Palette &getPalette(
int i) {
return _palettes[i]; };
110 void *getFramePtr(uint32 animation, uint32 frame);
112 int getFrameCount(
int animation)
const {
return _animations[animation].frameCount; }
113 float getFPS(
int animation)
const {
return _animations[animation].fps; }
115 Vector3 getPositionChange(
int animation)
const;
116 float getFacingChange(
int animation)
const;
Definition: slice_renderer.h:45
Definition: bladerunner.h:113
Definition: slice_animations.h:39