79 lines
2.7 KiB
C++
79 lines
2.7 KiB
C++
/*
|
|
* Copyright (c) 2010-2011 OTClient <https://github.com/edubart/otclient>
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
* in the Software without restriction, including without limitation the rights
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
* furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
* THE SOFTWARE.
|
|
*/
|
|
|
|
#ifndef THINGATTRIBUTES_H
|
|
#define THINGATTRIBUTES_H
|
|
|
|
#include "declarations.h"
|
|
|
|
struct ThingAttributes
|
|
{
|
|
ThingAttributes() {
|
|
group = Otc::ThingNoGroup;
|
|
blockSolid = false;
|
|
hasHeight = false;
|
|
blockPathFind = false;
|
|
blockProjectile = false;
|
|
alwaysOnTop = false;
|
|
alwaysOnTopOrder = 0;
|
|
stackable = false;
|
|
useable = false;
|
|
moveable = true;
|
|
pickupable = false;
|
|
rotable = false;
|
|
readable = false;
|
|
lookThrough = false;
|
|
speed = 0;
|
|
lightLevel = 0;
|
|
lightColor = 0;
|
|
isVertical = false;
|
|
isHorizontal = false;
|
|
isHangable = false;
|
|
miniMapColor = 0;
|
|
hasMiniMapColor = false;
|
|
changesFloor = false;
|
|
subParam07 = 0;
|
|
subParam08 = 0;
|
|
width = 0;
|
|
height = 0;
|
|
blendframes = 0;
|
|
xdiv = 0;
|
|
ydiv = 0;
|
|
zdiv = 0;
|
|
animcount = 0;
|
|
drawOffset = 0;
|
|
drawNextOffset = 0;
|
|
}
|
|
|
|
bool stackable, alwaysOnTop, useable, readable, moveable, blockSolid, blockProjectile, blockPathFind, pickupable,
|
|
isHangable, isHorizontal, isVertical, rotable, hasHeight, lookThrough, hasMiniMapColor, changesFloor;
|
|
uint8 alwaysOnTopOrder, width, height, blendframes, xdiv, ydiv, zdiv, animcount, drawOffset, drawNextOffset;
|
|
uint16 speed, subParam07, subParam08, lightLevel, lightColor, miniMapColor;
|
|
|
|
std::vector<int> sprites;
|
|
Otc::ThingAttributesGroup group;
|
|
};
|
|
|
|
typedef std::vector<ThingAttributes> ThingAttributesList;
|
|
|
|
#endif
|