Copyright (C) 2000 Martin Piper, original design and program code
Copyright (C) 2001-2005 Replica Software
This program file is copyright (C) Replica Software and can only be used under license.
For more information visit: http://www.replicanet.com/
Or email: info@replicanet.com
END_LICENSE_HEADER */
/*
See Projectile.cpp
*/
#ifndef __PROJECTILE_H__
#define __PROJECTILE_H__
#include "d3dfile.h"
#include "GameObject.h"
#include "_RO_Projectile.h"
class Projectile : _RO_DO_PUBLIC_RO(Projectile) , public GameObject
{
public:
Projectile();
virtual ~Projectile();
void Render(void);
void PollIt(void);
bool GetPosition(D3DXVECTOR4 &input)
{
input = mPosition;
return true;
}
D3DXVECTOR4 GetPosition(void)
{
return mPosition;
}
void SetPosition(D3DXVECTOR4 pos)
{
mPosition = pos;
// Our position is being set by an outside class and since we don't know what out new velocity is yet we give the network layer a hint that it's changed
GiveDeltaHint(mPosition.x,0);
GiveDeltaHint(mPosition.y,0);
GiveDeltaHint(mPosition.z,0);
}
D3DXVECTOR4 GetRotation(void)
{
return mRotation;
// Our position is being set by an outside class and since we don't know what out new velocity is yet we give the network layer a hint that it's changed