mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2025-02-05 20:16:25 +00:00
CCop::Victorious
This commit is contained in:
parent
7a6a378e6a
commit
a2252847db
7
cop.cpp
7
cop.cpp
@ -1,5 +1,6 @@
|
||||
#include "cop.h"
|
||||
#include "validate.h"
|
||||
#include "ps2lowsfx.h"
|
||||
|
||||
// @NotOk
|
||||
// globals
|
||||
@ -46,6 +47,12 @@ void Cop_CreateCop(const unsigned int *stack, unsigned int *result)
|
||||
*result = reinterpret_cast<unsigned int>(new CCop(v2, v3));
|
||||
}
|
||||
|
||||
// @Ok
|
||||
void CCop::Victorious(void)
|
||||
{
|
||||
SFX_PlayPos(0x8024, &this->mPos, 0);
|
||||
}
|
||||
|
||||
void validate_CCop(void){
|
||||
VALIDATE_SIZE(CCop, 0x394);
|
||||
VALIDATE(CCop, field_340, 0x340);
|
||||
|
6
cop.h
6
cop.h
@ -1,5 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef COP_H
|
||||
#define COP_H
|
||||
|
||||
#include "export.h"
|
||||
#include "baddy.h"
|
||||
|
||||
@ -8,6 +11,8 @@ class CCop : public CBaddy {
|
||||
|
||||
public:
|
||||
EXPORT CCop(int*, int);
|
||||
EXPORT void Victorious(void);
|
||||
|
||||
unsigned char copStartPad[0x1C];
|
||||
|
||||
int field_340;
|
||||
@ -26,3 +31,4 @@ public:
|
||||
|
||||
void validate_CCop(void);
|
||||
EXPORT void Cop_CreateCop(const unsigned int *stack, unsigned int *result);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user