SBSPSS/source/platform/platdata.cpp

587 lines
7.6 KiB
C++
Raw Normal View History

2001-04-23 20:07:54 +02:00
/*=========================================================================
platdata.cpp
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __PLATFORM_PLATFORM_H__
#include "platform\platform.h"
#endif
#ifndef __ANIM_CLAM_HEADER__
#include <ACTOR_CLAM_ANIM.h>
#endif
CNpcPlatform::NPC_PLATFORM_DATA CNpcPlatform::m_data[NPC_PLATFORM_TYPE_MAX] =
{
{ // NPC_LINEAR_PLATFORM
1,
//512,
2048,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_CIRCULAR_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_BUBBLE_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
2001-05-05 01:12:26 +02:00
NPC_PLATFORM_INFINITE_LIFE,
2001-04-23 20:07:54 +02:00
0,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_COLLAPSING_BUBBLE_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
2001-05-15 21:08:14 +02:00
2,
2001-04-23 20:07:54 +02:00
NPC_PLATFORM_INFINITE_LIFE_COLLAPSIBLE,
0,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_FISH_HOOK_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
2001-04-23 22:40:13 +02:00
NPC_PLATFORM_INFINITE_LIFE,
2001-04-23 20:07:54 +02:00
0,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_RETRACTING_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
2001-04-23 22:40:13 +02:00
NPC_PLATFORM_TIMER_NONE,
2001-04-23 20:07:54 +02:00
},
{ // NPC_GEYSER_PLATFORM
8,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
4,
2001-04-23 22:40:13 +02:00
NPC_PLATFORM_TIMER_NONE,
2001-04-23 20:07:54 +02:00
},
{ // NPC_BOBBING_PLATFORM
0,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
4,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_FALLING_PLATFORM
2001-05-05 01:56:39 +02:00
3,
2001-04-23 20:07:54 +02:00
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
4,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_CART_PLATFORM
4,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
4,
NPC_PLATFORM_TIMER_NONE,
},
2001-04-25 00:05:29 +02:00
{ // NPC_FISH_HOOK_2_PLATFORM
2001-05-10 18:47:35 +02:00
8,
2001-04-25 00:05:29 +02:00
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-04-25 21:22:15 +02:00
{ // NPC_BRANCH_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-01 15:58:52 +02:00
{ // NPC_SEESAW_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-01 16:24:48 +02:00
{ // NPC_OILDRUM_PLATFORM
2001-05-25 00:11:48 +02:00
1,
2001-05-01 16:24:48 +02:00
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
4,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_CRATE_PLATFORM
2001-05-25 00:11:48 +02:00
1,
2001-05-01 16:24:48 +02:00
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
4,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-01 22:45:03 +02:00
{ // NPC_BOUNCE_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
4,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-02 21:52:33 +02:00
{ // NPC_DUAL_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
4,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-03 21:01:59 +02:00
{ // NPC_OILDRUM_GENERATOR
2001-06-04 22:12:28 +02:00
3,
2001-05-03 21:01:59 +02:00
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
2001-05-30 00:21:45 +02:00
1,
2001-05-03 21:01:59 +02:00
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_CRATE_GENERATOR
2001-06-04 22:12:28 +02:00
3,
2001-05-03 21:01:59 +02:00
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
2001-05-30 00:21:45 +02:00
1,
2001-05-03 21:01:59 +02:00
NPC_PLATFORM_TIMER_NONE,
},
2001-05-04 16:49:15 +02:00
{ // NPC_RAFT_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
2,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-04 18:47:09 +02:00
{ // NPC_VERTICAL_OILDRUM_GENERATOR
2001-06-04 22:12:28 +02:00
3,
2001-05-04 18:47:09 +02:00
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
2001-05-30 00:21:45 +02:00
1,
2001-05-04 18:47:09 +02:00
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_VERTICAL_OILDRUM_PLATFORM
2001-05-25 00:11:48 +02:00
1,
2001-05-04 18:47:09 +02:00
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
4,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-04 20:54:27 +02:00
{ // NPC_LANTERN_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-05 01:12:26 +02:00
{ // NPC_BUBBLE_GEYSER_GENERATOR
2001-05-05 23:22:38 +02:00
4,
2001-05-05 01:12:26 +02:00
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
1,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-05 01:56:39 +02:00
{ // NPC_LEAF_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
4,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-05 15:54:34 +02:00
{ // NPC_BIG_WHEEL_PLATFORM
5,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-05 18:47:51 +02:00
{ // NPC_STEERABLE_BARREL_PLATFORM
2001-06-05 16:05:10 +02:00
3,
2001-05-05 18:47:51 +02:00
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-05 21:08:02 +02:00
{ // NPC_JELLYFISH_PLATFORM
1,
//512,
2048,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-23 16:46:23 +02:00
{ // NPC_FISH_HOOK_3_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-23 18:01:00 +02:00
{ // NPC_RISING_BRIDGE_PLATFORM
2001-06-06 18:35:29 +02:00
4,
2001-05-23 18:01:00 +02:00
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-23 23:27:29 +02:00
{ // NPC_BALLOON_BRIDGE_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-24 01:16:43 +02:00
{ // NPC_TRAPDOOR_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-29 17:29:56 +02:00
{ // NPC_CONVEYOR_GENERATOR
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
10,
NPC_PLATFORM_TIMER_NONE,
},
{ // NPC_CONVEYOR_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-04-23 20:07:54 +02:00
{ // NPC_PLAYER_BUBBLE_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_FINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-05-15 18:31:29 +02:00
{ // NPC_CLAM_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-06-01 20:36:50 +02:00
{ // NPC_COLLAPSING_ACRID_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
2,
NPC_PLATFORM_INFINITE_LIFE_COLLAPSIBLE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-06-05 22:44:30 +02:00
{ // NPC_DROP_PLATFORM
6,
128,
true,
DAMAGE__NONE,
0,
2,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-06-05 23:21:23 +02:00
{ // NPC_STEAM_SWITCH_PLATFORM
2,
128,
true,
DAMAGE__NONE,
0,
2,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-06-06 16:14:47 +02:00
{ // NPC_LIFT_PLATFORM
2,
128,
true,
DAMAGE__NONE,
0,
2,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-06-06 17:04:20 +02:00
{ // NPC_LOVE_BOAT_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
2,
NPC_PLATFORM_TIMER_NONE,
},
2001-06-08 16:33:43 +02:00
{ // NPC_STEERABLE_OILDRUM_PLATFORM
3,
128,
true,
DAMAGE__NONE,
0,
4,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-06-11 21:32:41 +02:00
{ // NPC_BUBBLE_TUBE_PLATFORM
2,
128,
true,
DAMAGE__NONE,
0,
2,
NPC_PLATFORM_INFINITE_LIFE,
0,
NPC_PLATFORM_TIMER_NONE,
},
2001-04-23 20:07:54 +02:00
};
CNpcPlatform::NPC_PLATFORM_UNIT_TYPE CNpcPlatform::mapEditConvertTable[NPC_PLATFORM_TYPE_MAX] =
{
NPC_BUBBLE_PLATFORM,
NPC_LINEAR_PLATFORM,
2001-05-05 01:56:39 +02:00
NPC_LEAF_PLATFORM,
2001-04-23 20:07:54 +02:00
NPC_CIRCULAR_PLATFORM,
NPC_COLLAPSING_BUBBLE_PLATFORM,
NPC_FISH_HOOK_PLATFORM,
NPC_RETRACTING_PLATFORM,
NPC_GEYSER_PLATFORM,
NPC_BOBBING_PLATFORM,
NPC_CART_PLATFORM,
2001-04-25 00:05:29 +02:00
NPC_FISH_HOOK_2_PLATFORM,
2001-04-25 21:22:15 +02:00
NPC_BRANCH_PLATFORM,
2001-05-01 15:58:52 +02:00
NPC_SEESAW_PLATFORM,
2001-05-01 16:24:48 +02:00
NPC_OILDRUM_PLATFORM,
NPC_CRATE_PLATFORM,
2001-05-01 22:45:03 +02:00
NPC_BOUNCE_PLATFORM,
2001-05-02 21:52:33 +02:00
NPC_DUAL_PLATFORM,
2001-05-03 21:01:59 +02:00
NPC_OILDRUM_GENERATOR,
NPC_CRATE_GENERATOR,
2001-05-04 16:49:15 +02:00
NPC_RAFT_PLATFORM,
2001-05-04 18:47:09 +02:00
NPC_VERTICAL_OILDRUM_GENERATOR,
2001-05-04 20:54:27 +02:00
NPC_LANTERN_PLATFORM,
2001-05-05 01:12:26 +02:00
NPC_BUBBLE_GEYSER_GENERATOR,
2001-05-05 15:54:34 +02:00
NPC_BIG_WHEEL_PLATFORM,
2001-05-05 18:47:51 +02:00
NPC_STEERABLE_BARREL_PLATFORM,
2001-05-14 16:21:04 +02:00
NPC_JELLYFISH_PLATFORM,
2001-05-23 16:46:23 +02:00
NPC_FISH_HOOK_3_PLATFORM,
2001-05-23 18:01:00 +02:00
NPC_RISING_BRIDGE_PLATFORM,
2001-05-23 23:27:29 +02:00
NPC_BALLOON_BRIDGE_PLATFORM,
2001-05-24 01:16:43 +02:00
NPC_TRAPDOOR_PLATFORM,
2001-05-29 17:29:56 +02:00
NPC_CONVEYOR_GENERATOR,
2001-06-01 20:36:50 +02:00
NPC_COLLAPSING_ACRID_PLATFORM,
2001-06-05 22:44:30 +02:00
NPC_DROP_PLATFORM,
2001-06-05 23:21:23 +02:00
NPC_STEAM_SWITCH_PLATFORM,
2001-06-06 16:14:47 +02:00
NPC_LIFT_PLATFORM,
2001-06-06 17:04:20 +02:00
NPC_LOVE_BOAT_PLATFORM,
2001-06-08 16:33:43 +02:00
NPC_STEERABLE_OILDRUM_PLATFORM,
2001-06-11 21:32:41 +02:00
NPC_BUBBLE_TUBE_PLATFORM,
2001-05-29 17:29:56 +02:00
NPC_CONVEYOR_PLATFORM,
2001-04-23 20:07:54 +02:00
NPC_PLAYER_BUBBLE_PLATFORM,
2001-05-15 18:31:29 +02:00
NPC_CLAM_PLATFORM,
2001-04-23 20:07:54 +02:00
};