Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
TickcountSegment Struct Reference

Identifies when a chart is to have a different tickcount value for hold notes. More...

#include <TimingSegments.h>

Inheritance diagram for TickcountSegment:
Inheritance graph
[legend]
Collaboration diagram for TickcountSegment:
Collaboration graph
[legend]

Public Member Functions

auto GetType () const -> TimingSegmentType override
 
auto GetEffectType () const -> SegmentEffectType override
 
auto IsNotable () const -> bool override
 
void DebugPrint () const override
 
auto Copy () const -> TimingSegment *override
 
 TickcountSegment (int iStartRow=ROW_INVALID, int iTicks=DEFAULT_TICK_COUNT)
 
 TickcountSegment (const TickcountSegment &other)
 
auto GetTicks () const -> int
 
void SetTicks (int iTicks)
 
auto ToString (int dec) const -> std::string override
 
auto GetValues () const -> std::vector< float > override
 
auto operator== (const TickcountSegment &other) const -> bool
 
auto operator== (const TimingSegment &other) const -> bool override
 
- Public Member Functions inherited from TimingSegment
 TimingSegment (int iRow=ROW_INVALID)
 
 TimingSegment (float fBeat)
 
 TimingSegment (const TimingSegment &other)
 
virtual void Scale (int start, int length, int newLength)
 Scales itself.
 
auto GetRow () const -> int
 
void SetRow (int iRow)
 
auto GetBeat () const -> float
 
void SetBeat (float fBeat)
 
auto operator< (const TimingSegment &other) const -> bool
 
virtual auto operator!= (const TimingSegment &other) const -> bool
 

Static Public Attributes

static const unsigned DEFAULT_TICK_COUNT = 4
 The default amount of ticks per beat.
 
- Static Public Attributes inherited from TimingSegment
static const double EPSILON = 1e-6
 

Detailed Description

Identifies when a chart is to have a different tickcount value for hold notes.

A tickcount segment is used to better replicate the checkpoint hold system used by various based video games. The number is used to represent how many ticks can be counted in one beat.

Member Function Documentation

◆ Copy()

auto TickcountSegment::Copy ( ) const -> TimingSegment*
inlineoverridevirtual

Implements TimingSegment.

◆ DebugPrint()

void TickcountSegment::DebugPrint ( ) const
overridevirtual

Reimplemented from TimingSegment.

◆ GetEffectType()

auto TickcountSegment::GetEffectType ( ) const -> SegmentEffectType
inlineoverridevirtual

Reimplemented from TimingSegment.

◆ GetType()

auto TickcountSegment::GetType ( ) const -> TimingSegmentType
inlineoverridevirtual

Reimplemented from TimingSegment.

◆ GetValues()

auto TickcountSegment::GetValues ( ) const -> std::vector<float>
inlineoverridevirtual

Reimplemented from TimingSegment.

◆ IsNotable()

auto TickcountSegment::IsNotable ( ) const -> bool
inlineoverridevirtual

Implements TimingSegment.

◆ operator==()

auto TickcountSegment::operator== ( const TimingSegment other) const -> bool
inlineoverridevirtual

Reimplemented from TimingSegment.

◆ ToString()

std::string TickcountSegment::ToString ( int  dec) const -> std::string
overridevirtual

Reimplemented from TimingSegment.


The documentation for this struct was generated from the following files: