2021-06-30 14:30:06 +00:00
|
|
|
#include "th04/main/player/player.hpp"
|
2020-04-12 16:52:58 +00:00
|
|
|
|
|
|
|
// Calculates the angle from ([x], [y]) to the current player position, and
|
|
|
|
// optionally adds [plus_angle] to the result.
|
|
|
|
unsigned char pascal near player_angle_from(
|
|
|
|
Subpixel x, Subpixel y, unsigned char plus_angle = 0
|
|
|
|
);
|
2022-04-18 16:47:11 +00:00
|
|
|
|
|
|
|
inline unsigned char near player_angle_from(
|
|
|
|
const PlayfieldPoint &point, unsigned char plus_angle = 0
|
|
|
|
) {
|
|
|
|
return player_angle_from(point.x, point.y, plus_angle);
|
|
|
|
}
|