Files
itgmania212121/stepmania/src/ArrowEffects.h
T

64 lines
2.2 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
// 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, int iCol, float fNoteBeat );
2002-02-24 10:31:20 +00:00
2003-09-26 03:21:53 +00:00
// This value is fYOffset with fScrollSpeed factored in.
float ArrowGetYPosWithoutReverse( PlayerNumber pn, int iCol, float fYOffset );
// Actual display position, with reverse factored in.
float ArrowGetYPos( PlayerNumber pn, int iCol, float fYOffset, float fYReverseOffsetPixels );
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
// 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.
float ArrowGetAlpha( PlayerNumber pn, int iCol, float fYPos, float fPercentFadeToFail, float fYReverseOffsetPixels );
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.
float ArrowGetGlow( PlayerNumber pn, int iCol, float fYPos, float fPercentFadeToFail, float fYReverseOffsetPixels );
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