示例#1
0
    // this is old
    public override TrickResults CalculateResults(GnoteBar bar, GnoteSequence cSequence, PlayerHistory history)
    {
        Gnote gPrev = bar.PreviousNote ();
        Gnote g = bar.LastNote ();
        if (gPrev != null) {
            if (g.GetKey () == gPrev.GetKey ()) {
                return new WasSameKeyResult();
            }
        }

        if (g != null) {
            if (g.GetKey () == cSequence.anchorKey) {
                return new WasAnchorKeyResult ();
            }
        }

        KeyScoreValue ksv = KeyData.Instance.GetKeyScoreValue (g.GetKey ());
        if (ksv != null) {
            string trickCaption = ksv.name;
            float trickScore = ksv.points;
            return new TrickResults(trickScore, 0, trickCaption);
        } else {
            return new TrickResults();
        }
    }
示例#2
0
    public override void UpdateTrickChain(GnoteBar bar, GnoteSequence cSequence, PlayerHistory history)
    {
        Gnote hitNote = bar.LastNote ();
        Gnote previousNote = bar.PreviousNote ();
        if (previousNote == null) {
            // this is the first note, so we cool.
            return;
        }
        string hitString = hitNote.GetKey ();
        string previousString = previousNote.GetKey ();

        if (bar.ContainsNote (hitString)) {

        }
    }
示例#3
0
文件: Trick.cs 项目: DiglDixon/gnome
 public virtual void UpdateTrickChain(GnoteBar bar, GnoteSequence cSequence, PlayerHistory history)
 {
     // over
 }
示例#4
0
文件: Trick.cs 项目: DiglDixon/gnome
 public virtual TrickResults CalculateResults(GnoteBar bar, GnoteSequence cSequence, PlayerHistory history)
 {
     // overwrite me
     return new TrickResults();
 }
示例#5
0
	public void AddSequence(GnoteSequence s){
		sequences.Add (s);
	}