- Timestamp:
- Dec 13, 2005, 10:53:29 AM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/Makefile.am
r5996 r6080 25 25 lib/gui/gl_gui/libORXglgui.a \ 26 26 lib/shell/libORXshell.a \ 27 lib/network/libORXnet.a 27 lib/network/libORXnet.a 28 28 29 29 orxonox_LDADD = util/libORXutils.a \ … … 82 82 world_entities/power_ups/laser_power_up.cc \ 83 83 world_entities/space_ships/space_ship.cc \ 84 world_entities/spawning_point.cc \ 84 85 subprojects/benchmark.cc 85 86 … … 122 123 world_entities/power_ups/turret_power_up.h \ 123 124 world_entities/power_ups/laser_power_up.h \ 125 world_entities/spawning_point.h \ 124 126 defs/stdincl.h \ 125 127 defs/stdlibincl.h \ -
branches/network/src/defs/class_id.h
r6064 r6080 145 145 CL_TEST_ENTITY = 0x00000209, 146 146 CL_SPACE_SHIP = 0x0000020a, 147 CL_SPAWNING_POINT = 0x0000020b, 147 148 148 149 CL_TURRET_POWER_UP = 0x00000211, -
branches/network/src/world_entities/spawning_point.cc
r6069 r6080 1 2 /* 3 orxonox - the future of 3D-vertical-scrollers 4 5 Copyright (C) 2004 orx 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 2, or (at your option) 10 any later version. 11 12 ### File Specific: 13 main-programmer: Patrick Boenzli 14 co-programmer: 15 */ 16 17 #include "spawning_point.h" 18 19 20 21 /** 22 * constructor 23 */ 24 SpawningPoint::SpawningPoint (const Vector& absCoordinate) 25 {} 26 27 28 /** 29 * deconstructor 30 */ 31 SpawningPoint::~SpawningPoint () 32 {} 33 34 35 36 37 /** 38 * this method is called every frame 39 * @param time: the time in seconds that has passed since the last tick 40 * 41 * Handle all stuff that should update with time inside this method (movement, animation, etc.) 42 */ 43 void SpawningPoint::tick(float dt) 44 {} 45 46 47 /** 48 * the entity is drawn onto the screen with this function 49 * 50 * This is a central function of an entity: call it to let the entity painted to the screen. 51 * Just override this function with whatever you want to be drawn. 52 */ 53 void SpawningPoint::draw() 54 {} -
branches/network/src/world_entities/spawning_point.h
r6069 r6080 1 /*! 2 * @file spawning_point.h 3 * Definition of a spawning point within the game, used for network game 4 */ 5 6 7 #ifndef _SPAWNING_POINT 8 #define _SPAWNING_POINT 9 10 #include "world_entity.h" 11 12 //! The spawning point for world entities 13 class SpawningPoint : public WorldEntity { 14 15 public: 16 SpawningPoint (const Vector& absCoordinate = Vector(0.0, 0.0, 0.0)); 17 virtual ~SpawningPoint (); 18 19 20 void spawn(); 21 void setSpawningEntity(); 22 23 24 virtual void tick(float dt); 25 virtual void draw(); 26 27 private: 28 29 }; 30 31 #endif /* _SPAWNING_POINT */
Note: See TracChangeset
for help on using the changeset viewer.