raze/source/games/blood/src/gib.h

77 lines
1.7 KiB
C
Raw Normal View History

2019-09-19 22:42:45 +00:00
//-------------------------------------------------------------------------
/*
Copyright (C) 2010-2019 EDuke32 developers and contributors
Copyright (C) 2019 Nuke.YKT
This file is part of NBlood.
NBlood is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
//-------------------------------------------------------------------------
#pragma once
BEGIN_BLD_NS
2019-09-19 22:42:45 +00:00
enum GIBTYPE {
2021-12-29 19:45:55 +00:00
GIBTYPE_0 = 0,
GIBTYPE_1,
GIBTYPE_2,
GIBTYPE_3,
GIBTYPE_4,
GIBTYPE_5,
GIBTYPE_6,
GIBTYPE_7,
GIBTYPE_8,
GIBTYPE_9,
GIBTYPE_10,
GIBTYPE_11,
GIBTYPE_12,
GIBTYPE_13,
GIBTYPE_14,
GIBTYPE_15,
GIBTYPE_16,
GIBTYPE_17,
GIBTYPE_18,
GIBTYPE_19,
GIBTYPE_20,
GIBTYPE_21,
GIBTYPE_22,
GIBTYPE_23,
GIBTYPE_24,
GIBTYPE_25,
GIBTYPE_26,
GIBTYPE_27,
GIBTYPE_28,
GIBTYPE_29,
GIBTYPE_30,
kGibMax
2019-09-19 22:42:45 +00:00
};
class CGibPosition {
public:
2021-12-29 19:45:55 +00:00
int x, y, z;
CGibPosition(int _x, int _y, int _z) : x(_x), y(_y), z(_z) {}
2019-09-19 22:42:45 +00:00
};
class CGibVelocity {
public:
2021-12-29 19:45:55 +00:00
int vx, vy, vz;
CGibVelocity(int _vx, int _vy, int _vz) : vx(_vx), vy(_vy), vz(_vz) {}
2019-09-19 22:42:45 +00:00
};
2021-12-29 19:45:55 +00:00
void GibSprite(DBloodActor* pSprite, GIBTYPE nGibType, CGibPosition* pPos, CGibVelocity* pVel);
void GibWall(walltype* pWall, GIBTYPE nGibType, CGibVelocity* pVel);
END_BLD_NS