<?php/* * dmmotor — what the player asks for during one tic (ticcmd_t of d_ticcmd.h). * Copyright (C) 1993-1996 by id Software, Inc.; PHP port for dmmotor. GPL v2 (see LICENSE). */namespace App\Dm\Play;final class TicCmd{ /** forward / backward, -50..50 (running) */ public int $forwardMove = 0; /** strafe, -40..40 */ public int $sideMove = 0; /** turn this tic, radians, positive = left */ public float $angleTurn = 0; public bool $attack = false; public bool $use = false; /** weapon slot asked for (0 = fist / chainsaw ... 6 = BFG), -1 = none */ public int $changeWeapon = -1; public function clear(): void { $this->forwardMove = 0; $this->sideMove = 0; $this->angleTurn = 0; $this->attack = false; $this->use = false; $this->changeWeapon = -1; }}