mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-11 06:08:02 -06:00
feat: add cursor-based node highlighting for debug
This commit is contained in:
@@ -126,19 +126,6 @@ impl Position {
|
||||
Position::Moving { from, .. } => *from,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the `NodeId` of the destination node, if currently traveling.
|
||||
pub fn target_node(&self) -> Option<NodeId> {
|
||||
match self {
|
||||
Position::Stopped { .. } => None,
|
||||
Position::Moving { to, .. } => Some(*to),
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns `true` if the entity is traveling between nodes.
|
||||
pub fn is_moving(&self) -> bool {
|
||||
matches!(self, Position::Moving { .. })
|
||||
}
|
||||
}
|
||||
|
||||
// pub fn movement_system(
|
||||
|
||||
Reference in New Issue
Block a user