1 // ==============================================================
2 // This file is part of Glest (www.glest.org)
3 //
4 // Copyright (C) 2001-2008 Marti�o Figueroa
5 //
6 // You can redistribute this code and/or modify it under
7 // the terms of the GNU General Public License as published
8 // by the Free Software Foundation; either version 2 of the
9 // License, or (at your option) any later version
10 // ==============================================================
11
12 #include "network_types.h"
13
14 #include "leak_dumper.h"
15
16 namespace Glest{ namespace Game{
17
18 // =====================================================
19 // class NetworkCommand
20 // =====================================================
21
NetworkCommand(int networkCommandType,int unitId,int commandTypeId,const Vec2i & pos,int unitTypeId,int targetId)22 NetworkCommand::NetworkCommand(int networkCommandType, int unitId, int commandTypeId, const Vec2i &pos, int unitTypeId, int targetId){
23 this->networkCommandType= networkCommandType;
24 this->unitId= unitId;
25 this->commandTypeId= commandTypeId;
26 this->positionX= pos.x;
27 this->positionY= pos.y;
28 this->unitTypeId= unitTypeId;
29 this->targetId= targetId;
30 }
31
32
33 }}//end namespace
34