equal
deleted
inserted
replaced
231 /** |
231 /** |
232 * Overrides Projectile::onDestroy to ignore this, as we must wait for the server to tell us where it impacted |
232 * Overrides Projectile::onDestroy to ignore this, as we must wait for the server to tell us where it impacted |
233 * so that we can remove the ground reliably |
233 * so that we can remove the ground reliably |
234 */ |
234 */ |
235 virtual void onDestroy (Vector position, bool removeGround); |
235 virtual void onDestroy (Vector position, bool removeGround); |
|
236 |
|
237 /** |
|
238 * Overrides Projectile::onHitPlayer to ignore this, as we must wait for the server to tell us if it really did |
|
239 * happen. |
|
240 */ |
|
241 virtual void onHitPlayer (Player *player, Health damage); |
236 |
242 |
237 private: |
243 private: |
238 /** |
244 /** |
239 * NETMSG_PROJECTILE_DESTROY -> Projectile::onDestory |
245 * NETMSG_PROJECTILE_DESTROY -> Projectile::onDestory |
240 */ |
246 */ |
241 void on_destroy (NetworkPacketInput &pkt); |
247 void on_destroy (NetworkPacketInput &pkt); |
|
248 |
|
249 /** |
|
250 * NETMSG_PROJECTILE_HIT_PLAYER -> Projectile::onHitPlayer |
|
251 */ |
|
252 void on_hit_player (NetworkPacketInput &pkt); |
242 }; |
253 }; |
243 |
254 |
244 #endif |
255 #endif |