Files
itgmania212121/stepmania/src/ArrowEffects.h
T

68 lines
2.3 KiB
C
Raw Normal View History

2002-11-16 07:49:38 +00:00
#ifndef ARROWEFFECTS_H
#define ARROWEFFECTS_H
2002-02-24 10:31:20 +00:00
/*
-----------------------------------------------------------------------------
File: ArrowEffects.h
Desc: Functions that return properties of arrows based on StyleDef and PlayerOptions
2002-02-24 10:31:20 +00:00
2002-05-19 01:59:48 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
2002-02-24 10:31:20 +00:00
Chris Danford
-----------------------------------------------------------------------------
*/
2002-05-01 19:14:55 +00:00
#include "GameConstantsAndTypes.h"
#include "StyleDef.h"
2002-02-24 10:31:20 +00:00
const int ARROW_SIZE = 64;
const float ARROW_SPACING = ARROW_SIZE;// + 2;
2002-02-24 10:31:20 +00:00
// fYOffset is a vertical position in pixels relative to the center.
// (positive if has not yet been stepped on, negative if has already passed).
// The ArrowEffect is applied in this stage.
float ArrowGetYOffset( PlayerNumber pn, float fNoteBeat );
2002-02-24 10:31:20 +00:00
// fRotation is Z rotation of an arrow. This will depend on the column of
// the arrow and possibly the Arrow effect and the fYOffset (in the case of
// EFFECT_DIZZY).
2003-01-25 11:05:12 +00:00
float ArrowGetRotation( PlayerNumber pn, float fNoteBeat );
2002-02-24 10:31:20 +00:00
// fYPos is the position of the note in pixels relative to the center.
// (positive if has not yet been stepped on, negative if has already passed).
// This value is fYOffset with bReverseScroll and fScrollSpeed factored in.
2003-01-25 11:05:12 +00:00
float ArrowGetYPosWithoutReverse( PlayerNumber pn, float fYOffset );
float ArrowGetYPos( PlayerNumber pn, float fYOffset );
2002-02-24 10:31:20 +00:00
// fXPos is a horizontal position in pixels relative to the center of the field.
// This depends on the column of the arrow and possibly the Arrow effect and
// fYPos (in the case of EFFECT_DRUNK).
float ArrowGetXPos( PlayerNumber pn, int iCol, float fYPos );
2003-07-09 01:34:48 +00:00
// Z position; normally 0. Only visible in perspective modes.
2003-07-09 00:49:05 +00:00
float ArrowGetZPos( PlayerNumber pn, int iCol, float fYPos );
2003-07-09 01:34:48 +00:00
// Enable this if any ZPos effects are enabled.
bool ArrowsNeedZBuffer( PlayerNumber pn );
2002-02-24 10:31:20 +00:00
// fAlpha is the transparency of the arrow. It depends on fYPos and the
2003-02-12 22:05:14 +00:00
// AppearanceType.
2002-09-05 03:45:07 +00:00
float ArrowGetAlpha( PlayerNumber pn, float fYPos, float fPercentFadeToFail );
2002-02-24 10:31:20 +00:00
// fAlpha is the transparency of the arrow. It depends on fYPos and the
2003-02-12 22:05:14 +00:00
// AppearanceType.
2002-09-05 03:45:07 +00:00
float ArrowGetGlow( PlayerNumber pn, float fYPos, float fPercentFadeToFail );
2003-02-12 22:05:14 +00:00
// Depends on fYOffset.
float ArrowGetBrightness( PlayerNumber pn, float fNoteBeat );
2003-02-12 22:05:14 +00:00
2002-11-16 07:49:38 +00:00
#endif