aboutsummaryrefslogtreecommitdiff
path: root/akos.h
diff options
context:
space:
mode:
authorMax Horn2002-07-07 19:31:51 +0000
committerMax Horn2002-07-07 19:31:51 +0000
commitcb86e115836006b017e27ca9b2b4158cbe815269 (patch)
tree9714b9ad78f3607971da99fbc756f80ec50cb760 /akos.h
parent7ed45a6ef9f7c243274cf26de64195966413f2e4 (diff)
downloadscummvm-rg350-cb86e115836006b017e27ca9b2b4158cbe815269.tar.gz
scummvm-rg350-cb86e115836006b017e27ca9b2b4158cbe815269.tar.bz2
scummvm-rg350-cb86e115836006b017e27ca9b2b4158cbe815269.zip
indent run
svn-id: r4478
Diffstat (limited to 'akos.h')
-rw-r--r--akos.h120
1 files changed, 60 insertions, 60 deletions
diff --git a/akos.h b/akos.h
index 78bbcb9709..d24f4b48bc 100644
--- a/akos.h
+++ b/akos.h
@@ -23,8 +23,8 @@
#if !defined(__GNUC__)
- #pragma START_PACK_STRUCTS
-#endif
+#pragma START_PACK_STRUCTS
+#endif
struct CostumeData;
@@ -43,52 +43,52 @@ struct AkosOffset {
} GCC_PACK;
struct AkosCI {
- uint16 width,height;
+ uint16 width, height;
int16 rel_x, rel_y;
int16 move_x, move_y;
} GCC_PACK;
#if !defined(__GNUC__)
- #pragma END_PACK_STRUCTS
-#endif
+#pragma END_PACK_STRUCTS
+#endif
struct AkosRenderer {
//protected:
CostumeData *cd;
- int x,y; /* where to draw costume */
- byte scale_x, scale_y; /* scaling */
- byte clipping; /* clip mask */
+ int x, y; /* where to draw costume */
+ byte scale_x, scale_y; /* scaling */
+ byte clipping; /* clip mask */
bool charsetmask;
byte shadow_mode;
uint16 codec;
- bool mirror; /* draw actor mirrored */
+ bool mirror; /* draw actor mirrored */
byte dirty_id;
byte *outptr;
uint outwidth, outheight;
-
+
/* pointer to various parts of the costume resource */
byte *akos;
AkosHeader *akhd;
-
+
/* current move offset */
int move_x, move_y;
/* movement of cel to decode */
int move_x_cur, move_y_cur;
/* width and height of cel to decode */
- int width,height;
-
+ int width, height;
+
byte *srcptr;
byte *shadow_table;
struct {
/* codec stuff */
const byte *scaletable;
- byte mask,shl;
+ byte mask, shl;
bool doContinue;
byte repcolor;
byte replen;
int scaleXstep;
- int x,y;
+ int x, y;
int tmp_x, tmp_y;
int y_pitch;
int skip_width;
@@ -99,24 +99,25 @@ struct AkosRenderer {
/* put less used stuff at the bottom to optimize opcodes */
int draw_top, draw_bottom;
- byte *akpl,*akci,*aksq;
+ byte *akpl, *akci, *aksq;
AkosOffset *akof;
byte *akcd;
byte palette[256];
protected:
- Scumm *_vm;
+ Scumm *_vm;
public:
// Constructor, sets all data to 0
- AkosRenderer(Scumm *scumm) { memset(this, 0, sizeof(AkosRenderer)); _vm = scumm; }
-
- bool drawCostume();
+ AkosRenderer(Scumm *scumm) {
+ memset(this, 0, sizeof(AkosRenderer));
+ _vm = scumm;
+ } bool drawCostume();
void setPalette(byte *palette);
void setCostume(int costume);
- void setFacing(Actor *a);
+ void setFacing(Actor * a);
bool drawCostumeChannel(int chan);
void codec1();
void codec5();
@@ -126,45 +127,44 @@ public:
void c1_spec3();
};
-enum AkosOpcodes{
- AKC_Return = 0xC001,
- AKC_SetVar = 0xC010,
- AKC_CmdQue3 = 0xC015,
- AKC_ComplexChan = 0xC020,
- AKC_Jump = 0xC030,
- AKC_JumpIfSet = 0xC031,
- AKC_AddVar = 0xC040,
- AKC_Ignore = 0xC050,
- AKC_IncVar = 0xC060,
- AKC_CmdQue3Quick = 0xC061,
+enum AkosOpcodes {
+ AKC_Return = 0xC001,
+ AKC_SetVar = 0xC010,
+ AKC_CmdQue3 = 0xC015,
+ AKC_ComplexChan = 0xC020,
+ AKC_Jump = 0xC030,
+ AKC_JumpIfSet = 0xC031,
+ AKC_AddVar = 0xC040,
+ AKC_Ignore = 0xC050,
+ AKC_IncVar = 0xC060,
+ AKC_CmdQue3Quick = 0xC061,
AKC_SkipStart = 0xC070,
- AKC_SkipE = 0xC070,
- AKC_SkipNE = 0xC071,
- AKC_SkipL = 0xC072,
- AKC_SkipLE = 0xC073,
- AKC_SkipG = 0xC074,
- AKC_SkipGE = 0xC075,
- AKC_StartAnim = 0xC080,
- AKC_StartVarAnim = 0xC081,
- AKC_Random = 0xC082,
- AKC_SetActorClip = 0xC083,
- AKC_StartAnimInActor = 0xC084,
- AKC_SetVarInActor = 0xC085,
- AKC_HideActor = 0xC086,
- AKC_SetDrawOffs = 0xC087,
- AKC_JumpTable = 0xC088,
- AKC_SoundStuff = 0xC089,
- AKC_Flip = 0xC08A,
- AKC_Cmd3 = 0xC08B,
- AKC_Ignore3 = 0xC08C,
- AKC_Ignore2 = 0xC08D,
+ AKC_SkipE = 0xC070,
+ AKC_SkipNE = 0xC071,
+ AKC_SkipL = 0xC072,
+ AKC_SkipLE = 0xC073,
+ AKC_SkipG = 0xC074,
+ AKC_SkipGE = 0xC075,
+ AKC_StartAnim = 0xC080,
+ AKC_StartVarAnim = 0xC081,
+ AKC_Random = 0xC082,
+ AKC_SetActorClip = 0xC083,
+ AKC_StartAnimInActor = 0xC084,
+ AKC_SetVarInActor = 0xC085,
+ AKC_HideActor = 0xC086,
+ AKC_SetDrawOffs = 0xC087,
+ AKC_JumpTable = 0xC088,
+ AKC_SoundStuff = 0xC089,
+ AKC_Flip = 0xC08A,
+ AKC_Cmd3 = 0xC08B,
+ AKC_Ignore3 = 0xC08C,
+ AKC_Ignore2 = 0xC08D,
AKC_JumpStart = 0xC090,
- AKC_JumpE = 0xC090,
- AKC_JumpNE = 0xC091,
- AKC_JumpL = 0xC092,
- AKC_JumpLE = 0xC093,
- AKC_JumpG = 0xC094,
- AKC_JumpGE = 0xC095,
- AKC_ClearFlag = 0xC09F
+ AKC_JumpE = 0xC090,
+ AKC_JumpNE = 0xC091,
+ AKC_JumpL = 0xC092,
+ AKC_JumpLE = 0xC093,
+ AKC_JumpG = 0xC094,
+ AKC_JumpGE = 0xC095,
+ AKC_ClearFlag = 0xC09F
};
-