about summary refs log tree commit diff stats
path: root/data/maps/the_ancient/rooms/Outside.txtpb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-29 10:48:19 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-29 10:48:19 -0400
commitf97b4ff4821f2945f22198dcbd5c627a64b4be50 (patch)
treefe50f3299164be7ff70d2cc8ed8f14fb7a38b4d4 /data/maps/the_ancient/rooms/Outside.txtpb
parent51c4886f15e7e10cdee2d5b2f92510c700f0c537 (diff)
downloadlingo2-archipelago-f97b4ff4821f2945f22198dcbd5c627a64b4be50.tar.gz
lingo2-archipelago-f97b4ff4821f2945f22198dcbd5c627a64b4be50.tar.bz2
lingo2-archipelago-f97b4ff4821f2945f22198dcbd5c627a64b4be50.zip
[Data] Fix castle stairs (again)
Diffstat (limited to 'data/maps/the_ancient/rooms/Outside.txtpb')
0 files changed, 0 insertions, 0 deletions
ghlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef TIMER_H_45E2F1F9
#define TIMER_H_45E2F1F9

class Timer {
public:

  Timer(int dt) : dt_(dt) {}

  void accumulate(int t) {
    acc_ += t;
  }

  bool step() {
    if (acc_ > dt_) {
      acc_ -= dt_;
      return true;
    } else {
      return false;
    }
  }

  void reset() {
    acc_ = 0;
  }

  int getDt() const { return dt_; }

private:

  int dt_;
  int acc_ = 0;
};

#endif /* end of include guard: TIMER_H_45E2F1F9 */