Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Modules/TeamBallLocator/GT2005Particles/GT2005ParticleSend.cpp

Go to the documentation of this file.
00001 /**
00002  * @file GT2005ParticleSend.cpp
00003  * 
00004  * This file contains a Particle Representation used by the GT2005BallLocator.
00005  *
00006  * @author <a href="mailto:christinez@gmx.de">Christine Zarges</a>
00007  * @author <a href="mailto:Thorsten.Kerkhof@gmx.de">Thorsten Kerkhof</a>
00008  */
00009 
00010 #include "GT2005ParticleSend.h"
00011 #include "Tools/Debugging/Debugging.h"
00012 #include "Tools/Actorics/RobotDimensions.h"
00013 #include "Tools/FieldDimensions.h"
00014 #include "Platform/SystemCall.h"
00015 #include "Tools/Debugging/DebugDrawings.h"
00016 #include "Platform/GTAssert.h"
00017 //------------------------------------------------------------------------------
00018 GT2005ParticleSend::GT2005ParticleSend()
00019 {
00020   this->x = 0;
00021   this->y = 0;
00022   this->vx = 0;
00023   this->vy = 0;
00024   probability = 0;
00025   vprob = 0;
00026 }
00027 //------------------------------------------------------------------------------
00028 GT2005ParticleSend::GT2005ParticleSend(short int x,
00029                                        short int y,
00030                                        short int vx,
00031                                        short int vy,
00032                                        unsigned short int prob,
00033                                        unsigned short int vProb)
00034 {
00035   this->x = x;
00036   this->y = y;
00037   this->vx = vx;
00038   this->vy = vy;
00039   probability = prob;
00040   vprob = vProb;
00041 }
00042 //------------------------------------------------------------------------------
00043 void GT2005ParticleSend::setParameters(short int x,
00044                                        short int y,
00045                                        short int vx,
00046                                        short int vy,
00047                                        unsigned short int prob,
00048                                        unsigned short int vProb)
00049 {
00050   this->x = x;
00051   this->y = y;
00052   this->vx = vx;
00053   this->vy = vy;
00054   probability = prob;
00055   vprob = vProb;
00056 }
00057 //------------------------------------------------------------------------------
00058 Out& operator<<(Out& stream, const GT2005ParticleSend& pbs)
00059 {
00060   stream << pbs.x;
00061   stream << pbs.y;
00062   stream << pbs.probability;
00063   stream << pbs.vx;
00064   stream << pbs.vy;
00065   stream << pbs.vprob;
00066   return stream;
00067 }
00068 //------------------------------------------------------------------------------
00069 In& operator>>(In& stream, GT2005ParticleSend& pbs)
00070 {
00071   stream >> pbs.x;
00072   stream >> pbs.y;
00073   stream >> pbs.probability;
00074   stream >> pbs.vx;
00075   stream >> pbs.vy;
00076   stream >> pbs.vprob;
00077   return stream;
00078 }
00079 //------------------------------------------------------------------------------

Generated on Mon Mar 20 21:59:57 2006 for GT2005 by doxygen 1.3.6