Changed: #1469 Parsing of steps in client and only one magic step
--HG-- branch : gsoc2012-fabienhg/feature/gsoc2012-fabien
parent
55582b6d05
commit
c21fbc5a9f
@ -0,0 +1,35 @@
|
||||
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
|
||||
// Copyright (C) 2010 Winch Gate Property Limited
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of the
|
||||
// License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
|
||||
|
||||
#include "camera_animation_manager/position_or_entity_helper.h"
|
||||
#include "game_share/mirror.h"
|
||||
#include "game_share/mirrored_data_set.h"
|
||||
#include "game_share/base_types.h"
|
||||
#include "user_entity.h"
|
||||
|
||||
|
||||
/*NLMISC::CVector CPositionOrEntityHelper::getDiffPos(const NLMISC::CVector& targetPos) const
|
||||
{
|
||||
return Position;
|
||||
}
|
||||
|
||||
NLMISC::CVector CPositionOrEntityHelper::setPositionFromDiffPos(const NLMISC::CVector& diffPos)
|
||||
{
|
||||
return Position;
|
||||
}
|
||||
*/
|
@ -0,0 +1,63 @@
|
||||
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
|
||||
// Copyright (C) 2010 Winch Gate Property Limited
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of the
|
||||
// License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#ifndef RY_POSITIONORENTITYTYPEHELPER_H
|
||||
#define RY_POSITIONORENTITYTYPEHELPER_H
|
||||
|
||||
|
||||
#include "game_share/position_or_entity_type.h"
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
/************************************************************************/
|
||||
/* Class that can contain either an entity id or a position */
|
||||
/************************************************************************/
|
||||
class CPositionOrEntityHelper: public CPositionOrEntity
|
||||
{
|
||||
public:
|
||||
|
||||
CPositionOrEntityHelper(): CPositionOrEntity()
|
||||
{
|
||||
}
|
||||
|
||||
CPositionOrEntityHelper(const NLMISC::CVector& position): CPositionOrEntity(position)
|
||||
{
|
||||
}
|
||||
|
||||
CPositionOrEntityHelper(const TDataSetIndex& eid): CPositionOrEntity(eid)
|
||||
{
|
||||
}
|
||||
|
||||
CPositionOrEntityHelper(PositionOrEntityType type): CPositionOrEntity(type)
|
||||
{
|
||||
}
|
||||
|
||||
CPositionOrEntityHelper(const CPositionOrEntity& c): CPositionOrEntity(c)
|
||||
{
|
||||
}
|
||||
|
||||
// Declares abstract methods
|
||||
/// This function returns the difference between the player's position and the specified position
|
||||
/*NLMISC::CVector getDiffPos(const NLMISC::CVector& targetPos) const;
|
||||
|
||||
/// This function returns the target position given the difference between the player's position and this target position
|
||||
NLMISC::CVector setPositionFromDiffPos(const NLMISC::CVector& diffPos);*/
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif /* RY_POSITIONORENTITYTYPEHELPER_H */
|
Loading…
Reference in New Issue