You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "engine/point.hpp"
|
|
|
|
|
|
|
|
|
|
namespace devilution {
|
|
|
|
|
|
|
|
|
|
struct ActorPosition {
|
|
|
|
|
Point tile;
|
|
|
|
|
/** Future tile position. Set at start of walking animation. */
|
|
|
|
|
Point future;
|
|
|
|
|
/** Tile position of player. Set via network on player input. */
|
|
|
|
|
Point last;
|
|
|
|
|
/** Most recent position in dPlayer. */
|
|
|
|
|
Point old;
|
|
|
|
|
/** Pixel offset from tile. */
|
|
|
|
|
Displacement offset;
|
|
|
|
|
/** Same as offset but contains the value in a higher range */
|
|
|
|
|
Displacement offset2;
|
|
|
|
|
/** Pixel velocity while walking. Indirectly applied to offset via _pvar6/7 */
|
|
|
|
|
Displacement velocity;
|
|
|
|
|
/** Used for referring to position of player when finishing moving one tile (also used to define target coordinates for spells and ranged attacks) */
|
|
|
|
|
Point temp;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace devilution
|