TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
HomeMovementGenerator.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef TRINITY_HOMEMOVEMENTGENERATOR_H
20 #define TRINITY_HOMEMOVEMENTGENERATOR_H
21 
22 #include "MovementGenerator.h"
23 
24 class Creature;
25 
26 template < class T >
28 
29 template <>
30 class HomeMovementGenerator<Creature> : public MovementGeneratorMedium< Creature, HomeMovementGenerator<Creature> >
31 {
32  public:
33 
34  HomeMovementGenerator() : arrived(false) { }
36 
37  void DoInitialize(Creature*);
38  void DoFinalize(Creature*);
39  void DoReset(Creature*);
40  bool DoUpdate(Creature*, const uint32);
42 
43  private:
44  void _setTargetLocation(Creature*);
45  bool arrived;
46 };
47 #endif
MovementGeneratorType GetMovementGeneratorType() const override
Definition: HomeMovementGenerator.h:41
~HomeMovementGenerator()
Definition: HomeMovementGenerator.h:35
Definition: MotionMaster.h:44
bool arrived
Definition: HomeMovementGenerator.h:45
#define false
Definition: CascPort.h:18
Definition: Creature.h:467
HomeMovementGenerator()
Definition: HomeMovementGenerator.h:34
uint32_t uint32
Definition: Define.h:150
Definition: MovementGenerator.h:51
Definition: HomeMovementGenerator.h:27
MovementGeneratorType
Definition: MotionMaster.h:35