The Battle for Wesnoth  1.15.6+dev
Public Member Functions | Private Attributes | List of all members
unit_movement_resetter Struct Reference

Object which temporarily resets a unit's movement. More...

#include <unit.hpp>

Public Member Functions

 unit_movement_resetter (const unit_movement_resetter &)=delete
 
unit_movement_resetteroperator= (const unit_movement_resetter &)=delete
 
 unit_movement_resetter (const unit &u, bool operate=true)
 
 ~unit_movement_resetter ()
 

Private Attributes

unitu_
 
int moves_
 

Detailed Description

Object which temporarily resets a unit's movement.

Warning
A unit whose movement is reset may not be deleted while held in a unit_movement_resetter object, so it's best to use thus only in a small scope.

Definition at line 1942 of file unit.hpp.


The documentation for this struct was generated from the following files: