1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #include "nel/misc/sheet_id.h"
18 #include "nel/misc/entity_id.h"
19 #include "game_share/base_types.h"
21 #ifndef SAB_ENTITY_BASE_H
22 #define SAB_ENTITY_BASE_H
29 CEntityBase(): _Target(NULL
), _EntityRowId(0) {}
31 virtual ISabrinaActor
* getSabrinaActor() =0;
33 NLMISC::CSheetId
getSheetId() const { return NLMISC::CSheetId(); }
34 const NLMISC::CEntityId
getId() const { return NLMISC::CEntityId(); }
36 TDataSetRow
getEntityRowId() const { return TDataSetRow::createFromRawIndex(_EntityRowId
); }
37 void setEntityRowId(uint32 i
) { _EntityRowId
=i
; }
39 CEntityBase
* getTarget() const { return _Target
; }
40 void setTarget(CEntityBase
* t
) { _Target
=t
; }