s.offense = true;
last_gained_possession = e.t;
}
+ if (e.type == "defense") {
+ s.offense = true;
+ num_touches = 0;
+ }
if (e.type == "drop" || e.type == "throwaway") {
s.offense = false;
num_touches = 0;
connect(ui->their_throwaway, &QPushButton::clicked, [this]() { insert_noplayer_event("their_throwaway"); });
connect(ui->their_goal, &QPushButton::clicked, [this]() { insert_noplayer_event("their_goal"); });
connect(ui->their_pull, &QPushButton::clicked, [this]() { insert_noplayer_event("their_pull"); });
+ connect(ui->our_defense, &QPushButton::clicked, [this]() { set_current_event_type("defense"); }); // TODO: player-connected
// Misc. events
connect(ui->substitution, &QPushButton::clicked, [this]() { make_substitution(); });