Ball.hxx

00001 /*
00002 ** TowBowlTactics, an adaptation of the tabletop game Blood Bowl.
00003 ** 
00004 ** Copyright (C) 2007 The TBT Team.
00005 ** 
00006 ** This program is free software; you can redistribute it and/or
00007 ** modify it under the terms of the GNU General Public License
00008 ** as published by the Free Software Foundation; either version 2
00009 ** of the License, or (at your option) any later version.
00010 ** 
00011 ** The complete GNU General Public Licence Notice can be found as the
00012 ** `NOTICE' file in the root directory.
00013 ** 
00014 ** The TBT Team consists of people listed in the `AUTHORS' file.
00015 */
00016 
00017 template <typename T>
00018 inline Ball<T>::Ball()
00019   : owner_(NULL)
00020 {
00021   pos_ = Position(-1,-1);
00022 }
00023 
00024 template <typename T>
00025 inline Ball<T>::~Ball()
00026 {
00027 }
00028 
00029 template <typename T>
00030 inline void Ball<T>::setPosition(const Position& pt)
00031 {
00032   pos_ = pt;
00033 }
00034 
00035 template <typename T>
00036 inline const Position& Ball<T>::getPosition() const
00037 {
00038   return pos_;
00039 }
00040 
00041 template <typename T>
00042 inline T* Ball<T>::getOwner() const
00043 {
00044   return owner_;
00045 }
00046 
00047 template <typename T>
00048 inline void Ball<T>::setOwner(T* player)
00049 {
00050   owner_ = player;
00051 }

Generated on Sat Jun 23 16:07:22 2007 for Stechec/TBT by  doxygen 1.4.7