Class: OsuRuby::Beatmap::HitObjects::Base Abstract
- Inherits:
-
Object
- Object
- OsuRuby::Beatmap::HitObjects::Base
- Defined in:
- (osu-ruby2 0.0.2) osu-ruby2/beatmap/data.rb
Overview
A base class for hitobject-related queries
Note that this implement a very core of the object itself. If you want to do a note specific, please see the implementation of subclasses
Direct Known Subclasses
Instance Attribute Summary collapse
-
#hitsound ⇒ Object
readonly
Returns the value of attribute hitsound.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Class Method Summary collapse
-
.parse(beatmap, str) ⇒ HitObjects::Base
parses the given string into a HitObject Base.
Instance Method Summary collapse
-
#as_osu ⇒ Array
A modifiable pre-HitObject compliant format data.
-
#end_time ⇒ Integer
Hitobject endpoint.
-
#extra_data ⇒ Object?
Extra data.
-
#have_base? ⇒ Boolean
Have hitnormal.
-
#have_clap? ⇒ Boolean
Have hitclap.
-
#have_finish? ⇒ Boolean
Have hitfinish.
-
#have_hitsound? ⇒ Boolean
Have hitsound.
-
#have_whistle? ⇒ Boolean
Have hitwhistle.
-
#initialize(beatmap, pos_x, pos_y, start_time, note_type, hitsounds, *extras) ⇒ Base
constructor
A new instance of Base.
-
#is_combo_hax ⇒ Boolean
Combo hax offset check.
-
#is_new_combo? ⇒ Boolean
New combo marker.
-
#length ⇒ Integer
Hitobject duration.
-
#no_hitsound? ⇒ Boolean
No hitsound.
-
#note_type ⇒ Integer
Hitobject raw type.
-
#process_extras(*extras)
abstract
Including the badly formatted extras from v10.
-
#timing_data ⇒ TimingPoints::Compound
Current state of timing point on given object time.
-
#to_osu ⇒ String
A HitObject format compliant.
Methods included from Interface::MultiplexerInterface
Constructor Details
#initialize(beatmap, pos_x, pos_y, start_time, note_type, hitsounds, *extras) ⇒ Base
Returns a new instance of Base.
Instance Attribute Details
#hitsound ⇒ Object (readonly)
Returns the value of attribute hitsound.
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
#type ⇒ Object (readonly)
Returns the value of attribute type.
#x ⇒ Object (readonly)
Returns the value of attribute x.
#y ⇒ Object (readonly)
Returns the value of attribute y.
Class Method Details
.parse(beatmap, str) ⇒ HitObjects::Base
parses the given string into a HitObject Base.
Instance Method Details
#as_osu ⇒ Array
It's suggested to use this when trying to convert hitobjects or whatever you think it is. into a comma-split entry.
Returns a modifiable pre-HitObject compliant format data.
#end_time ⇒ Integer
Returns hitobject endpoint.
#extra_data ⇒ Object?
Not really useful? Hope this is just raw data of extra parameters. but will see the later implementation after all of them are done.
Returns extra data.
#have_base? ⇒ Boolean
Returns have hitnormal.
#have_clap? ⇒ Boolean
Returns have hitclap.
#have_finish? ⇒ Boolean
Returns have hitfinish.
#have_hitsound? ⇒ Boolean
Returns have hitsound.
#have_whistle? ⇒ Boolean
Returns have hitwhistle.
#is_combo_hax ⇒ Boolean
Returns combo hax offset check.
#is_new_combo? ⇒ Boolean
Returns new combo marker.
#length ⇒ Integer
Returns hitobject duration.
#no_hitsound? ⇒ Boolean
Returns no hitsound.
#note_type ⇒ Integer
Returns hitobject raw type.
#process_extras(*extras)
This function is meant to control any non-base related parsing
This method returns an undefined value.
Including the badly formatted extras from v10
#timing_data ⇒ TimingPoints::Compound
Returns current state of timing point on given object time.
#to_osu ⇒ String
Returns a HitObject format compliant.