SBSPSS/source/player/pmchop.h

90 lines
1.8 KiB
C
Raw Normal View History

2001-03-25 22:49:18 +02:00
/*=========================================================================
pmchop.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLAYER_PMCHOP_H__
#define __PLAYER_PMCHOP_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __PLAYER_PMODES_H__
#include "player\pmodes.h"
#endif
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CPlayerModeChop : public CPlayerModeBase
{
2001-03-27 22:29:02 +02:00
public:
virtual void enter();
virtual void think();
2001-06-27 21:50:35 +02:00
virtual void renderModeUi();
2001-03-27 22:29:02 +02:00
virtual void setAnimNo(int _animNo);
virtual void setAnimFrame(int _animFrame);
2001-04-12 20:48:33 +02:00
virtual ATTACK_STATE getAttackState();
2001-03-27 22:29:02 +02:00
2001-05-01 22:23:32 +02:00
virtual void setPlayerCollisionSize(int _x,int _y,int _w,int _h);
2001-03-27 22:29:02 +02:00
private:
2001-06-25 16:37:59 +02:00
enum
{
CHOP_ATTACK_START_FRAME=15,
CHOP_ATTACK_END_FRAME=21,
2001-08-02 18:19:08 +02:00
CHOP_TIMEOUT=20*60,
CHOP_FLASH_TIME=4*60,
2001-06-25 16:37:59 +02:00
};
2001-03-27 22:29:02 +02:00
int canAttackFromThisState();
int m_savedAnimNo,m_savedAnimFrame;
int m_chopFrame;
int m_chopping;
2001-06-27 21:50:35 +02:00
int m_timer;
2001-03-27 22:29:02 +02:00
2001-05-01 22:23:32 +02:00
int m_savedCSX,m_savedCSY,m_savedCSW,m_savedCSH;
2001-03-25 22:49:18 +02:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __PLAYER_PMCHOP_H__ */
/*===========================================================================
end */