SBSPSS/source/player/pmdead.h

93 lines
1.8 KiB
C
Raw Normal View History

2001-03-25 23:09:06 +02:00
/*=========================================================================
pmdead.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLAYER_PMDEAD_H__
#define __PLAYER_PMDEAD_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __PLAYER_PMODES_H__
#include "player\pmodes.h"
#endif
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CPlayerModeDead : public CPlayerMode
{
2001-03-25 23:33:20 +02:00
public:
virtual void enter();
virtual void think();
2001-04-05 18:26:17 +02:00
// virtual void render(DVECTOR *_pos);
2001-03-25 23:33:20 +02:00
private:
// Player can press ACTION to respawn after death
enum
{
2001-08-14 20:36:21 +02:00
DEATH_DELAY=1*60, // Can't force a respawn for this long
DEATH_TIMEOUT=4*60, // SB respawns automatically after this long
2001-08-15 22:12:32 +02:00
BOUNCE_INITIALX=30,
BOUNCE_MOVEX=2,
BOUNCE_INITIALY=-20,
BOUNCE_MAXY=50,
BOUNCE_MOVEY=1,
BOUNCE_VELOCITY_SHIFT=2,
2001-03-25 23:33:20 +02:00
};
2001-04-19 16:33:27 +02:00
2001-08-15 22:12:32 +02:00
enum
{
FALL_TO_DEATH,
BOUNCE_OFF_SCREEN,
STAY_STILL,
};
2001-04-19 16:33:27 +02:00
2001-08-15 22:12:32 +02:00
int m_deadTime;
int m_deathAnim;
int m_deathMovementType;
2001-07-24 17:25:54 +02:00
int m_killed;
2001-08-15 22:12:32 +02:00
DVECTOR m_bounceVelocity;
2001-07-24 17:25:54 +02:00
2001-07-30 17:08:29 +02:00
2001-03-25 23:09:06 +02:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __PLAYER_PMDEAD_H__ */
/*===========================================================================
end */