1 #ifndef OFFLINEBATTLE_H_INCLUDED 2 #define OFFLINEBATTLE_H_INCLUDED 3 4 #include "ibattle.h" 5 6 namespace LSL { 7 namespace Battle { 8 9 class OfflineBattle : public IBattle 10 { 11 public: 12 OfflineBattle ( const int id ); 13 OfflineBattle ( ); 14 OfflineBattle ( const OfflineBattle& ); 15 OfflineBattle& operator = ( const OfflineBattle& ); ~OfflineBattle()16 ~OfflineBattle (){} GetMe()17 virtual const CommonUserPtr GetMe() { return m_me; } GetMe()18 virtual const ConstCommonUserPtr GetMe() const { return m_me; } IsFounderMe()19 bool IsFounderMe() const { return true; } 20 void StartSpring(); 21 22 protected: 23 int m_id; 24 UserPtr m_me; 25 }; 26 27 } // namespace Battle { 28 } // namespace LSL { 29 30 /** 31 * \file offline.h 32 * \section LICENSE 33 Copyright 2012 by The libSpringLobby team. All rights reserved. 34 35 Redistribution and use in source and binary forms, with or without modification, are 36 permitted provided that the following conditions are met: 37 38 1. Redistributions of source code must retain the above copyright notice, this list of 39 conditions and the following disclaimer. 40 41 2. Redistributions in binary form must reproduce the above copyright notice, this list 42 of conditions and the following disclaimer in the documentation and/or other materials 43 provided with the distribution. 44 45 THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 46 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 47 AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 48 COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 49 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 50 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 51 USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 52 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 53 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 54 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 55 **/ 56 57 #endif // OFFLINEBATTLE_H_INCLUDED 58