SBSPSS/source/player/pmnet.h

87 lines
1.7 KiB
C
Raw Normal View History

2001-03-31 19:39:17 +02:00
/*=========================================================================
pmnet.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2001 Climax Development Ltd
===========================================================================*/
#ifndef __PLAYER_PMNET_H__
#define __PLAYER_PMNET_H__
/*----------------------------------------------------------------------
Includes
-------- */
#ifndef __PLAYER_PMODES_H__
#include "player\pmodes.h"
#endif
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
class CPlayerModeNet : public CPlayerModeBase
{
public:
virtual void enter();
virtual void think();
2001-03-31 20:22:38 +02:00
virtual void renderModeUi();
2001-03-31 19:39:17 +02:00
virtual void setAnimNo(int _animNo);
virtual void setAnimFrame(int _animFrame);
2001-06-21 21:11:35 +02:00
protected:
virtual class CPlayerState **getStateTable();
2001-03-31 19:39:17 +02:00
private:
typedef enum
{
2001-05-11 02:36:17 +02:00
NET_STATE__INERT,
NET_STATE__CATCHING,
2001-04-06 23:25:18 +02:00
NET_STATE__JUST_CAUGHT_SOMETHING,
2001-05-11 02:36:17 +02:00
NET_STATE__LAUNCHING,
2001-04-06 23:25:18 +02:00
NET_STATE__JUST_LAUNCHED_SOMETHING,
2001-03-31 19:39:17 +02:00
} NetState;
int canSwingNetFromThisState();
int m_savedAnimNo,m_savedAnimFrame;
int m_netFrame;
NetState m_netState;
2001-05-01 01:01:55 +02:00
int m_netSin;
2001-03-31 19:39:17 +02:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __PLAYER_PMNET_H__ */
/*===========================================================================
end */