blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
905 values
visit_date
timestamp[us]date
2015-08-09 11:21:18
2023-09-06 10:45:07
revision_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-17 19:19:19
committer_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-06 06:22:19
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-07 00:51:45
2023-09-14 21:58:39
gha_created_at
timestamp[us]date
2008-03-27 23:40:48
2023-08-21 23:17:38
gha_language
stringclasses
141 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
115 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
9764620e3f57eddda3776a9483247d9ce62bab8a
8ab24571e71dfef8ed0bae1748fa2a30cb6eb042
/BOJ_test/1929_printPrimeNumber/1929_printPrimeNumber.cpp
82124b81a94b783213e3759c783c775ff9901a8a
[]
no_license
ki815kaisian/BOJ_test
816d52242195c6bbeb980d5695fcd4d5db045855
edb1120703313f2a105c4d62ef16be4ea1a06b89
refs/heads/master
2021-05-01T20:32:24.578103
2019-10-02T08:11:18
2019-10-02T08:11:18
79,368,508
0
0
null
2017-01-26T08:41:49
2017-01-18T18:07:31
C++
UTF-8
C++
false
false
419
cpp
#include <stdio.h> using namespace std; int number[1000001] = { 0 }; int main(void) { int under = 0; int upper = 0; scanf("%d %d", &under, &upper); number[0] = number[1] = 1; for (int i = 2; i*i <= upper; i++) { if (number[i] == 0) { for (int j = i + i; j <= upper; j += i) { number[j] = 1; } } } for (int i = under; i <= upper; i++) { if (number[i] == 0)printf("%d\n",i); } return 0; }
[ "ki815kaisian@gmail.com" ]
ki815kaisian@gmail.com
60203109a568b7d6a82a757cf20f811ed6dfd01e
aca493ca1e4a86bb42e557b2015683680ea26f4a
/paint.h
871c3ab12fd4cd97379d0aedd380bd84192de36e
[]
no_license
BridgeHill/bmp
9eaa61ffc55a25fffd08660d3a03ad7493a7ae3c
fd19db4f324f9470156a6f9d5e4491e4e0ba0a45
refs/heads/master
2021-01-15T08:51:53.972382
2016-01-03T16:28:33
2016-01-03T16:28:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,143
h
#ifndef PAINT_H #define PAINT_H #include "color.h" #include "bmp32.h" #include "QR_Encode.h" class paint:public bmp32 { public: int setBcolor(union color_u Bcolor1); int setBcolor(unsigned long ulg); int setFcolor(union color_u Fcolor1); int setFcolor(unsigned long ulg); void setBrush(short r1); void setErase(short r1); paint(unsigned long w,unsigned long h); paint(const paint& tniap); paint& operator=(const paint& tniap); ~paint(); int clear(); bool isin(short x1,short y1); int addpoint(short x0,short y0); int drawpoint(short x0,short y0,short r0,bool PointShapeModeIsSquare); int erasepoint(short x0,short y0); int clearpoint(short x0,short y0,short r0,bool PointShapeModeIsSquare); int addcircle(short x0,short y0,short r0); int addline(short x1,short y1,short x2,short y2); int addCardioid(short x1,short y1,short a); int addQRcode( short x0, short y0, short r0, int nLevel, int nVersion, BOOL bAutoExtent, int nMaskingNo, LPCSTR lpsSource, int ncSource = 0 ); private: union color_u Fcolor; union color_u Bcolor; short Brush; short Erase; }; #endif
[ "huangjun.chn@outlook.com" ]
huangjun.chn@outlook.com
3a043735788838a700c9a2afc3d0f53fca54dfd2
0eff74b05b60098333ad66cf801bdd93becc9ea4
/second/download/git/gumtree/git_new_log_50.cpp
a31de8c23ad0baa482047a6c133df209e260e642
[]
no_license
niuxu18/logTracker-old
97543445ea7e414ed40bdc681239365d33418975
f2b060f13a0295387fe02187543db124916eb446
refs/heads/master
2021-09-13T21:39:37.686481
2017-12-11T03:36:34
2017-12-11T03:36:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
101
cpp
usage_msg_opt("-f only makes sense when writing a replacement", git_replace_usage, options);
[ "993273596@qq.com" ]
993273596@qq.com
85969229be724aaab35ebe7150b5d8b7847a94e8
187c2f0d83eac13d3fdba74600e5154b89258428
/generic/libc/stdio/vsnprintf.cpp
9464f87d34bbae33b1ab59ecd86f8ce4b7ec562c
[]
no_license
ZeusJupiter/PowerPC-Demo-OS
5bcbc33be267600cacd3da6dde5367d6e6807725
23f0f10ba21f9f76dd4fb51402c3b237b5a1be2c
refs/heads/master
2020-04-02T01:40:56.799983
2018-10-30T05:49:10
2018-10-30T05:49:10
153,867,626
0
0
null
null
null
null
UTF-8
C++
false
false
362
cpp
/* * File name: vsnprintf.cpp * * Created on: 2017年6月25日, 下午11:25:50 * Author: victor * Toolchain: * Language: C/C++ * description: */ #include <macros.h> #include <types.h> #include <stdio.h> #include <stdarg.h> BEG_EXT_C int vsnprintf(char *str,size_t n,const char *fmt,va_list ap) { int res = 0; return res; } END_EXT_C
[ "dangyuedong@baidu.com" ]
dangyuedong@baidu.com
ab13c46a6771d239b37cfc51a8a5b64dde4bfd5e
eaba86a6412fb7c98781164c9754018a379a8214
/config.cpp
4feacc085e2881bfc6f8d9bc43b8e878001e6606
[]
no_license
Shredorama/honestdayswork
ac18f9986ae8b3905386824582af4ea907df0cc6
ac70a66330c5efdef3c2b4c97a8930dace1559ba
refs/heads/master
2020-12-27T07:23:30.509614
2020-02-14T03:47:53
2020-02-14T03:47:53
237,812,980
0
0
null
2020-02-02T18:03:33
2020-02-02T18:03:33
null
UTF-8
C++
false
false
321,983
cpp
enum { destructengine = 2, destructdefault = 6, destructwreck = 7, destructtree = 3, destructtent = 4, destructno = 0, destructman = 5, destructbuilding = 1 }; class CfgMods { class ShredAnimals { dir="ShredAnimals"; picture=""; action=""; hideName=1; hidePicture=1; name="ShredAnimals"; credits=""; author="Shredorama"; authorID="0"; version="1.0"; extra=0; type="mod"; dependencies[]= { "Game", "World", "Mission" }; class defs { class worldScriptModule { value=""; files[]= { "ShredAnimals\scripts\4_world" }; }; }; }; }; class CfgPatches { <<<<<<< HEAD class DZ_Animals_Shred_Tiger { units[]= { "Animal_Tiger","Animal_Tigris" }; weapons[]={}; requiredVersion=0.1; requiredAddons[]= { "DZ_AI", "DZ_AI_Bliss", "DZ_Animals", "DZ_Animals_Bliss", "DZ_Data_Bliss", "DZ_Data", "DZ_Surfaces", "DZ_Surfaces_Bliss", "DZ_Weapons_Melee" }; }; ======= class DZ_Animals_GS_Tiger { units[]= { "Animal_GS_Tiger" }; weapons[]={}; requiredVersion=0.1; requiredAddons[]= { "DZ", "DZ_AI", "DZ_AI_Bliss", "DZ_animals", "DZ_animals_bliss", "DZ_data_bliss", "DZ_data", "DZ_surfaces", "DZ_surfaces_bliss", 'DZ_gear_consumables', "DZ_weapons_melee" }; }; class DZ_Animals_Shred_Tiger { units[]= { "Animal_Shred_Tiger" }; weapons[]={}; requiredVersion=0.1; requiredAddons[]= { "DZ", "DZ_AI", "DZ_AI_Bliss", "DZ_animals", "DZ_animals_bliss", "DZ_data_bliss", "DZ_data", "DZ_surfaces", "DZ_surfaces_bliss", 'DZ_gear_consumables', "DZ_weapons_melee" }; }; }; class CfgModels { class Default { sections[] = {}; sectionsInherit=""; skeletonName = ""; }; class tigerx2:Default { skeletonName="CanisLupusAISkeleton"; }; class TestPelt:Default { }; class TigerPelt:Default { }; >>>>>>> upstream/master }; class AIParams { maxNoiseRange=400; rainToNoiseMultiplier=10; seaToNoiseMultiplier=15; noiseDampeningMultiplier=0.69999999; noiseCollisionDampeningMultiplier=0.40000001; groupLODDistance=1000; class AgentTeams { TeamList[]= { "Player", "BigGame", "Zombies", "Predator", "GSTiger", "AmbientLife" }; class Player { friends[]= { "Player" }; }; class Predator { friends[]= { "Predator", "Zombies", "AmbientLife" }; }; class BigGame { friends[]= { "BigGame", "AmbientLife" }; }; class Zombies { friends[]= { "Zombies", "Predator", "AmbientLife" }; }; class AmbientLife { friends[]= { "AmbientLife" }; }; class GSTiger { friends[]= { "GSTiger" }; }; }; }; class PathGraphFilters { class TigerOnHunt { class Flags { include[]= { "walk", "door", "inside", "jumpover", "swim", "swimsea", "climb", "crawl", "crouch" }; exclude[]= { "disabled" }; }; class Costs { jump0=0; jump1=0; jump2=1; jump3=1; jump4=0; water=1; }; }; class TigerOnOuterCircle { class Flags { include[]= { "walk", "jumpover", "swim", "swimsea", "climb", "crawl", "crouch" }; exclude[]= { "disabled" }; }; class Costs { jump0=0; jump1=0; jump2=1; jump3=1; jump4=0; water=1; }; }; }; class GroupBehaviourTemplates { class GSTigerGroupBeh { type="Predators"; alertDistributionSpeed=200; catchUpTestDelay=1; catchUpStartRadius=10; catchUpTargetRadius=4; groupRadius=15; spawnMinDistanceBetweenAgents=1; agentPathLength=100; atNeedMinDuration=60; atNeedMaxDuration=120; singleAgentSafeKeeperDelayMin=100; singleAgentSafeKeeperDelayMax=100; preyAttractionRange=350; innerOuterCircleRatio=0.60000002; endAttractionRange=60; attractionCooldown=60; endAttractionTime=300; targetEscapingSpeed=400; killAddFear=0; eatingTime=600; huntingCooldown=60; maxHuntingTime=60; safeKeeperIntervalMin=20; safeKeeperIntervalMax=40; siegeAttackCountdownMin=1; siegeAttackCountdownMax=12; huntAttackCountdownMin=1; huntAttackCountdownMax=10; changeTargetCooldown=5; changeTargetAlertRatio=1.3; changeTargetEffectRadius=6; subgroupSpacingMax=500; class LifeCycleDayTime { class Activity1 { endTimeMin=8; endTimeMax=9; zoneType="Graze"; }; class Activity2 { endTimeMin=10; endTimeMax=11; zoneType="Graze"; }; class Activity3 { endTimeMin=13; endTimeMax=14; zoneType="Graze"; }; <<<<<<< Updated upstream }; class Costs { jump0=0; jump1=0; jump2=0.5; jump3=0; jump4=0; water=1; building=5; }; }; class WolfOnHunt { class Flags { include[]= ======= class Activity4 >>>>>>> Stashed changes { endTimeMin=17; endTimeMax=18; zoneType="Graze"; }; class Activity5 { endTimeMin=20; endTimeMax=21; zoneType="Graze"; }; }; }; }; class CfgAIBehaviours { class Predators_Tiger { HeadLookBoneName="pin_lookat"; teamName="GSTiger"; defaultGroupTemplateName="GSTigerGroupBeh"; class PathAgent { radius=0.30000001; height=1; lengthRadius=0.69999999; }; class BehaviourHLPredator { <<<<<<< Updated upstream jump0=0; jump1=0; jump2=1; jump3=1; jump4=0; water=1; }; }; class TigerOnHunt { class Flags { include[]= { "walk", "door", "inside", "jumpover", "swim", "swimsea", "climb", "crawl", "crouch" }; exclude[]= { "disabled" }; }; class Costs { jump0=0; jump1=0; jump2=1; jump3=1; jump4=0; water=1; }; }; class TigerOnOuterCircle { class Flags { include[]= { "walk", "jumpover" }; exclude[]= { "disabled", "swim", "swimsea", "climb", "crawl", "crouch" }; }; class Costs { jump0=0; jump1=0; jump2=1; jump3=1; jump4=0; water=1; }; }; class NoJumping { class Flags { include[]= ======= instantAlertRangeMin=0; instantAlertRangeMax=0; instantAlertStrength=0; proximityAttackRange=2.5; attackCooldown=3; class SlotCalmGrazing { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=0; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=500; grazeWalkingDurationMax=500; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=15; travelingDurationMax=30; grazeWalkingSpeed=0.2; travelingWalkingSpeed=1.36; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="TigerOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="TigerOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="TigerOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotSiege >>>>>>> Stashed changes { class BehaviourSiege { class SoundsEntering { class Sound1 { sounds[]= { "TigerPant0_SoundSet" }; }; class Sound2 { sounds[]= { "TigerPant1_SoundSet" }; }; class Sound3 { sounds[]= { "TigerPant2_SoundSet" }; }; probability=1; }; class SoundsDuring { class Sound1 { sounds[]= { "TigerPant3_SoundSet" }; }; class Sound2 { sounds[]= { "TigerPant4_SoundSet" }; }; class Sound3 { sounds[]= { "TigerPant5_SoundSet" }; }; class Sound4 { sounds[]= { "TigerPant6_SoundSet" }; }; class Sound5 { sounds[]= { "TigerPant7_SoundSet" }; }; class Sound6 { sounds[]= { "TigerGrowl0_SoundSet" }; }; class Sound7 { sounds[]= { "TigerGrowl1_SoundSet" }; }; class Sound8 { sounds[]= { "TigerGrowl2_SoundSet" }; }; probability=0.40000001; RepeatTimeMin=5; RepeatTimeMax=15; RepeatEnabled="true"; }; innerRadius=7; innerRadiusMin=4.5; innerRadiusMax=10; outerRadius=16; directionChangeTimeMin=7; directionChangeTimeMax=25; PlayerFOV=1.4; preferPlayerFOVCooldown=1; attackDistance=3.5; class InnerCircleMovement { maxSpeed=6.3000002; optimalSpeed=6.3000002; optimalSpeedRange=1; minSpeed=1; acceleration=7; maxAngleSpeed=90; slowRadius=0; stopRadius=2; maxSpeedRange=2; pathFilter="TigerOnHunt"; startAnimationMaxSpeed=0.54000002; }; class Movement { maxSpeed=9; optimalSpeed=6.3000002; optimalSpeedRange=15; minSpeed=1; acceleration=10; maxAngleSpeed=180; slowRadius=0; stopRadius=2; maxSpeedRange=20; pathFilter="TigerOnOuterCircle"; startAnimationMaxSpeed=0.54000002; }; class AttackMovement { maxSpeed=12.175; optimalSpeed=12; optimalSpeedRange=6; minSpeed=0.80000001; acceleration=10; maxAngleSpeed=180; slowRadius=2; stopRadius=3; maxSpeedRange=30; pathFilter="TigerOnHunt"; }; }; }; class SlotEating { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=20; eatingWeight=20; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=10; grazeWalkingDurationMax=15; restingDurationMin=15; restingDurationMax=25; travelingDurationMin=15; travelingDurationMax=30; eatingDurationMin=15; eatingDurationMax=25; safetyDurationMin=10; safetyDurationMax=20; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="TigerOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="TigerOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="TigerOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotHunting { class BehaviourHunt { attackRange=3.5; followingRadius=15; followingRadiusReqroupCooldownMin=5; followingRadiusReqroupCooldownMax=15; followingRadiusRegroupMinSpeed=1.5; predictFollowingMinDistance=10; minDistanceToTargetRatio=0.30000001; class SoundsEntering { class Sound1 { sounds[]= { "TigerBark3_0_SoundSet" }; }; probability=0.30000001; }; class SoundsDuring { class Sound1 { sounds[]= { "TigerBark2_0_SoundSet" }; }; class Sound2 { sounds[]= { "TigerBark2_1_SoundSet" }; }; class Sound3 { sounds[]= { "TigerBark2_2_SoundSet" }; }; class Sound4 { sounds[]= { "TigerBark2_3_SoundSet" }; }; class Sound5 { sounds[]= { "TigerBark2_4_SoundSet" }; }; probability=1; RepeatTimeMin=10; RepeatTimeMax=30; RepeatEnabled="true"; }; class Movement { maxSpeed=10; optimalSpeed=9.5; minSpeed=1; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; maxSpeedRange=15; optimalSpeedRange=5; pathFilter="TigerOnHunt"; }; class MovementAttack { maxSpeed=12.175; optimalSpeed=12.175; minSpeed=6; acceleration=20; maxAngleSpeed=360; slowRadius=0; stopRadius=0; maxSpeedRange=3; optimalSpeedRange=1; pathFilter="TigerOnHunt"; }; }; }; class SlotCalmResting { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=50; grazeWalkingWeight=50; restWeight=50; travelWeight=0; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=15; grazeWalkingDurationMax=25; restingDurationMin=25; restingDurationMax=35; travelingDurationMin=15; travelingDurationMax=30; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="TigerOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="TigerOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="TigerOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; <<<<<<< Updated upstream class Activity4 { endTimeMin=22.5; endTimeMax=23.5; zoneType="HuntingGround"; stayInZone="false"; }; }; }; class DZDeerGroupBeh { type="WildHerbivores"; alertDistributionSpeed=20; catchUpTestDelay=4; catchUpStartRadius=30; catchUpTargetRadius=7; groupRadius=10; spawnMinDistanceBetweenAgents=3; agentPathLength=60; atNeedMinDuration=60; atNeedMaxDuration=60; singleAgentSafeKeeperDelayMin=10; singleAgentSafeKeeperDelayMax=100; safeKeeperIntervalMin=10; safeKeeperIntervalMax=30; class LifeCycleDayTime { class Activity1 { endTimeMin=8; endTimeMax=9; zoneType="Graze"; }; class Activity2 { endTimeMin=10; endTimeMax=11; zoneType="Rest"; }; class Activity3 { endTimeMin=13; endTimeMax=14; zoneType="Graze"; }; class Activity4 { endTimeMin=17; endTimeMax=18; zoneType="Graze"; }; class Activity5 { endTimeMin=20; endTimeMax=21; zoneType="Water"; }; }; }; class DZdomesticGroupBeh { type="DomesticHerbivores"; alertDistributionSpeed=0; groupMaxAlertedSpreadRadius=30; catchUpStartRadius=50; catchUpTargetRadius=15; groupRadius=10; spawnMinDistanceBetweenAgents=3; agentPathLength=60; atNeedMinDuration=60; atNeedMaxDuration=60; singleAgentSafeKeeperDelayMin=20; singleAgentSafeKeeperDelayMax=20; pauseLifeCycleAfterEscapeDuration=60; safeKeeperIntervalMin=10; safeKeeperIntervalMax=30; class LifeCycleDayTime { class Activity1 { endTimeMin=8; endTimeMax=9; zoneType="Rest"; }; class Activity2 { endTimeMin=11; endTimeMax=12; zoneType="Water"; }; class Activity3 { endTimeMin=13; endTimeMax=14; zoneType="Graze"; }; class Activity4 { endTimeMin=18; endTimeMax=19; zoneType="Graze"; }; class Activity5 { endTimeMin=20; endTimeMax=21; zoneType="Graze"; }; }; }; class DZSheepGroupBeh { type="DomesticHerbivores"; alertDistributionSpeed=0; groupMaxAlertedSpreadRadius=10; catchUpTestDelay=1; catchUpStartRadius=15; catchUpTargetRadius=5; groupRadius=10; spawnMinDistanceBetweenAgents=3; agentPathLength=30; atNeedMinDuration=60; atNeedMaxDuration=60; singleAgentSafeKeeperDelayMin=20; singleAgentSafeKeeperDelayMax=20; pauseLifeCycleAfterEscapeDuration=60; safeKeeperIntervalMin=10; safeKeeperIntervalMax=20; class LifeCycleDayTime { class Activity1 { endTimeMin=8; endTimeMax=9; zoneType="Rest"; }; class Activity2 { endTimeMin=10; endTimeMax=11; zoneType="Graze"; }; class Activity3 { endTimeMin=13; endTimeMax=14; zoneType="Graze"; }; class Activity4 { endTimeMin=18; endTimeMax=19; zoneType="Rest"; }; class Activity5 { endTimeMin=20; endTimeMax=21; zoneType="Graze"; }; }; }; class BlissBearGroupBeh { type="Bear"; agentPathLength=20; simpleLodGroupSpeed=1; singleAgentSafeKeeperDelayMin=30; singleAgentSafeKeeperDelayMax=50; safeKeeperIntervalMin=30; safeKeeperIntervalMax=50; class LifeCycleDayTime { class Activity1 { endTimeMin=8; endTimeMax=9; zoneType="Graze"; }; class Activity2 { endTimeMin=10; endTimeMax=11; zoneType="Graze"; }; class Activity3 { endTimeMin=13; endTimeMax=14; zoneType="Graze"; }; class Activity4 { endTimeMin=17; endTimeMax=18; zoneType="Graze"; }; class Activity5 { endTimeMin=20; endTimeMax=21; zoneType="Graze"; }; }; }; class ShredGroupBeh { type="Predators"; agentPathLength=20; simpleLodGroupSpeed=1; singleAgentSafeKeeperDelayMin=30; singleAgentSafeKeeperDelayMax=50; safeKeeperIntervalMin=30; safeKeeperIntervalMax=50; class LifeCycleDayTime { class Activity1 { endTimeMin=8; endTimeMax=9; zoneType="Graze"; }; class Activity2 { endTimeMin=10; endTimeMax=11; zoneType="Graze"; }; class Activity3 { endTimeMin=13; endTimeMax=14; zoneType="Graze"; }; class Activity4 { endTimeMin=17; endTimeMax=18; zoneType="Graze"; }; class Activity5 { endTimeMin=20; endTimeMax=21; zoneType="Graze"; }; }; }; }; class CfgAIBehaviours { class Predators_Wolf { HeadLookBoneName="pin_lookat"; teamName="Predator"; defaultGroupTemplateName="DZWolfGroupBeh"; class PathAgent { radius=0.30000001; height=1; lengthRadius=0.69999999; }; class BehaviourHLPredator { <<<<<<< HEAD instantAlertRangeMin=0; instantAlertRangeMax=0; instantAlertStrength=0; proximityAttackRange=2.5; attackCooldown=3; class SlotCalmGrazing ======= instantAlertRangeMin=20; instantAlertRangeMax=50; instantAlertStrength=7; class SlotCalmResting ======= class SlotCalmTravelling >>>>>>> Stashed changes { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=10; grazeOnSpotDurationMax=20; grazeWalkingDurationMin=25; grazeWalkingDurationMax=35; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=10; travelingDurationMax=50; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=4; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="TigerOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="TigerOnHunt"; }; }; }; class SlotAttracted { class BehaviourCalm { class SoundsEntering { class Sound1 { sounds[]= { "TigerHowls1_SoundSet", "TigerHowls1_tailDistant_SoundSet" }; }; class Sound2 { sounds[]= { "TigerHowls2_SoundSet", "TigerHowls2_tailDistant_SoundSet" }; }; class Sound3 { sounds[]= { "TigerHowls3_SoundSet", "TigerHowls3_tailDistant_SoundSet" }; }; class Sound4 { sounds[]= { "TigerHowls4_SoundSet", "TigerHowls4_tailDistant_SoundSet" }; }; class Sound5 { sounds[]= { "TigerHowls5_SoundSet", "TigerHowls5_tailDistant_SoundSet" }; }; class Sound6 { sounds[]= { "TigerHowls6_SoundSet", "TigerHowls6_tailDistant_SoundSet" }; }; class Sound7 { sounds[]= { "TigerHowls5_SoundSet", "TigerHowls7_tailDistant_SoundSet" }; }; class Sound8 { sounds[]= { "TigerHowls6_SoundSet", "TigerHowls8_tailDistant_SoundSet" }; }; probability=0.89999998; }; class SoundsDuring { class Sound1 { sounds[]= { "TigerHowl1_SoundSet", "TigerHowl1_tailDistant_SoundSet" }; }; class Sound2 { sounds[]= { "TigerHowl2_SoundSet", "TigerHowl2_tailDistant_SoundSet" }; }; class Sound3 { sounds[]= { "TigerHowl3_SoundSet", "TigerHowl3_tailDistant_SoundSet" }; }; class Sound4 { sounds[]= { "TigerHowl4_SoundSet", "TigerHowl4_tailDistant_SoundSet" }; }; class Sound5 { sounds[]= { "TigerHowl5_SoundSet", "TigerHowl5_tailDistant_SoundSet" }; }; class Sound6 { sounds[]= { "TigerHowl6_SoundSet", "TigerHowl6_tailDistant_SoundSet" }; }; class Sound7 { sounds[]= { "TigerHowl5_SoundSet", "TigerHowl7_tailDistant_SoundSet" }; }; class Sound8 { sounds[]= { "TigerHowl6_SoundSet", "TigerHowl8_tailDistant_SoundSet" }; }; probability=0.5; RepeatTimeMin=5; RepeatTimeMax=25; RepeatEnabled="true"; }; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=5; grazeWalkingDurationMax=10; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=50; travelingDurationMax=100; grazeWalkingSpeed=0.54400003; travelingWalkingSpeed=0.78200001; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="TigerOnHunt"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="TigerOnHunt"; }; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; }; }; class SlotFireplace >>>>>>> upstream/master { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=20; grazeWalkingWeight=20; <<<<<<< HEAD restWeight=0; travelWeight=0; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=500; grazeWalkingDurationMax=500; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=15; travelingDurationMax=30; grazeWalkingSpeed=0.2; travelingWalkingSpeed=1.36; safetyDurationMin=10; ======= restWeight=20; travelWeight=0; grazeOnSpotDurationMin=50; grazeOnSpotDurationMax=100; grazeWalkingDurationMin=50; grazeWalkingDurationMax=100; restingDurationMin=50; restingDurationMax=150; travelingDurationMin=0; travelingDurationMax=0; grazeWalkingSpeed=0.2; travelingWalkingSpeed=1.36; safetyIntervalMin=30; safetyIntervalMax=40; safetyDurationMin=5; >>>>>>> upstream/master safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; <<<<<<< HEAD slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; ======= slowRadius=0; stopRadius=0.5; >>>>>>> upstream/master }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; <<<<<<< HEAD slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotSiege { class BehaviourSiege { class SoundsEntering { class Sound1 { sounds[]= { "WolfPant0_SoundSet" }; }; class Sound2 { sounds[]= { "WolfPant1_SoundSet" }; }; class Sound3 { sounds[]= { "WolfPant2_SoundSet" }; }; probability=1; }; class SoundsDuring { class Sound1 { sounds[]= { "WolfPant3_SoundSet" }; }; class Sound2 { sounds[]= { "WolfPant4_SoundSet" }; }; class Sound3 { sounds[]= { "WolfPant5_SoundSet" }; }; class Sound4 { sounds[]= { "WolfPant6_SoundSet" }; }; class Sound5 { sounds[]= { "WolfPant7_SoundSet" }; }; class Sound6 { sounds[]= { "WolfGrowl0_SoundSet" }; }; class Sound7 { sounds[]= { "WolfGrowl1_SoundSet" }; }; class Sound8 { sounds[]= { "WolfGrowl2_SoundSet" }; }; probability=0.40000001; RepeatTimeMin=5; RepeatTimeMax=15; RepeatEnabled="true"; }; innerRadius=7; innerRadiusMin=4.5; innerRadiusMax=10; outerRadius=16; directionChangeTimeMin=7; directionChangeTimeMax=25; PlayerFOV=1.4; preferPlayerFOVCooldown=1; attackDistance=3.5; class InnerCircleMovement { maxSpeed=6.3000002; optimalSpeed=6.3000002; optimalSpeedRange=1; minSpeed=1; acceleration=7; maxAngleSpeed=90; slowRadius=0; stopRadius=2; maxSpeedRange=2; pathFilter="WolfOnHunt"; startAnimationMaxSpeed=0.54000002; }; class Movement { maxSpeed=9; optimalSpeed=6.3000002; optimalSpeedRange=15; minSpeed=1; acceleration=10; maxAngleSpeed=180; slowRadius=0; stopRadius=2; maxSpeedRange=20; pathFilter="WolfOnOuterCircle"; startAnimationMaxSpeed=0.54000002; }; class AttackMovement { maxSpeed=12.175; optimalSpeed=12; optimalSpeedRange=6; minSpeed=0.80000001; acceleration=10; maxAngleSpeed=180; slowRadius=2; stopRadius=3; maxSpeedRange=30; pathFilter="WolfOnHunt"; }; }; }; class SlotEating { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=20; eatingWeight=20; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=10; grazeWalkingDurationMax=15; restingDurationMin=15; restingDurationMax=25; travelingDurationMin=15; travelingDurationMax=30; eatingDurationMin=15; eatingDurationMax=25; safetyDurationMin=10; safetyDurationMax=20; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotHunting { class BehaviourHunt { attackRange=3.5; followingRadius=15; followingRadiusReqroupCooldownMin=5; followingRadiusReqroupCooldownMax=15; followingRadiusRegroupMinSpeed=1.5; predictFollowingMinDistance=10; minDistanceToTargetRatio=0.30000001; class SoundsEntering ======= slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotScared { class BehaviourFleeFromTargets { class SoundsEntering { class Sound1 { sounds[]= { "TigerGroans1_SoundSet" }; }; class Sound2 { sounds[]= { "TigerGroans2_SoundSet" }; }; class Sound3 { sounds[]= { "TigerGroans3_SoundSet" }; }; probability=1; }; class SoundsDuring >>>>>>> upstream/master { class Sound1 { sounds[]= { <<<<<<< HEAD "WolfBark3_0_SoundSet" }; }; probability=0.30000001; }; class SoundsDuring { class Sound1 { sounds[]= { "WolfBark2_0_SoundSet" }; }; class Sound2 { sounds[]= { "WolfBark2_1_SoundSet" }; }; class Sound3 { sounds[]= { "WolfBark2_2_SoundSet" }; }; class Sound4 { sounds[]= { "WolfBark2_3_SoundSet" }; }; class Sound5 { sounds[]= { "WolfBark2_4_SoundSet" }; }; probability=1; RepeatTimeMin=10; RepeatTimeMax=30; RepeatEnabled="true"; }; class Movement { maxSpeed=10; optimalSpeed=9.5; minSpeed=1; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; maxSpeedRange=15; optimalSpeedRange=5; pathFilter="WolfOnHunt"; }; class MovementAttack { maxSpeed=12.175; optimalSpeed=12.175; minSpeed=6; acceleration=20; maxAngleSpeed=360; slowRadius=0; stopRadius=0; maxSpeedRange=3; optimalSpeedRange=1; pathFilter="WolfOnHunt"; }; }; }; ======= "TigerGroans1_SoundSet" }; }; class Sound2 { sounds[]= { "TigerGroans2_SoundSet" }; }; class Sound3 { sounds[]= { "TigerGroans3_SoundSet" }; }; probability=0.30000001; RepeatTimeMin=5; RepeatTimeMax=25; RepeatEnabled="true"; }; class RunMovement { maxSpeed=12.175; optimalSpeed=6.3899999; minSpeed=1; acceleration=2; maxAngleSpeed=360; slowRadius=4; stopRadius=0; maxSpeedRange=15; optimalSpeedRange=10; pathFilter="DeerOnRun"; }; }; }; class AlertSystem { visionToAlertMultiplier=10; noiseToAlertMultiplier=1; damageToAlertMultiplier=200; class Calm { dropSpeed=3; dropDelay=2; maxAlertValue=30; }; class Alerted { dropSpeed=11; dropDelay=0; maxAlertValue=100; }; class AlertedExtra { dropSpeed=25; dropDelay=10; maxAlertValue=500; }; }; }; class NoiseSystemParams { rangeMin=25; rangeMax=100; rangeShotMin=0; rangeShotMax=50; class NoiseStrengthTeamMultipliers { BigGame=0.40000001; Zombies=0.60000002; Player=1; }; }; class TargetSystemDZBase { class VisionTeamMultipliers { BigGame=0.60000002; Zombies=1; Player=1; Predators=1; }; visionManSizeStand=1; visionManSizeCrouch=0.80000001; visionManSizeProne=0.60000002; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=1.5; visionRangeMin=100; visionRangeMax=200; visionFov=1.8; visionPeripheralRangeMin=1; visionPeripheralRangeMax=16; visionPeripheralFov=6.1999998; visionNightMinMult=1; visionNightMaxMult=0.75; visionRainMinMult=1; visionRainMaxMult=0.89999998; visionFogMinMult=1; visionFogMaxMult=0.69999999; }; }; }; class CfgDamages { class TigerBiteDamage { bone="tongue2"; ammo="MeleeTiger"; radius=0.40000001; duration=0.2; }; class TigerLowBiteDamage { bone="tongue2"; ammo="MeleeTiger"; radius=0.40000001; duration=0.2; }; }; class CfgAmmo { class MeleeDamage; class MeleeTiger: MeleeDamage { class DamageApplied { type="Melee"; bleedThreshold=0.85000002; class Health { damage=45; }; class Blood { damage=175; }; class Shock { damage=35; }; additionAnimalMeleeMultiplier=8; }; soundGroundSoft1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_01", 0.5, 1, 60 }; soundGroundSoft2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_02", 0.5, 1, 60 }; soundGroundSoft3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_03", 0.5, 1, 60 }; soundGroundSoft4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_04", 0.5, 1, 60 }; soundGroundSoft5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_05", 0.5, 1, 60 }; soundGroundSoft6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_06", 0.5, 1, 60 }; soundGroundSoft7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_07", 0.5, 1, 60 }; <<<<<<< Updated upstream class BehaviourHLDeer { instantAlertRangeMin=20; instantAlertRangeMax=50; instantAlertStrength=6; >>>>>>> upstream/master class SlotCalmResting { class BehaviourCalm { <<<<<<< HEAD travelingMode="true"; grazeOnSpotWeight=50; grazeWalkingWeight=50; restWeight=50; travelWeight=0; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=15; grazeWalkingDurationMax=25; restingDurationMin=25; restingDurationMax=35; travelingDurationMin=15; travelingDurationMax=30; safetyDurationMin=10; safetyDurationMax=10; ======= grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=50; travelWeight=0; grazeOnSpotDurationMin=40; grazeOnSpotDurationMax=80; grazeWalkingDurationMin=40; grazeWalkingDurationMax=80; restingDurationMin=40; restingDurationMax=60; travelingDurationMin=20; travelingDurationMax=20; safetyDurationMin=14; safetyDurationMax=24; >>>>>>> upstream/master safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.13500001; minSpeed=0.13500001; acceleration=5; <<<<<<< HEAD maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; ======= maxAngleSpeed=5; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=0.89999998; minSpeed=0.52999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="RoeDeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.54000002; }; class CatchUpMovement { maxSpeed=0.89999998; minSpeed=0.52999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="RoeDeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.54000002; }; }; }; class SlotCalmGrazing { class BehaviourCalm { class SoundsDuring { sounds[]= { "dz\sounds\effects\animals\deer\bark_roe\bark_0", "dz\sounds\effects\animals\deer\bark_roe\bark_1", "dz\sounds\effects\animals\deer\bark_roe\bark_2", "dz\sounds\effects\animals\deer\bark_roe\bark_3", "dz\sounds\effects\animals\deer\bark_roe\bark_4", "dz\sounds\effects\animals\deer\bark_roe\bark_5", "dz\sounds\effects\animals\deer\bark_roe\bark_6", "dz\sounds\effects\animals\deer\bark_roe\bark_7" }; volume=0.80000001; distance=100; probability=0.5; RepeatTimeMin=10; RepeatTimeMax=50; RepeatEnabled="true"; }; travelingMode="false"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=20; travelWeight=0; grazeOnSpotDurationMin=10; grazeOnSpotDurationMax=50; grazeWalkingDurationMin=20; grazeWalkingDurationMax=40; restingDurationMin=20; restingDurationMax=20; travelingDurationMin=20; travelingDurationMax=20; safetyDurationMin=14; safetyDurationMax=24; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.13500001; minSpeed=0.13500001; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=0.89999998; minSpeed=0.52999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="RoeDeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.54000002; }; class CatchUpMovement { maxSpeed=0.89999998; minSpeed=0.52999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="RoeDeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.54000002; >>>>>>> upstream/master }; }; }; class SlotCalmTravelling { class BehaviourCalm { <<<<<<< HEAD ======= class SoundsDuring { sounds[]= { "dz\sounds\effects\animals\deer\bark_roe\bark_0", "dz\sounds\effects\animals\deer\bark_roe\bark_1", "dz\sounds\effects\animals\deer\bark_roe\bark_2", "dz\sounds\effects\animals\deer\bark_roe\bark_3", "dz\sounds\effects\animals\deer\bark_roe\bark_4", "dz\sounds\effects\animals\deer\bark_roe\bark_5", "dz\sounds\effects\animals\deer\bark_roe\bark_6", "dz\sounds\effects\animals\deer\bark_roe\bark_7" }; volume=0.80000001; distance=100; probability=0.5; RepeatTimeMin=10; RepeatTimeMax=50; RepeatEnabled="true"; }; >>>>>>> upstream/master travelingMode="true"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; <<<<<<< HEAD grazeOnSpotDurationMin=10; grazeOnSpotDurationMax=20; grazeWalkingDurationMin=25; grazeWalkingDurationMax=35; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=10; travelingDurationMax=50; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=4; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; ======= grazeOnSpotDurationMin=15; grazeOnSpotDurationMax=20; grazeWalkingDurationMin=15; grazeWalkingDurationMax=20; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=40; travelingDurationMax=60; safetyDurationMin=14; safetyDurationMax=24; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.13500001; minSpeed=0.13500001; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=0.89999998; minSpeed=0.52999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="RoeDeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.54000002; }; class CatchUpMovement { maxSpeed=0.89999998; minSpeed=0.52999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="RoeDeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.54000002; }; }; }; class SlotDrinking { class BehaviourCalm { class SoundsDuring { sounds[]= { "dz\sounds\effects\animals\deer\bark_roe\bark_0", "dz\sounds\effects\animals\deer\bark_roe\bark_1", "dz\sounds\effects\animals\deer\bark_roe\bark_2", "dz\sounds\effects\animals\deer\bark_roe\bark_3", "dz\sounds\effects\animals\deer\bark_roe\bark_4", "dz\sounds\effects\animals\deer\bark_roe\bark_5", "dz\sounds\effects\animals\deer\bark_roe\bark_6", "dz\sounds\effects\animals\deer\bark_roe\bark_7" }; volume=0.80000001; distance=100; probability=0.5; RepeatTimeMin=10; RepeatTimeMax=50; RepeatEnabled="true"; }; travelingMode="true"; grazeOnSpotWeight=10; grazeWalkingWeight=10; restWeight=10; travelWeight=0; drinkingWeight=20; grazeOnSpotDurationMin=10; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=10; grazeWalkingDurationMax=10; restingDurationMin=0; restingDurationMax=0; travelingDurationMin=20; travelingDurationMax=20; drinkingDurationMin=15; drinkingDurationMax=20; grazeWalkingSpeed=0.17900001; travelingWalkingSpeed=1.196; safetyDurationMin=14; safetyDurationMax=24; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class DrinkingMovement { maxSpeed=0.89999998; minSpeed=0.52999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="RoeDeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.54000002; >>>>>>> upstream/master }; class GrazeMovement { maxSpeed=0.13500001; minSpeed=0.13500001; acceleration=5; <<<<<<< HEAD maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; ======= maxAngleSpeed=5; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=0.89999998; minSpeed=0.52999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="RoeDeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.54000002; }; class CatchUpMovement { maxSpeed=0.89999998; minSpeed=0.52999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="RoeDeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.54000002; >>>>>>> upstream/master }; }; }; class SlotAttracted { class BehaviourCalm { class SoundsEntering { <<<<<<< HEAD class Sound1 { sounds[]= { "WolfHowls1_SoundSet", "WolfHowls1_tailDistant_SoundSet" }; }; class Sound2 { sounds[]= { "WolfHowls2_SoundSet", "WolfHowls2_tailDistant_SoundSet" }; }; class Sound3 { sounds[]= { "WolfHowls3_SoundSet", "WolfHowls3_tailDistant_SoundSet" }; }; class Sound4 { sounds[]= { "WolfHowls4_SoundSet", "WolfHowls4_tailDistant_SoundSet" }; }; class Sound5 { sounds[]= { "WolfHowls5_SoundSet", "WolfHowls5_tailDistant_SoundSet" }; }; class Sound6 { sounds[]= { "WolfHowls6_SoundSet", "WolfHowls6_tailDistant_SoundSet" }; }; class Sound7 { sounds[]= { "WolfHowls5_SoundSet", "WolfHowls7_tailDistant_SoundSet" }; }; class Sound8 { sounds[]= { "WolfHowls6_SoundSet", "WolfHowls8_tailDistant_SoundSet" }; }; probability=0.89999998; }; class SoundsDuring ======= sounds[]= { "dz\sounds\effects\animals\deer\bark_roe\bark_0", "dz\sounds\effects\animals\deer\bark_roe\bark_1", "dz\sounds\effects\animals\deer\bark_roe\bark_2", "dz\sounds\effects\animals\deer\bark_roe\bark_3", "dz\sounds\effects\animals\deer\bark_roe\bark_4", "dz\sounds\effects\animals\deer\bark_roe\bark_5", "dz\sounds\effects\animals\deer\bark_roe\bark_6", "dz\sounds\effects\animals\deer\bark_roe\bark_7" }; volume=0.80000001; distance=100; probability=0.80000001; }; class SoundsDuring { sounds[]= { "dz\sounds\effects\animals\deer\bark_roe\bark_0", "dz\sounds\effects\animals\deer\bark_roe\bark_1", "dz\sounds\effects\animals\deer\bark_roe\bark_2", "dz\sounds\effects\animals\deer\bark_roe\bark_3", "dz\sounds\effects\animals\deer\bark_roe\bark_4", "dz\sounds\effects\animals\deer\bark_roe\bark_5", "dz\sounds\effects\animals\deer\bark_roe\bark_6", "dz\sounds\effects\animals\deer\bark_roe\bark_7" }; volume=0.80000001; distance=100; probability=0.30000001; RepeatTimeMin=10; RepeatTimeMax=30; RepeatEnabled="true"; }; walkAwayWeight=0; walkToWeight=10; stayLookAtWeight=20; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=1.5; walkToInitialAngle=2; walkAwayDurationMin=5; walkAwayDurationMax=10; walkToDurationMin=7; walkToDurationMax=14; stayLookAtDurationMin=10; stayLookAtDurationMax=20; stayDurationMin=5; stayDurationMax=10; pathLength=10; class WalkingMovement { maxSpeed=0.89999998; minSpeed=0.52999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="RoeDeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.54000002; }; }; }; class SlotSpecificThreat { class BehaviourSpecificThreat { class SoundsEntering { sounds[]= { "dz\sounds\effects\animals\deer\bark_roe\bark_0", "dz\sounds\effects\animals\deer\bark_roe\bark_1", "dz\sounds\effects\animals\deer\bark_roe\bark_2", "dz\sounds\effects\animals\deer\bark_roe\bark_3", "dz\sounds\effects\animals\deer\bark_roe\bark_4", "dz\sounds\effects\animals\deer\bark_roe\bark_5", "dz\sounds\effects\animals\deer\bark_roe\bark_6", "dz\sounds\effects\animals\deer\bark_roe\bark_7" }; volume=0.80000001; distance=100; probability=0.80000001; }; class SoundsDuring { sounds[]= { "dz\sounds\effects\animals\deer\bark_roe\bark_0", "dz\sounds\effects\animals\deer\bark_roe\bark_1", "dz\sounds\effects\animals\deer\bark_roe\bark_2", "dz\sounds\effects\animals\deer\bark_roe\bark_3", "dz\sounds\effects\animals\deer\bark_roe\bark_4", "dz\sounds\effects\animals\deer\bark_roe\bark_5", "dz\sounds\effects\animals\deer\bark_roe\bark_6", "dz\sounds\effects\animals\deer\bark_roe\bark_7" }; volume=0.80000001; distance=150; probability=0.30000001; RepeatTimeMin=10; RepeatTimeMax=30; RepeatEnabled="true"; }; walkAwayWeight=10; walkToWeight=10; stayLookAtWeight=20; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=1.5; walkToInitialAngle=2; walkAwayDurationMin=10; walkAwayDurationMax=20; walkToDurationMin=7; walkToDurationMax=15; stayLookAtDurationMin=10; stayLookAtDurationMax=20; stayDurationMin=5; stayDurationMax=10; pathLength=10; class WalkingMovement { maxSpeed=0.89999998; minSpeed=0.52999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="RoeDeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.54000002; }; }; }; class SlotAlerted { class BehaviourFleeFromTargets { class SoundsEntering >>>>>>> upstream/master { class Sound1 { sounds[]= { <<<<<<< HEAD "WolfHowl1_SoundSet", "WolfHowl1_tailDistant_SoundSet" ======= "DeerAmbush1_SoundSet", "DeerAmbush1_tailForest_SoundSet" >>>>>>> upstream/master }; }; class Sound2 { sounds[]= { <<<<<<< HEAD "WolfHowl2_SoundSet", "WolfHowl2_tailDistant_SoundSet" ======= "DeerAmbush2_SoundSet", "DeerAmbush2_tailForest_SoundSet" >>>>>>> upstream/master }; }; class Sound3 { sounds[]= { <<<<<<< HEAD "WolfHowl3_SoundSet", "WolfHowl3_tailDistant_SoundSet" ======= "DeerAmbush3_SoundSet", "DeerAmbush3_tailForest_SoundSet" >>>>>>> upstream/master }; }; class Sound4 { sounds[]= { <<<<<<< HEAD "WolfHowl4_SoundSet", "WolfHowl4_tailDistant_SoundSet" ======= "DeerAmbush4_SoundSet", "DeerAmbush4_tailForest_SoundSet" >>>>>>> upstream/master }; }; class Sound5 { sounds[]= { <<<<<<< HEAD "WolfHowl5_SoundSet", "WolfHowl5_tailDistant_SoundSet" ======= "DeerAmbush5_SoundSet", "DeerAmbush5_tailForest_SoundSet" >>>>>>> upstream/master }; }; class Sound6 { sounds[]= { <<<<<<< HEAD "WolfHowl6_SoundSet", "WolfHowl6_tailDistant_SoundSet" }; }; class Sound7 { sounds[]= { "WolfHowl5_SoundSet", "WolfHowl7_tailDistant_SoundSet" }; }; class Sound8 { sounds[]= { "WolfHowl6_SoundSet", "WolfHowl8_tailDistant_SoundSet" }; }; probability=0.5; RepeatTimeMin=5; RepeatTimeMax=25; RepeatEnabled="true"; ======= "DeerAmbush6_SoundSet", "DeerAmbush6_tailForest_SoundSet" }; }; probability=1; }; minDistanceToTargetRatio=0.5; class SoundsDuring { sounds[]= { "dz\sounds\effects\animals\deer\bark_roe\bark_0", "dz\sounds\effects\animals\deer\bark_roe\bark_1", "dz\sounds\effects\animals\deer\bark_roe\bark_2", "dz\sounds\effects\animals\deer\bark_roe\bark_3", "dz\sounds\effects\animals\deer\bark_roe\bark_4", "dz\sounds\effects\animals\deer\bark_roe\bark_5", "dz\sounds\effects\animals\deer\bark_roe\bark_6", "dz\sounds\effects\animals\deer\bark_roe\bark_7" }; volume=0.80000001; distance=200; probability=0.30000001; RepeatTimeMin=10; RepeatTimeMax=30; RepeatEnabled="true"; }; class RunMovement { maxSpeed=11.76; optimalSpeed=9.6000004; minSpeed=0.89999998; maxSpeedRange=50; optimalSpeedRange=25; acceleration=7; maxAngleSpeed=70; slowRadius=4; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="RoeDeerOnRun"; startAnimationMaxSpeed=0.91000003; >>>>>>> upstream/master }; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=5; grazeWalkingDurationMax=10; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=50; travelingDurationMax=100; grazeWalkingSpeed=0.54400003; travelingWalkingSpeed=0.78200001; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class TravelingMovement { <<<<<<< HEAD maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="WolfOnHunt"; ======= maxSpeed=1.35; optimalSpeed=1.35; minSpeed=0; maxSpeedRange=30; optimalSpeedRange=25; acceleration=2; maxAngleSpeed=1; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="DeerOnRun"; startAnimationMaxSpeed=0.91000003; >>>>>>> upstream/master }; class CatchUpMovement { <<<<<<< HEAD maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="WolfOnHunt"; }; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; }; }; class SlotFireplace ======= maxSpeed=0.1; optimalSpeed=0; minSpeed=0; maxSpeedRange=30; optimalSpeedRange=25; acceleration=2; maxAngleSpeed=1; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="DeerOnRun"; startAnimationMaxSpeed=0.91000003; }; }; }; class AlertSystem { visionToAlertMultiplier=7; noiseToAlertMultiplier=1; damageToAlertMultiplier=1000000; class Calm { dropSpeed=5; dropDelay=1; maxAlertValue=25; }; class NonSpecificThreat { dropSpeed=5; dropDelay=10; maxAlertValue=50; }; class SpecificThreat { dropSpeed=2; dropDelay=10; maxAlertValue=75; }; class Alerted { dropSpeed=10; dropDelay=10; maxAlertValue=100; }; }; }; class NoiseSystemParams { rangeMin=20; rangeMax=70; rangeShotMin=100; rangeShotMax=300; class NoiseStrengthTeamMultipliers { BigGame=0.80000001; Zombies=1; Player=1; }; }; class TargetSystemDZBase { class VisionTeamMultipliers { BigGame=1; Zombies=1; Player=1; Predator=10; }; visionManSizeStand=1; visionManSizeCrouch=0.80000001; visionManSizeProne=0.5; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=1.5; visionRangeMin=5; visionRangeMax=50; visionFov=2; visionPeripheralRangeMin=1; visionPeripheralRangeMax=30; visionPeripheralFov=3.2; visionNightMinMult=1; visionNightMaxMult=0.75; visionRainMinMult=1; visionRainMaxMult=0.89999998; visionFogMinMult=1; visionFogMaxMult=0.69999999; }; }; class Herbivores_CapraHircus { HeadLookBoneName="pin_lookat"; teamName="BigGame"; defaultGroupTemplateName="DZSheepGroupBeh"; class PathAgent { radius=0.2; height=1; }; class BehaviourHLDomestic { instantAlertRangeMin=10; instantAlertRangeMax=40; instantAlertStrength=9; agentPathLength=30; agentPathUpdateDelta=1; agentPathMinLength=2; class SlotCalmResting >>>>>>> upstream/master { class BehaviourCalm { grazeOnSpotWeight=20; <<<<<<< HEAD grazeWalkingWeight=20; restWeight=20; travelWeight=0; grazeOnSpotDurationMin=50; grazeOnSpotDurationMax=100; grazeWalkingDurationMin=50; grazeWalkingDurationMax=100; restingDurationMin=50; restingDurationMax=150; travelingDurationMin=0; travelingDurationMax=0; grazeWalkingSpeed=0.2; travelingWalkingSpeed=1.36; safetyIntervalMin=30; safetyIntervalMax=40; safetyDurationMin=5; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotScared { class BehaviourFleeFromTargets { class SoundsEntering { class Sound1 { sounds[]= { "WolfGroans1_SoundSet" }; }; class Sound2 { sounds[]= { "WolfGroans2_SoundSet" }; }; class Sound3 { sounds[]= { "WolfGroans3_SoundSet" }; }; probability=1; ======= grazeWalkingWeight=10; restWeight=20; travelWeight=0; grazeOnSpotDurationMin=40; grazeOnSpotDurationMax=120; grazeWalkingDurationMin=40; grazeWalkingDurationMax=120; restingDurationMin=60; restingDurationMax=180; travelingDurationMin=0; travelingDurationMax=0; safetyDurationMin=15; safetyDurationMax=35; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.11; minSpeed=0.11; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; pathFilter="NoJumping"; }; class TravelingMovement { maxSpeed=0.83999997; minSpeed=0.41; acceleration=5; maxAngleSpeed=90; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.41999999; >>>>>>> upstream/master }; class CatchUpMovement { <<<<<<< HEAD class Sound1 { sounds[]= { "WolfGroan1_SoundSet" }; }; class Sound2 { sounds[]= { "WolfGroan2_SoundSet" }; }; class Sound3 { sounds[]= { "WolfGroan3_SoundSet" }; }; probability=0.30000001; RepeatTimeMin=5; RepeatTimeMax=25; RepeatEnabled="true"; ======= maxSpeed=0.83999997; minSpeed=0.41; acceleration=5; maxAngleSpeed=90; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.41999999; >>>>>>> upstream/master }; class RunMovement { maxSpeed=12.175; optimalSpeed=6.3899999; minSpeed=1; acceleration=2; maxAngleSpeed=360; slowRadius=4; stopRadius=0; maxSpeedRange=15; optimalSpeedRange=10; pathFilter="DeerOnRun"; }; }; }; <<<<<<< HEAD class AlertSystem { visionToAlertMultiplier=10; noiseToAlertMultiplier=1; damageToAlertMultiplier=200; class Calm { dropSpeed=3; dropDelay=2; maxAlertValue=30; }; class Alerted { dropSpeed=11; dropDelay=0; maxAlertValue=100; }; class AlertedExtra { dropSpeed=25; dropDelay=10; maxAlertValue=500; }; }; }; class NoiseSystemParams { rangeMin=25; rangeMax=100; rangeShotMin=0; rangeShotMax=50; class NoiseStrengthTeamMultipliers { BigGame=0.40000001; Zombies=0.60000002; Player=1; }; }; class TargetSystemDZBase { class VisionTeamMultipliers { BigGame=0.60000002; Zombies=1; Player=1; }; visionManSizeStand=1; visionManSizeCrouch=0.80000001; visionManSizeProne=0.60000002; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=1.5; visionRangeMin=100; visionRangeMax=200; visionFov=1.8; visionPeripheralRangeMin=1; visionPeripheralRangeMax=16; visionPeripheralFov=6.1999998; visionNightMinMult=1; visionNightMaxMult=0.75; visionRainMinMult=1; visionRainMaxMult=0.89999998; visionFogMinMult=1; visionFogMaxMult=0.69999999; }; }; class Predators_Shred { HeadLookBoneName="pin_lookat"; teamName="Shred"; defaultGroupTemplateName="ShredGroupBeh"; class PathAgent { radius=0.30000001; height=1; lengthRadius=0.69999999; }; class BehaviourHLPredator { instantAlertRangeMin=0; instantAlertRangeMax=0; instantAlertStrength=0; proximityAttackRange=2.5; attackCooldown=3; ======= >>>>>>> upstream/master class SlotCalmGrazing { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=20; grazeWalkingWeight=20; <<<<<<< HEAD restWeight=0; travelWeight=0; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=500; grazeWalkingDurationMax=500; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=15; travelingDurationMax=30; grazeWalkingSpeed=0.2; travelingWalkingSpeed=1.36; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotSiege ======= restWeight=10; travelWeight=0; grazeOnSpotDurationMin=40; grazeOnSpotDurationMax=120; grazeWalkingDurationMin=40; grazeWalkingDurationMax=120; restingDurationMin=60; restingDurationMax=180; travelingDurationMin=0; travelingDurationMax=0; safetyDurationMin=15; safetyDurationMax=35; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.11; minSpeed=0.11; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; pathFilter="NoJumping"; }; class TravelingMovement { maxSpeed=0.83999997; minSpeed=0.41; acceleration=5; maxAngleSpeed=90; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.41999999; }; class CatchUpMovement { maxSpeed=0.83999997; minSpeed=0.41; acceleration=5; maxAngleSpeed=90; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.41999999; }; }; }; class SlotDrinking >>>>>>> upstream/master { class BehaviourSiege { <<<<<<< HEAD class SoundsEntering { class Sound1 { sounds[]= { "WolfPant0_SoundSet" }; }; class Sound2 { sounds[]= { "WolfPant1_SoundSet" }; }; class Sound3 { sounds[]= { "WolfPant2_SoundSet" }; }; probability=1; ======= grazeOnSpotWeight=10; grazeWalkingWeight=10; restWeight=10; travelWeight=0; drinkingWeight=20; grazeOnSpotDurationMin=20; grazeOnSpotDurationMax=30; grazeWalkingDurationMin=20; grazeWalkingDurationMax=30; restingDurationMin=20; restingDurationMax=30; travelingDurationMin=0; travelingDurationMax=20; drinkingDurationMin=40; drinkingDurationMax=60; safetyDurationMin=15; safetyDurationMax=35; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class DrinkingMovement { maxSpeed=0.83999997; minSpeed=0.41; acceleration=5; maxAngleSpeed=90; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.41999999; }; class GrazeMovement { maxSpeed=0.11; minSpeed=0.11; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; pathFilter="NoJumping"; >>>>>>> upstream/master }; class SoundsDuring { <<<<<<< HEAD class Sound1 { sounds[]= { "WolfPant3_SoundSet" }; }; class Sound2 { sounds[]= { "WolfPant4_SoundSet" }; }; class Sound3 { sounds[]= { "WolfPant5_SoundSet" }; }; class Sound4 { sounds[]= { "WolfPant6_SoundSet" }; }; class Sound5 { sounds[]= { "WolfPant7_SoundSet" }; }; class Sound6 { sounds[]= { "WolfGrowl0_SoundSet" }; }; class Sound7 { sounds[]= { "WolfGrowl1_SoundSet" }; }; class Sound8 { sounds[]= { "WolfGrowl2_SoundSet" }; }; probability=0.40000001; RepeatTimeMin=5; RepeatTimeMax=15; RepeatEnabled="true"; }; innerRadius=7; innerRadiusMin=4.5; innerRadiusMax=10; outerRadius=16; directionChangeTimeMin=7; directionChangeTimeMax=25; PlayerFOV=1.4; preferPlayerFOVCooldown=1; attackDistance=3.5; class InnerCircleMovement { maxSpeed=6.3000002; optimalSpeed=6.3000002; optimalSpeedRange=1; minSpeed=1; acceleration=7; maxAngleSpeed=90; slowRadius=0; stopRadius=2; maxSpeedRange=2; pathFilter="WolfOnHunt"; startAnimationMaxSpeed=0.54000002; }; class Movement { maxSpeed=9; optimalSpeed=6.3000002; optimalSpeedRange=15; minSpeed=1; acceleration=10; maxAngleSpeed=180; slowRadius=0; stopRadius=2; maxSpeedRange=20; pathFilter="WolfOnOuterCircle"; startAnimationMaxSpeed=0.54000002; }; class AttackMovement { maxSpeed=12.175; optimalSpeed=12; optimalSpeedRange=6; minSpeed=0.80000001; acceleration=10; maxAngleSpeed=180; slowRadius=2; stopRadius=3; maxSpeedRange=30; pathFilter="WolfOnHunt"; }; }; }; class SlotEating ======= maxSpeed=0.83999997; minSpeed=0.41; acceleration=5; maxAngleSpeed=90; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.41999999; }; class CatchUpMovement { maxSpeed=0.83999997; minSpeed=0.41; acceleration=5; maxAngleSpeed=90; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.41999999; }; }; }; class SlotCalmTravelling >>>>>>> upstream/master { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; <<<<<<< HEAD travelWeight=20; eatingWeight=20; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=10; grazeWalkingDurationMax=15; restingDurationMin=15; restingDurationMax=25; travelingDurationMin=15; travelingDurationMax=30; eatingDurationMin=15; eatingDurationMax=25; safetyDurationMin=10; safetyDurationMax=20; ======= travelWeight=50; grazeOnSpotDurationMin=20; grazeOnSpotDurationMax=50; grazeWalkingDurationMin=20; grazeWalkingDurationMax=50; restingDurationMin=20; restingDurationMax=25; travelingDurationMin=20; travelingDurationMax=40; safetyDurationMin=15; safetyDurationMax=35; >>>>>>> upstream/master safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { <<<<<<< HEAD maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; ======= maxSpeed=0.11; minSpeed=0.11; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; pathFilter="NoJumping"; }; class TravelingMovement { maxSpeed=0.83999997; minSpeed=0.41; acceleration=5; maxAngleSpeed=90; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.41999999; }; class CatchUpMovement { maxSpeed=0.83999997; minSpeed=0.41; acceleration=5; maxAngleSpeed=90; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.41999999; >>>>>>> upstream/master }; }; }; class SlotHunting { class BehaviourHunt { <<<<<<< HEAD attackRange=3.5; followingRadius=15; followingRadiusReqroupCooldownMin=5; followingRadiusReqroupCooldownMax=15; followingRadiusRegroupMinSpeed=1.5; predictFollowingMinDistance=10; minDistanceToTargetRatio=0.30000001; class SoundsEntering { class Sound1 { sounds[]= { "WolfBark3_0_SoundSet" }; }; probability=0.30000001; }; class SoundsDuring { class Sound1 { sounds[]= { "WolfBark2_0_SoundSet" }; }; class Sound2 { sounds[]= { "WolfBark2_1_SoundSet" }; }; class Sound3 { sounds[]= { "WolfBark2_2_SoundSet" }; }; class Sound4 { sounds[]= { "WolfBark2_3_SoundSet" }; }; class Sound5 { sounds[]= { "WolfBark2_4_SoundSet" }; }; probability=1; RepeatTimeMin=10; RepeatTimeMax=30; RepeatEnabled="true"; }; class Movement { maxSpeed=10; optimalSpeed=9.5; minSpeed=1; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; maxSpeedRange=15; optimalSpeedRange=5; pathFilter="WolfOnHunt"; ======= walkAwayWeight=0; walkToWeight=10; stayLookAtWeight=10; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=1.5; walkToInitialAngle=1; walkAwayDurationMin=5; walkAwayDurationMax=15; walkToDurationMin=5; walkToDurationMax=15; stayLookAtDurationMin=10; stayLookAtDurationMax=20; stayDurationMin=20; stayDurationMax=30; pathLength=10; class WalkingMovement { maxSpeed=0.83999997; minSpeed=0.41; acceleration=5; maxAngleSpeed=90; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.41999999; }; }; }; class SlotSpecificThreat { class SlotEvents { class EventsEntering { }; class EventsDuring { class PeriodicEventRepeatAlert_OvisAriesSlotSpec { repeatTimeMin=1; repeatTimeMax=4; class AlertImpulseActionRepeatAlert_OvisAriesSlotSpec { value=0; range=10; }; }; }; }; class BehaviourSpecificThreat { walkAwayWeight=10; walkToWeight=0; stayLookAtWeight=0; stayWeight=0; walkAwaySpreadAngle=0.5; walkAwayInitialAngle=1; walkToSpreadAngle=1.5; walkToInitialAngle=1; walkAwayDurationMin=5; walkAwayDurationMax=15; walkToDurationMin=5; walkToDurationMax=15; stayLookAtDurationMin=10; stayLookAtDurationMax=20; stayDurationMin=20; stayDurationMax=30; pathLength=10; class WalkingMovement { maxSpeed=6; optimalSpeed=2.8; minSpeed=2.1199999; maxSpeedRange=30; optimalSpeedRange=20; acceleration=4; maxAngleSpeed=90; slowRadius=4; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=2.1300001; }; }; }; class SlotAlerted { class SlotEvents { class EventsEntering { class OneTimeEventSendAlert_OvisAriesSlotAlert { class AlertImpulseActionSendAlert_OvisAriesSlotAlert { value=50; range=10; }; }; }; class EventsDuring { class PeriodicEventRepeatAlert_OvisAriesSlotAlert { repeatTimeMin=1; repeatTimeMax=4; class AlertImpulseActionRepeatAlert_OvisAriesSlotAlert { value=0; range=10; }; }; }; }; class BehaviourGoToTarget { class Movement { maxSpeed=10.44; optimalSpeed=6; minSpeed=0.41; maxSpeedRange=30; optimalSpeedRange=25; acceleration=2; maxAngleSpeed=60; slowRadius=6; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=0.41999999; }; class RunMovementInjured1 { maxSpeed=1.2; optimalSpeed=0.41; minSpeed=0.41; maxSpeedRange=30; optimalSpeedRange=25; acceleration=1; maxAngleSpeed=30; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=0.41999999; >>>>>>> upstream/master }; class MovementAttack { <<<<<<< HEAD maxSpeed=12.175; optimalSpeed=12.175; minSpeed=6; acceleration=20; maxAngleSpeed=360; slowRadius=0; stopRadius=0; maxSpeedRange=3; optimalSpeedRange=1; pathFilter="WolfOnHunt"; }; }; }; ======= maxSpeed=0; optimalSpeed=0; minSpeed=0; maxSpeedRange=30; optimalSpeedRange=25; acceleration=1; maxAngleSpeed=30; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=1.4; }; }; }; class AlertSystem { visionToAlertMultiplier=60; noiseToAlertMultiplier=0.30000001; noiseShotToAlertMultiplier=1.2; damageToAlertMultiplier=1000000; class Calm { dropSpeed=8; dropDelay=1; maxAlertValue=5; }; class NonSpecificThreat { dropSpeed=8; dropDelay=2; maxAlertValue=70; }; class SpecificThreat { dropSpeed=7; dropDelay=2; maxAlertValue=110; }; class Alerted { dropSpeed=6; dropDelay=0.1; maxAlertValue=120; }; }; }; class NoiseSystemParams { rangeMin=10; rangeMax=30; rangeShotMin=5; rangeShotMax=300; class NoiseStrengthTeamMultipliers { BigGame=1; Zombies=1; Player=1; }; }; class TargetSystemDZBase { class VisionTeamMultipliers { BigGame=0.80000001; Zombies=1; Player=1; }; visionManSizeStand=1; visionManSizeCrouch=0.80000001; visionManSizeProne=0.5; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=5; visionRangeMin=6; visionRangeMax=10; visionFov=1.6; visionPeripheralRangeMin=5; visionPeripheralRangeMax=8; visionPeripheralFov=6.2800002; visionNightMinMult=1; visionNightMaxMult=1; visionRainMinMult=1; visionRainMaxMult=1; visionFogMinMult=1; visionFogMaxMult=1; }; }; class Herbivores_SusDomesticus { HeadLookBoneName="pin_lookat"; teamName="BigGame"; defaultGroupTemplateName="DZSheepGroupBeh"; class PathAgent { radius=0.2; height=1; }; class BehaviourHLDomestic { instantAlertRangeMin=5; instantAlertRangeMax=15; instantAlertStrength=7; agentPathLength=30; agentPathUpdateDelta=1; agentPathMinLength=2; >>>>>>> upstream/master class SlotCalmResting { class BehaviourCalm { <<<<<<< HEAD travelingMode="true"; grazeOnSpotWeight=50; grazeWalkingWeight=50; restWeight=50; travelWeight=0; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=15; grazeWalkingDurationMax=25; restingDurationMin=25; restingDurationMax=35; travelingDurationMin=15; travelingDurationMax=30; safetyDurationMin=10; safetyDurationMax=10; ======= travelingMode="false"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=20; travelWeight=0; grazeOnSpotDurationMin=10; grazeOnSpotDurationMax=15; grazeWalkingDurationMin=3; grazeWalkingDurationMax=8; restingDurationMin=15; restingDurationMax=20; travelingDurationMin=0; travelingDurationMax=0; grazeWalkingSpeed=0.25; travelingWalkingSpeed=0.95999998; safetyIntervalMin=13; safetyIntervalMax=27; safetyDurationMin=8; safetyDurationMax=12; >>>>>>> upstream/master safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { <<<<<<< HEAD maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; ======= maxSpeed=0.23; minSpeed=0.23; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=0.69999999; optimalSpeed=0.69999999; minSpeed=0.49000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.5; }; class CatchUpMovement { maxSpeed=3; optimalSpeed=3; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; >>>>>>> upstream/master }; }; }; class SlotCalmTravelling { class BehaviourCalm { <<<<<<< HEAD travelingMode="true"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=10; grazeOnSpotDurationMax=20; grazeWalkingDurationMin=25; grazeWalkingDurationMax=35; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=10; travelingDurationMax=50; safetyDurationMin=10; ======= travelingMode="false"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=20; travelWeight=0; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=5; grazeWalkingDurationMax=10; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=0; travelingDurationMax=0; grazeWalkingSpeed=0.25; travelingWalkingSpeed=0.95999998; safetyIntervalMin=30; safetyIntervalMax=40; safetyDurationMin=5; >>>>>>> upstream/master safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; <<<<<<< HEAD class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=4; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; ======= class GrazeMovement { maxSpeed=0.23; minSpeed=0.23; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=0.69999999; optimalSpeed=0.69999999; minSpeed=0.49000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.5; }; class CatchUpMovement { maxSpeed=3; optimalSpeed=3; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; }; }; class SlotCalmTravelling { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=20; travelWeight=20; grazeOnSpotDurationMin=100; grazeOnSpotDurationMax=100; grazeWalkingDurationMin=100; grazeWalkingDurationMax=100; restingDurationMin=100; restingDurationMax=100; travelingDurationMin=100; travelingDurationMax=100; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.23; minSpeed=0.23; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=0.69999999; optimalSpeed=0.69999999; minSpeed=0.49000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.5; }; class CatchUpMovement { maxSpeed=3; optimalSpeed=3; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; >>>>>>> upstream/master }; }; }; class SlotAttracted { class BehaviourCalm { <<<<<<< HEAD class SoundsEntering { class Sound1 { sounds[]= { "WolfHowls1_SoundSet", "WolfHowls1_tailDistant_SoundSet" }; }; class Sound2 { sounds[]= { "WolfHowls2_SoundSet", "WolfHowls2_tailDistant_SoundSet" }; }; class Sound3 { sounds[]= { "WolfHowls3_SoundSet", "WolfHowls3_tailDistant_SoundSet" }; }; class Sound4 { sounds[]= { "WolfHowls4_SoundSet", "WolfHowls4_tailDistant_SoundSet" }; }; class Sound5 { sounds[]= { "WolfHowls5_SoundSet", "WolfHowls5_tailDistant_SoundSet" }; }; class Sound6 { sounds[]= { "WolfHowls6_SoundSet", "WolfHowls6_tailDistant_SoundSet" }; }; class Sound7 { sounds[]= { "WolfHowls5_SoundSet", "WolfHowls7_tailDistant_SoundSet" }; }; class Sound8 { sounds[]= { "WolfHowls6_SoundSet", "WolfHowls8_tailDistant_SoundSet" }; }; probability=0.89999998; ======= travelingMode="true"; grazeOnSpotWeight=10; grazeWalkingWeight=10; restWeight=10; travelWeight=0; drinkingWeight=20; grazeOnSpotDurationMin=10; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=10; grazeWalkingDurationMax=10; restingDurationMin=0; restingDurationMax=0; travelingDurationMin=20; travelingDurationMax=20; drinkingDurationMin=15; drinkingDurationMax=20; grazeWalkingSpeed=0.17900001; travelingWalkingSpeed=1.196; safetyIntervalMin=15; safetyIntervalMax=20; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class DrinkingMovement { maxSpeed=0.69999999; optimalSpeed=0.69999999; minSpeed=0.49000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.5; }; class GrazeMovement { maxSpeed=0.23; minSpeed=0.23; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=0.69999999; optimalSpeed=0.69999999; minSpeed=0.49000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.5; >>>>>>> upstream/master }; class SoundsDuring { <<<<<<< HEAD class Sound1 { sounds[]= { "WolfHowl1_SoundSet", "WolfHowl1_tailDistant_SoundSet" }; }; class Sound2 { sounds[]= { "WolfHowl2_SoundSet", "WolfHowl2_tailDistant_SoundSet" }; }; class Sound3 { sounds[]= { "WolfHowl3_SoundSet", "WolfHowl3_tailDistant_SoundSet" }; }; class Sound4 { sounds[]= { "WolfHowl4_SoundSet", "WolfHowl4_tailDistant_SoundSet" }; }; class Sound5 { sounds[]= { "WolfHowl5_SoundSet", "WolfHowl5_tailDistant_SoundSet" }; }; class Sound6 { sounds[]= { "WolfHowl6_SoundSet", "WolfHowl6_tailDistant_SoundSet" }; }; class Sound7 { sounds[]= { "WolfHowl5_SoundSet", "WolfHowl7_tailDistant_SoundSet" }; }; class Sound8 { sounds[]= { "WolfHowl6_SoundSet", "WolfHowl8_tailDistant_SoundSet" }; }; probability=0.5; RepeatTimeMin=5; RepeatTimeMax=25; RepeatEnabled="true"; }; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=5; grazeWalkingDurationMax=10; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=50; travelingDurationMax=100; grazeWalkingSpeed=0.54400003; travelingWalkingSpeed=0.78200001; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="WolfOnHunt"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="WolfOnHunt"; }; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; ======= maxSpeed=3; optimalSpeed=3; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; }; }; class SlotNonSpecificThreat { class BehaviourSpecificThreat { walkAwayWeight=0; walkToWeight=10; stayLookAtWeight=10; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=1.5; walkToInitialAngle=2; walkAwayDurationMin=5; walkAwayDurationMax=10; walkToDurationMin=3; walkToDurationMax=5; stayLookAtDurationMin=10; stayLookAtDurationMax=15; stayDurationMin=10; stayDurationMax=15; pathLength=10; class WalkingMovement { maxSpeed=0.69999999; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.5; >>>>>>> upstream/master }; }; }; class SlotFireplace { <<<<<<< HEAD class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=20; travelWeight=0; grazeOnSpotDurationMin=50; grazeOnSpotDurationMax=100; grazeWalkingDurationMin=50; grazeWalkingDurationMax=100; restingDurationMin=50; restingDurationMax=150; travelingDurationMin=0; travelingDurationMax=0; grazeWalkingSpeed=0.2; travelingWalkingSpeed=1.36; safetyIntervalMin=30; safetyIntervalMax=40; safetyDurationMin=5; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; ======= class BehaviourSpecificThreat { walkAwayWeight=10; walkToWeight=0; stayLookAtWeight=0; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=0.1; walkToInitialAngle=0.1; walkAwayDurationMin=5; walkAwayDurationMax=10; walkToDurationMin=2; walkToDurationMax=6; stayLookAtDurationMin=10; stayLookAtDurationMax=15; stayDurationMin=5; stayDurationMax=15; pathLength=10; class WalkingMovement { maxSpeed=0.69999999; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.5; >>>>>>> upstream/master }; }; }; class SlotScared { class BehaviourFleeFromTargets { class SoundsEntering { <<<<<<< HEAD class Sound1 { sounds[]= { "WolfGroans1_SoundSet" }; }; class Sound2 { sounds[]= { "WolfGroans2_SoundSet" ======= class OneTimeEventSendAlert_BosTaurusSlotAlert { class AlertImpulseActionSendAlert_BosTaurusSlotAlert { value=50; range=15; >>>>>>> upstream/master }; }; class Sound3 { sounds[]= { "WolfGroans3_SoundSet" }; }; probability=1; }; <<<<<<< HEAD class SoundsDuring { class Sound1 { sounds[]= { "WolfGroan1_SoundSet" }; }; class Sound2 { sounds[]= { "WolfGroan2_SoundSet" }; }; class Sound3 { sounds[]= { "WolfGroan3_SoundSet" }; }; probability=0.30000001; RepeatTimeMin=5; RepeatTimeMax=25; RepeatEnabled="true"; ======= }; class BehaviourGoToTarget { class Movement { maxSpeed=7.1999998; optimalSpeed=5; minSpeed=0.69999999; maxSpeedRange=30; optimalSpeedRange=15; acceleration=4; maxAngleSpeed=70; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=0.80000001; }; class RunMovementInjured1 { maxSpeed=7.1999998; optimalSpeed=5; minSpeed=0.69999999; maxSpeedRange=30; optimalSpeedRange=15; acceleration=4; maxAngleSpeed=70; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=0.80000001; >>>>>>> upstream/master }; class RunMovement { <<<<<<< HEAD maxSpeed=12.175; optimalSpeed=6.3899999; minSpeed=1; acceleration=2; maxAngleSpeed=360; slowRadius=4; stopRadius=0; maxSpeedRange=15; optimalSpeedRange=10; pathFilter="DeerOnRun"; ======= maxSpeed=7.1999998; optimalSpeed=5; minSpeed=0.69999999; maxSpeedRange=30; optimalSpeedRange=15; acceleration=4; maxAngleSpeed=70; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=0.80000001; >>>>>>> upstream/master }; }; }; class AlertSystem { <<<<<<< HEAD visionToAlertMultiplier=10; noiseToAlertMultiplier=1; damageToAlertMultiplier=200; class Calm { dropSpeed=3; dropDelay=2; maxAlertValue=30; ======= visionToAlertMultiplier=25; noiseToAlertMultiplier=0.69999999; noiseShotToAlertMultiplier=2; damageToAlertMultiplier=1000000; class Calm { dropSpeed=5; dropDelay=1; maxAlertValue=10; }; class NonSpecificThreat { dropSpeed=5; dropDelay=5; maxAlertValue=70; >>>>>>> upstream/master }; class Alerted { <<<<<<< HEAD dropSpeed=11; dropDelay=0; ======= dropSpeed=5; dropDelay=3; >>>>>>> upstream/master maxAlertValue=100; }; class AlertedExtra { <<<<<<< HEAD dropSpeed=25; dropDelay=10; maxAlertValue=500; ======= dropSpeed=5; dropDelay=1; maxAlertValue=115; >>>>>>> upstream/master }; }; }; class NoiseSystemParams { <<<<<<< HEAD rangeMin=25; rangeMax=100; rangeShotMin=0; rangeShotMax=50; class NoiseStrengthTeamMultipliers { BigGame=0.40000001; Zombies=0.60000002; ======= rangeMin=10; rangeMax=25; rangeShotMin=5; rangeShotMax=300; class NoiseStrengthTeamMultipliers { BigGame=0.80000001; Zombies=1; >>>>>>> upstream/master Player=1; }; }; class TargetSystemDZBase { class VisionTeamMultipliers { BigGame=0.60000002; Zombies=1; Player=1; }; visionManSizeStand=1; visionManSizeCrouch=0.80000001; <<<<<<< HEAD visionManSizeProne=0.60000002; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=1.5; visionRangeMin=100; visionRangeMax=200; visionFov=1.8; visionPeripheralRangeMin=1; visionPeripheralRangeMax=16; visionPeripheralFov=6.1999998; ======= visionManSizeProne=0.44999999; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=5; visionRangeMin=15; visionRangeMax=20; visionFov=1.2; visionPeripheralRangeMin=5; visionPeripheralRangeMax=10; visionPeripheralFov=6.2800002; >>>>>>> upstream/master visionNightMinMult=1; visionNightMaxMult=0.75; visionRainMinMult=1; visionRainMaxMult=0.89999998; visionFogMinMult=1; visionFogMaxMult=0.69999999; }; }; <<<<<<< HEAD }; class CfgSoundShaders { class TigerAttack_SoundShader { samples[]= ======= class Herbivores_SusScrofa { HeadLookBoneName="pin_lookat"; teamName="BigGame"; defaultGroupTemplateName="DZDeerGroupBeh"; class PathAgent >>>>>>> upstream/master { { "ShredAnimals\tiger\tigris\tiger_growl", 1 } }; <<<<<<< HEAD volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerMumble_SoundShader { samples[]= { { "ShredAnimals\tiger\tigris\tigerpurr", 1 } }; volume=1; range=140; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerRoar_SoundShader { samples[]= { { "ShredAnimals\tiger\tigris\tigerroar", 1 } ======= class BehaviourHLDeer { instantAlertRangeMin=20; instantAlertRangeMax=50; instantAlertStrength=7; class SlotCalmResting { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=20; travelWeight=0; grazeOnSpotDurationMin=20; grazeOnSpotDurationMax=30; grazeWalkingDurationMin=20; grazeWalkingDurationMax=30; restingDurationMin=20; restingDurationMax=30; travelingDurationMin=0; travelingDurationMax=0; safetyDurationMin=8; safetyDurationMax=12; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.12; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; class CatchUpMovement { maxSpeed=4.1999998; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotCalmGrazing { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=5; travelWeight=0; grazeOnSpotDurationMin=20; grazeOnSpotDurationMax=30; grazeWalkingDurationMin=20; grazeWalkingDurationMax=30; restingDurationMin=20; restingDurationMax=30; travelingDurationMin=0; travelingDurationMax=0; safetyDurationMin=8; safetyDurationMax=12; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.12; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; class CatchUpMovement { maxSpeed=4.1999998; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotCalmTravelling { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=15; grazeOnSpotDurationMax=25; grazeWalkingDurationMin=15; grazeWalkingDurationMax=25; restingDurationMin=0; restingDurationMax=0; travelingDurationMin=20; travelingDurationMax=40; safetyDurationMin=8; safetyDurationMax=12; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.12; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; class CatchUpMovement { maxSpeed=4.1999998; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotDrinking { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=10; grazeWalkingWeight=10; restWeight=10; travelWeight=0; drinkingWeight=20; grazeOnSpotDurationMin=10; grazeOnSpotDurationMax=20; grazeWalkingDurationMin=10; grazeWalkingDurationMax=20; restingDurationMin=15; restingDurationMax=25; travelingDurationMin=0; travelingDurationMax=0; drinkingDurationMin=50; drinkingDurationMax=70; safetyDurationMin=8; safetyDurationMax=12; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class DrinkingMovement { maxSpeed=1.12; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.12; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; class CatchUpMovement { maxSpeed=4.1999998; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotNonSpecificThreat { class BehaviourSpecificThreat { walkAwayWeight=0; walkToWeight=10; stayLookAtWeight=10; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=1.5; walkToInitialAngle=2; walkAwayDurationMin=5; walkAwayDurationMax=10; walkToDurationMin=4; walkToDurationMax=8; stayLookAtDurationMin=10; stayLookAtDurationMax=15; stayDurationMin=5; stayDurationMax=15; pathLength=10; class WalkingMovement { maxSpeed=1.12; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotSpecificThreat { class BehaviourSpecificThreat { walkAwayWeight=0; walkToWeight=10; stayLookAtWeight=10; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=1.5; walkToInitialAngle=2; walkAwayDurationMin=5; walkAwayDurationMax=10; walkToDurationMin=4; walkToDurationMax=8; stayLookAtDurationMin=10; stayLookAtDurationMax=15; stayDurationMin=5; stayDurationMax=15; pathLength=10; class WalkingMovement { maxSpeed=1.12; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotAlerted { class BehaviourFleeFromTargets { class SoundsEntering { class Sound1 { sounds[]= { "DeerAmbush1_SoundSet", "DeerAmbush1_tailForest_SoundSet" }; }; class Sound2 { sounds[]= { "DeerAmbush2_SoundSet", "DeerAmbush2_tailForest_SoundSet" }; }; class Sound3 { sounds[]= { "DeerAmbush3_SoundSet", "DeerAmbush3_tailForest_SoundSet" }; }; class Sound4 { sounds[]= { "DeerAmbush4_SoundSet", "DeerAmbush4_tailForest_SoundSet" }; }; class Sound5 { sounds[]= { "DeerAmbush5_SoundSet", "DeerAmbush5_tailForest_SoundSet" }; }; class Sound6 { sounds[]= { "DeerAmbush6_SoundSet", "DeerAmbush6_tailForest_SoundSet" }; }; probability=1; }; minDistanceToTargetRatio=0.5; class RunMovement { maxSpeed=17; optimalSpeed=12; minSpeed=1; maxSpeedRange=30; optimalSpeedRange=15; acceleration=4; maxAngleSpeed=70; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=1.4; }; class RunMovementInjured1 { maxSpeed=1.35; optimalSpeed=1.35; minSpeed=0; maxSpeedRange=30; optimalSpeedRange=25; acceleration=2; maxAngleSpeed=1; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=1.4; }; class RunMovementInjured2 { maxSpeed=0.1; optimalSpeed=0; minSpeed=0; maxSpeedRange=30; optimalSpeedRange=25; acceleration=2; maxAngleSpeed=1; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=1.4; }; }; }; class AlertSystem { visionToAlertMultiplier=7; noiseToAlertMultiplier=1; noiseShotToAlertMultiplier=2; damageToAlertMultiplier=1000000; class Calm { dropSpeed=5; dropDelay=1; maxAlertValue=15; }; class NonSpecificThreat { dropSpeed=5; dropDelay=5; maxAlertValue=70; }; class SpecificThreat { dropSpeed=2; dropDelay=8; maxAlertValue=100; }; class Alerted { dropSpeed=3; dropDelay=10; maxAlertValue=105; }; }; >>>>>>> upstream/master }; volume=1; range=140; rangeCurve="defaultAnimalAttenuationCurve"; }; }; class CfgSoundSets { class baseTiger_SoundSet { sound3DProcessingType="animal3DProcessingType"; volumeCurve="animalAttenuationCurve"; spatial="true"; doppler="false"; loop="false"; }; class TigerAttack_SoundSet: baseTiger_SoundSet { soundShaders[]= { <<<<<<< HEAD "TigerAttack_SoundShader" ======= rangeMin=10; rangeMax=60; rangeShotMin=100; rangeShotMax=300; class NoiseStrengthTeamMultipliers { BigGame=0.80000001; Zombies=1; Player=1; }; >>>>>>> upstream/master }; }; class TigerRoar_SoundSet: baseTiger_SoundSet { soundShaders[]= { <<<<<<< HEAD "TigerRoar_SoundShader" }; }; class TigerMumble_SoundSet: baseTiger_SoundSet ======= class VisionTeamMultipliers { BigGame=0.80000001; Zombies=1; Player=1; }; visionManSizeStand=1; visionManSizeCrouch=0.80000001; visionManSizeProne=0.44999999; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=1.5; visionRangeMin=5; visionRangeMax=60; visionFov=1.2; visionPeripheralRangeMin=5; visionPeripheralRangeMax=25; visionPeripheralFov=3.1500001; visionNightMinMult=1; visionNightMaxMult=0.75; visionRainMinMult=1; visionRainMaxMult=0.89999998; visionFogMinMult=1; visionFogMaxMult=0.69999999; }; }; class Herbivores_CervusElaphusFem >>>>>>> upstream/master { soundShaders[]= { <<<<<<< HEAD "TigerMumble_SoundShader" ======= radius=0.2; height=1.4; >>>>>>> upstream/master }; }; }; class CfgDamages { class DeerBiteDamage { }; class WolfBiteDamage { bone="tongue3"; ammo="MeleeWolf"; radius=0.40000001; duration=0.2; }; class WolfLowBiteDamage { bone="chest"; ammo="MeleeWolf"; radius=0.69999999; duration=0.5; }; class BearBiteDamage { bone="tongue4"; ammo="MeleeBear"; radius=0.69999999; duration=0.2; }; class BearLeftPawDamage { bone="lflegdigit11"; ammo="MeleeBear"; radius=0.69999999; duration=0.2; }; class BearRightPawDamage { bone="rflegdigit11"; ammo="MeleeBear"; radius=0.69999999; duration=0.2; }; class BearBiteDamageIntimidate { bone="tongue4"; ammo="MeleeBearShock"; radius=0.69999999; duration=0.2; }; class BearLeftPawDamageIntimidate { bone="lflegdigit11"; ammo="MeleeBearShock"; radius=0.69999999; duration=0.2; }; class BearRightPawDamageIntimidate { bone="rflegdigit11"; ammo="MeleeBearShock"; radius=0.69999999; duration=0.2; }; }; class CfgAmmo { class MeleeDamage; class MeleeBear: MeleeDamage { class DamageApplied { type="Melee"; bleedThreshold=0.85000002; class Health { <<<<<<< HEAD damage=25; ======= class BehaviourCalm { grazeOnSpotWeight=5; grazeWalkingWeight=5; restWeight=5; travelWeight=0; grazeOnSpotDurationMin=20; grazeOnSpotDurationMax=60; grazeWalkingDurationMin=20; grazeWalkingDurationMax=60; restingDurationMin=50; restingDurationMax=150; travelingDurationMin=0; travelingDurationMax=0; safetyIntervalMin=15; safetyIntervalMax=15; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.17900001; minSpeed=0.17900001; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.225; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; class CatchUpMovement { maxSpeed=3.4000001; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; }; }; class SlotCalmGrazing { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=10; travelWeight=0; grazeOnSpotDurationMin=50; grazeOnSpotDurationMax=100; grazeWalkingDurationMin=50; grazeWalkingDurationMax=100; restingDurationMin=50; restingDurationMax=150; travelingDurationMin=0; travelingDurationMax=0; safetyIntervalMin=15; safetyIntervalMax=15; safetyDurationMin=20; safetyDurationMax=20; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.17900001; minSpeed=0.17900001; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.225; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; class CatchUpMovement { maxSpeed=3.4000001; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; }; }; class SlotCalmTravelling { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=10; grazeWalkingWeight=10; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=20; grazeOnSpotDurationMax=30; grazeWalkingDurationMin=10; grazeWalkingDurationMax=20; restingDurationMin=0; restingDurationMax=0; travelingDurationMin=20; travelingDurationMax=50; safetyIntervalMin=15; safetyIntervalMax=20; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.17900001; minSpeed=0.17900001; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.225; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; class CatchUpMovement { maxSpeed=3.4000001; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; }; }; class SlotDrinking { class BehaviourCalm { grazeOnSpotWeight=10; grazeWalkingWeight=10; restWeight=10; travelWeight=0; drinkingWeight=20; grazeOnSpotDurationMin=100; grazeOnSpotDurationMax=100; grazeWalkingDurationMin=100; grazeWalkingDurationMax=100; restingDurationMin=200; restingDurationMax=200; travelingDurationMin=0; travelingDurationMax=0; drinkingDurationMin=150; drinkingDurationMax=150; safetyIntervalMin=15; safetyIntervalMax=20; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class DrinkingMovement { maxSpeed=1.225; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; class GrazeMovement { maxSpeed=0.17900001; minSpeed=0.17900001; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.225; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; class CatchUpMovement { maxSpeed=3.4000001; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; }; }; class SlotNonSpecificThreat { class BehaviourSpecificThreat { walkAwayWeight=0; walkToWeight=10; stayLookAtWeight=10; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=1.5; walkToInitialAngle=2; walkAwayDurationMin=5; walkAwayDurationMax=10; walkToDurationMin=4; walkToDurationMax=8; stayLookAtDurationMin=10; stayLookAtDurationMax=15; stayDurationMin=5; stayDurationMax=15; pathLength=10; class WalkingMovement { maxSpeed=0.89999998; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; }; >>>>>>> upstream/master }; class Blood { <<<<<<< HEAD damage=110; ======= class BehaviourSpecificThreat { walkAwayWeight=10; walkToWeight=0; stayLookAtWeight=20; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=1.5; walkToInitialAngle=2; walkAwayDurationMin=5; walkAwayDurationMax=10; walkToDurationMin=20; walkToDurationMax=30; stayLookAtDurationMin=15; stayLookAtDurationMax=20; stayDurationMin=5; stayDurationMax=15; pathLength=10; class WalkingMovement { maxSpeed=1.225; minSpeed=0.69999999; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.70999998; }; }; >>>>>>> upstream/master }; class Shock { <<<<<<< HEAD damage=35; ======= class BehaviourFleeFromTargets { class SoundsEntering { class Sound1 { sounds[]= { "DeerAmbush1_SoundSet", "DeerAmbush1_tailForest_SoundSet" }; }; class Sound2 { sounds[]= { "DeerAmbush2_SoundSet", "DeerAmbush2_tailForest_SoundSet" }; }; class Sound3 { sounds[]= { "DeerAmbush3_SoundSet", "DeerAmbush3_tailForest_SoundSet" }; }; class Sound4 { sounds[]= { "DeerAmbush4_SoundSet", "DeerAmbush4_tailForest_SoundSet" }; }; class Sound5 { sounds[]= { "DeerAmbush5_SoundSet", "DeerAmbush5_tailForest_SoundSet" }; }; class Sound6 { sounds[]= { "DeerAmbush6_SoundSet", "DeerAmbush6_tailForest_SoundSet" }; }; probability=1; }; minDistanceToTargetRatio=0.5; class RunMovement { maxSpeed=15; optimalSpeed=8; minSpeed=1; maxSpeedRange=30; optimalSpeedRange=25; acceleration=5; maxAngleSpeed=70; slowRadius=4; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="DeerOnRun"; startAnimationMaxSpeed=1.4; }; class RunMovementInjured1 { maxSpeed=1.196; optimalSpeed=1.196; minSpeed=0; maxSpeedRange=30; optimalSpeedRange=25; acceleration=2; maxAngleSpeed=1; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="DeerOnRun"; startAnimationMaxSpeed=1.4; }; class RunMovementInjured2 { maxSpeed=0.1; optimalSpeed=0; minSpeed=0; maxSpeedRange=30; optimalSpeedRange=25; acceleration=2; maxAngleSpeed=1; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="DeerOnRun"; startAnimationMaxSpeed=1.4; }; }; }; class AlertSystem { visionToAlertMultiplier=7; noiseToAlertMultiplier=1; damageToAlertMultiplier=1000000; class Calm { dropSpeed=5; dropDelay=1; maxAlertValue=25; }; class NonSpecificThreat { dropSpeed=5; dropDelay=10; maxAlertValue=50; }; class SpecificThreat { dropSpeed=2; dropDelay=8; maxAlertValue=75; }; class Alerted { dropSpeed=10; dropDelay=10; maxAlertValue=100; }; >>>>>>> upstream/master }; additionAnimalMeleeMultiplier=5; }; soundGroundSoft1[]= { <<<<<<< HEAD "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_01", 0.5, 1, 60 ======= rangeMin=20; rangeMax=80; rangeShotMin=100; rangeShotMax=300; class NoiseStrengthTeamMultipliers { BigGame=0.80000001; Zombies=1; Player=1; }; >>>>>>> upstream/master }; soundGroundSoft2[]= { <<<<<<< HEAD "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_02", 0.5, 1, 60 }; soundGroundSoft3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_03", 0.5, 1, 60 }; soundGroundSoft4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_04", 0.5, 1, 60 ======= class VisionTeamMultipliers { BigGame=1; Zombies=1; Player=1; Predator=10; }; visionManSizeStand=1; visionManSizeCrouch=0.80000001; visionManSizeProne=0.5; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=1.5; visionRangeMin=5; visionRangeMax=80; visionFov=2; visionPeripheralRangeMin=1; visionPeripheralRangeMax=30; visionPeripheralFov=3.2; visionNightMinMult=1; visionNightMaxMult=0.75; visionRainMinMult=1; visionRainMaxMult=0.89999998; visionFogMinMult=1; visionFogMaxMult=0.69999999; }; }; class Herbivores_OvisAries { HeadLookBoneName="pin_lookat"; teamName="BigGame"; defaultGroupTemplateName="DZSheepGroupBeh"; class PathAgent { radius=0.2; height=1; }; class BehaviourHLDomestic { instantAlertRangeMin=20; instantAlertRangeMax=40; instantAlertStrength=9; agentPathLength=30; agentPathUpdateDelta=1; agentPathMinLength=2; class SlotCalmResting { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=10; restWeight=20; travelWeight=0; grazeOnSpotDurationMin=40; grazeOnSpotDurationMax=120; grazeWalkingDurationMin=40; grazeWalkingDurationMax=120; restingDurationMin=60; restingDurationMax=180; travelingDurationMin=0; travelingDurationMax=0; safetyDurationMin=15; safetyDurationMax=35; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.090000004; minSpeed=0.090000004; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; pathFilter="NoJumping"; }; class TravelingMovement { maxSpeed=0.55000001; minSpeed=0.30000001; acceleration=5; maxAngleSpeed=10; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.31; }; class CatchUpMovement { maxSpeed=0.55000001; minSpeed=0.30000001; acceleration=5; maxAngleSpeed=10; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.31; }; }; }; class SlotCalmGrazing { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=10; travelWeight=0; grazeOnSpotDurationMin=40; grazeOnSpotDurationMax=120; grazeWalkingDurationMin=40; grazeWalkingDurationMax=120; restingDurationMin=60; restingDurationMax=180; travelingDurationMin=0; travelingDurationMax=0; safetyDurationMin=15; safetyDurationMax=35; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.090000004; minSpeed=0.090000004; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; pathFilter="NoJumping"; }; class TravelingMovement { maxSpeed=0.55000001; minSpeed=0.30000001; acceleration=5; maxAngleSpeed=10; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.31; }; class CatchUpMovement { maxSpeed=0.55000001; minSpeed=0.30000001; acceleration=5; maxAngleSpeed=10; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.31; }; }; }; class SlotDrinking { class BehaviourCalm { grazeOnSpotWeight=10; grazeWalkingWeight=10; restWeight=10; travelWeight=0; drinkingWeight=20; grazeOnSpotDurationMin=10; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=10; grazeWalkingDurationMax=10; restingDurationMin=0; restingDurationMax=0; travelingDurationMin=20; travelingDurationMax=20; drinkingDurationMin=15; drinkingDurationMax=20; safetyDurationMin=15; safetyDurationMax=35; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class DrinkingUpMovement { maxSpeed=0.55000001; minSpeed=0.30000001; acceleration=5; maxAngleSpeed=10; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.31; }; class GrazeMovement { maxSpeed=0.090000004; minSpeed=0.090000004; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; pathFilter="NoJumping"; }; class TravelingMovement { maxSpeed=0.55000001; minSpeed=0.30000001; acceleration=5; maxAngleSpeed=10; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.31; }; class CatchUpMovement { maxSpeed=0.55000001; minSpeed=0.30000001; acceleration=5; maxAngleSpeed=10; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.31; }; }; }; class SlotCalmTravelling { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=20; grazeOnSpotDurationMax=50; grazeWalkingDurationMin=20; grazeWalkingDurationMax=50; restingDurationMin=20; restingDurationMax=25; travelingDurationMin=20; travelingDurationMax=40; safetyDurationMin=15; safetyDurationMax=35; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.090999998; minSpeed=0.090999998; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; pathFilter="NoJumping"; }; class TravelingMovement { maxSpeed=0.55000001; minSpeed=0.30000001; acceleration=5; maxAngleSpeed=10; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.31; }; class CatchUpMovement { maxSpeed=0.55000001; minSpeed=0.30000001; acceleration=5; maxAngleSpeed=10; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.31; }; }; }; class SlotNonSpecificThreat { class SlotEvents { class EventsDuring { }; }; class BehaviourSpecificThreat { walkAwayWeight=0; walkToWeight=10; stayLookAtWeight=10; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=1.5; walkToInitialAngle=1; walkAwayDurationMin=5; walkAwayDurationMax=15; walkToDurationMin=5; walkToDurationMax=15; stayLookAtDurationMin=10; stayLookAtDurationMax=20; stayDurationMin=20; stayDurationMax=30; pathLength=10; class WalkingMovement { maxSpeed=0.55000001; minSpeed=0.55000001; acceleration=5; maxAngleSpeed=10; slowRadius=1.9; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="NoJumping"; useStartAnimation="true"; startAnimationMaxSpeed=0.31; }; }; }; class SlotSpecificThreat { class SlotEvents { class EventsEntering { }; class EventsDuring { class PeriodicEventRepeatAlert_OvisAriesSlotSpec { repeatTimeMin=1; repeatTimeMax=4; class AlertImpulseActionRepeatAlert_OvisAriesSlotSpec { value=0; range=10; }; }; }; }; class BehaviourSpecificThreat { walkAwayWeight=10; walkToWeight=0; stayLookAtWeight=0; stayWeight=0; walkAwaySpreadAngle=0.5; walkAwayInitialAngle=1; walkToSpreadAngle=1.5; walkToInitialAngle=1; walkAwayDurationMin=5; walkAwayDurationMax=15; walkToDurationMin=5; walkToDurationMax=15; stayLookAtDurationMin=10; stayLookAtDurationMax=20; stayDurationMin=20; stayDurationMax=30; pathLength=10; class WalkingMovement { maxSpeed=0.55000001; minSpeed=0.55000001; maxSpeedRange=30; optimalSpeedRange=20; acceleration=4; maxAngleSpeed=10; slowRadius=8; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=0.31; }; }; }; class SlotAlerted { class SlotEvents { class EventsEntering { class OneTimeEventSendAlert_OvisAriesSlotAlert { class AlertImpulseActionSendAlert_OvisAriesSlotAlert { value=50; range=10; }; }; }; class EventsDuring { class PeriodicEventRepeatAlert_OvisAriesSlotAlert { repeatTimeMin=1; repeatTimeMax=4; class AlertImpulseActionRepeatAlert_OvisAriesSlotAlert { value=0; range=10; }; }; }; }; class BehaviourGoToTarget { class Movement { maxSpeed=8.6300001; optimalSpeed=6; minSpeed=0.30000001; maxSpeedRange=30; optimalSpeedRange=25; acceleration=2; maxAngleSpeed=60; slowRadius=6; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=0.30000001; }; class RunMovementInjured1 { maxSpeed=0.89999998; optimalSpeed=0.40000001; minSpeed=0.30000001; maxSpeedRange=30; optimalSpeedRange=25; acceleration=1; maxAngleSpeed=30; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=0.30000001; }; class RunMovementInjured2 { maxSpeed=0; optimalSpeed=0; minSpeed=0; maxSpeedRange=30; optimalSpeedRange=25; acceleration=1; maxAngleSpeed=30; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="NoJumping"; startAnimationMaxSpeed=1.4; }; }; }; class AlertSystem { visionToAlertMultiplier=60; noiseToAlertMultiplier=0.30000001; noiseShotToAlertMultiplier=1.2; damageToAlertMultiplier=1000000; class Calm { dropSpeed=8; dropDelay=1; maxAlertValue=5; }; class NonSpecificThreat { dropSpeed=8; dropDelay=2; maxAlertValue=70; }; class SpecificThreat { dropSpeed=7; dropDelay=2; maxAlertValue=110; }; class Alerted { dropSpeed=6; dropDelay=0.1; maxAlertValue=120; }; }; >>>>>>> upstream/master }; soundGroundSoft5[]= { <<<<<<< HEAD "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_05", 0.5, 1, 60 ======= rangeMin=10; rangeMax=30; rangeShotMin=5; rangeShotMax=300; class NoiseStrengthTeamMultipliers { BigGame=1; Zombies=1; Player=1; }; >>>>>>> upstream/master }; soundGroundSoft6[]= { <<<<<<< HEAD "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_06", 0.5, 1, 60 }; soundGroundSoft7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_07", 0.5, 1, 60 }; soundGroundSoft8[]= { ======= class VisionTeamMultipliers { BigGame=0.80000001; Zombies=1; Player=1; }; visionManSizeStand=1; visionManSizeCrouch=0.80000001; visionManSizeProne=0.5; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=5; visionRangeMin=3; visionRangeMax=9; visionFov=1.6; visionPeripheralRangeMin=4; visionPeripheralRangeMax=6; visionPeripheralFov=6.2800002; visionNightMinMult=1; visionNightMaxMult=1; visionRainMinMult=1; visionRainMaxMult=1; visionFogMinMult=1; visionFogMaxMult=1; }; }; class Predators_Wolf { HeadLookBoneName="pin_lookat"; teamName="Predator"; defaultGroupTemplateName="DZWolfGroupBeh"; class PathAgent { radius=0.30000001; height=1; lengthRadius=0.69999999; }; class BehaviourHLPredator { instantAlertRangeMin=0; instantAlertRangeMax=0; instantAlertStrength=0; proximityAttackRange=2.5; attackCooldown=3; class SlotCalmGrazing { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=0; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=500; grazeWalkingDurationMax=500; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=15; travelingDurationMax=30; grazeWalkingSpeed=0.2; travelingWalkingSpeed=1.36; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotSiege { class BehaviourSiege { class SoundsEntering { class Sound1 { sounds[]= { "WolfPant0_SoundSet" }; }; class Sound2 { sounds[]= { "WolfPant1_SoundSet" }; }; class Sound3 { sounds[]= { "WolfPant2_SoundSet" }; }; probability=1; }; class SoundsDuring { class Sound1 { sounds[]= { "WolfPant3_SoundSet" }; }; class Sound2 { sounds[]= { "WolfPant4_SoundSet" }; }; class Sound3 { sounds[]= { "WolfPant5_SoundSet" }; }; class Sound4 { sounds[]= { "WolfPant6_SoundSet" }; }; class Sound5 { sounds[]= { "WolfPant7_SoundSet" }; }; class Sound6 { sounds[]= { "WolfGrowl0_SoundSet" }; }; class Sound7 { sounds[]= { "WolfGrowl1_SoundSet" }; }; class Sound8 { sounds[]= { "WolfGrowl2_SoundSet" }; }; probability=0.40000001; RepeatTimeMin=5; RepeatTimeMax=15; RepeatEnabled="true"; }; innerRadius=7; innerRadiusMin=4.5; innerRadiusMax=10; outerRadius=16; directionChangeTimeMin=7; directionChangeTimeMax=25; PlayerFOV=1.4; preferPlayerFOVCooldown=1; attackDistance=3.5; class InnerCircleMovement { maxSpeed=6.3000002; optimalSpeed=6.3000002; optimalSpeedRange=1; minSpeed=1; acceleration=7; maxAngleSpeed=90; slowRadius=0; stopRadius=2; maxSpeedRange=2; pathFilter="WolfOnHunt"; startAnimationMaxSpeed=0.54000002; }; class Movement { maxSpeed=9; optimalSpeed=6.3000002; optimalSpeedRange=15; minSpeed=1; acceleration=10; maxAngleSpeed=180; slowRadius=0; stopRadius=2; maxSpeedRange=20; pathFilter="WolfOnOuterCircle"; startAnimationMaxSpeed=0.54000002; }; class AttackMovement { maxSpeed=12.175; optimalSpeed=12; optimalSpeedRange=6; minSpeed=0.80000001; acceleration=10; maxAngleSpeed=180; slowRadius=2; stopRadius=3; maxSpeedRange=30; pathFilter="WolfOnHunt"; }; }; }; class SlotEating { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=20; eatingWeight=20; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=10; grazeWalkingDurationMax=15; restingDurationMin=15; restingDurationMax=25; travelingDurationMin=15; travelingDurationMax=30; eatingDurationMin=15; eatingDurationMax=25; safetyDurationMin=10; safetyDurationMax=20; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotHunting { class BehaviourHunt { attackRange=3.5; followingRadius=15; followingRadiusReqroupCooldownMin=5; followingRadiusReqroupCooldownMax=15; followingRadiusRegroupMinSpeed=1.5; predictFollowingMinDistance=10; minDistanceToTargetRatio=0.30000001; class SoundsEntering { class Sound1 { sounds[]= { "WolfBark3_0_SoundSet" }; }; probability=0.30000001; }; class SoundsDuring { class Sound1 { sounds[]= { "WolfBark2_0_SoundSet" }; }; class Sound2 { sounds[]= { "WolfBark2_1_SoundSet" }; }; class Sound3 { sounds[]= { "WolfBark2_2_SoundSet" }; }; class Sound4 { sounds[]= { "WolfBark2_3_SoundSet" }; }; class Sound5 { sounds[]= { "WolfBark2_4_SoundSet" }; }; probability=1; RepeatTimeMin=10; RepeatTimeMax=30; RepeatEnabled="true"; }; class Movement { maxSpeed=10; optimalSpeed=9.5; minSpeed=1; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; maxSpeedRange=15; optimalSpeedRange=5; pathFilter="WolfOnHunt"; }; class MovementAttack { maxSpeed=12.175; optimalSpeed=12.175; minSpeed=6; acceleration=20; maxAngleSpeed=360; slowRadius=0; stopRadius=0; maxSpeedRange=3; optimalSpeedRange=1; pathFilter="WolfOnHunt"; }; }; }; class SlotCalmResting { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=50; grazeWalkingWeight=50; restWeight=50; travelWeight=0; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=15; grazeWalkingDurationMax=25; restingDurationMin=25; restingDurationMax=35; travelingDurationMin=15; travelingDurationMax=30; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotCalmTravelling { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=10; grazeOnSpotDurationMax=20; grazeWalkingDurationMin=25; grazeWalkingDurationMax=35; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=10; travelingDurationMax=50; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=4; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; }; }; class SlotAttracted { class BehaviourCalm { class SoundsEntering { class Sound1 { sounds[]= { "WolfHowls1_SoundSet", "WolfHowls1_tailDistant_SoundSet" }; }; class Sound2 { sounds[]= { "WolfHowls2_SoundSet", "WolfHowls2_tailDistant_SoundSet" }; }; class Sound3 { sounds[]= { "WolfHowls3_SoundSet", "WolfHowls3_tailDistant_SoundSet" }; }; class Sound4 { sounds[]= { "WolfHowls4_SoundSet", "WolfHowls4_tailDistant_SoundSet" }; }; class Sound5 { sounds[]= { "WolfHowls5_SoundSet", "WolfHowls5_tailDistant_SoundSet" }; }; class Sound6 { sounds[]= { "WolfHowls6_SoundSet", "WolfHowls6_tailDistant_SoundSet" }; }; class Sound7 { sounds[]= { "WolfHowls5_SoundSet", "WolfHowls7_tailDistant_SoundSet" }; }; class Sound8 { sounds[]= { "WolfHowls6_SoundSet", "WolfHowls8_tailDistant_SoundSet" }; }; probability=0.89999998; }; class SoundsDuring { class Sound1 { sounds[]= { "WolfHowl1_SoundSet", "WolfHowl1_tailDistant_SoundSet" }; }; class Sound2 { sounds[]= { "WolfHowl2_SoundSet", "WolfHowl2_tailDistant_SoundSet" }; }; class Sound3 { sounds[]= { "WolfHowl3_SoundSet", "WolfHowl3_tailDistant_SoundSet" }; }; class Sound4 { sounds[]= { "WolfHowl4_SoundSet", "WolfHowl4_tailDistant_SoundSet" }; }; class Sound5 { sounds[]= { "WolfHowl5_SoundSet", "WolfHowl5_tailDistant_SoundSet" }; }; class Sound6 { sounds[]= { "WolfHowl6_SoundSet", "WolfHowl6_tailDistant_SoundSet" }; }; class Sound7 { sounds[]= { "WolfHowl5_SoundSet", "WolfHowl7_tailDistant_SoundSet" }; }; class Sound8 { sounds[]= { "WolfHowl6_SoundSet", "WolfHowl8_tailDistant_SoundSet" }; }; probability=0.5; RepeatTimeMin=5; RepeatTimeMax=25; RepeatEnabled="true"; }; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=5; grazeWalkingDurationMax=10; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=50; travelingDurationMax=100; grazeWalkingSpeed=0.54400003; travelingWalkingSpeed=0.78200001; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="WolfOnHunt"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="WolfOnHunt"; }; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; }; }; class SlotFireplace { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=20; travelWeight=0; grazeOnSpotDurationMin=50; grazeOnSpotDurationMax=100; grazeWalkingDurationMin=50; grazeWalkingDurationMax=100; restingDurationMin=50; restingDurationMax=150; travelingDurationMin=0; travelingDurationMax=0; grazeWalkingSpeed=0.2; travelingWalkingSpeed=1.36; safetyIntervalMin=30; safetyIntervalMax=40; safetyDurationMin=5; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotScared { class BehaviourFleeFromTargets { class SoundsEntering { class Sound1 { sounds[]= { "WolfGroans1_SoundSet" }; }; class Sound2 { sounds[]= { "WolfGroans2_SoundSet" }; }; class Sound3 { sounds[]= { "WolfGroans3_SoundSet" }; }; probability=1; }; class SoundsDuring { class Sound1 { sounds[]= { "WolfGroan1_SoundSet" }; }; class Sound2 { sounds[]= { "WolfGroan2_SoundSet" }; }; class Sound3 { sounds[]= { "WolfGroan3_SoundSet" }; }; probability=0.30000001; RepeatTimeMin=5; RepeatTimeMax=25; RepeatEnabled="true"; }; class RunMovement { maxSpeed=12.175; optimalSpeed=6.3899999; minSpeed=1; acceleration=2; maxAngleSpeed=360; slowRadius=4; stopRadius=0; maxSpeedRange=15; optimalSpeedRange=10; pathFilter="DeerOnRun"; }; }; }; class AlertSystem { visionToAlertMultiplier=10; noiseToAlertMultiplier=1; damageToAlertMultiplier=200; class Calm { dropSpeed=3; dropDelay=2; maxAlertValue=30; }; class Alerted { dropSpeed=11; dropDelay=0; maxAlertValue=100; }; class AlertedExtra { dropSpeed=25; dropDelay=10; maxAlertValue=500; }; }; }; class NoiseSystemParams { rangeMin=25; rangeMax=100; rangeShotMin=0; rangeShotMax=50; class NoiseStrengthTeamMultipliers { BigGame=0.40000001; Zombies=0.60000002; Player=1; }; }; class TargetSystemDZBase { class VisionTeamMultipliers { BigGame=0.60000002; Zombies=1; Player=1; }; visionManSizeStand=1; visionManSizeCrouch=0.80000001; visionManSizeProne=0.60000002; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=1.5; visionRangeMin=100; visionRangeMax=200; visionFov=1.8; visionPeripheralRangeMin=1; visionPeripheralRangeMax=16; visionPeripheralFov=6.1999998; visionNightMinMult=1; visionNightMaxMult=0.75; visionRainMinMult=1; visionRainMaxMult=0.89999998; visionFogMinMult=1; visionFogMaxMult=0.69999999; }; }; class Herbivores_CervusElaphus { HeadLookBoneName="pin_lookat"; teamName="BigGame"; defaultGroupTemplateName="DZDeerGroupBeh"; class PathAgent { radius=0.25; height=1.8; }; class BehaviourHLDeer { instantAlertRangeMin=20; instantAlertRangeMax=50; instantAlertStrength=7; class SlotCalmResting { class BehaviourCalm { grazeOnSpotWeight=5; grazeWalkingWeight=5; restWeight=5; travelWeight=0; grazeOnSpotDurationMin=20; grazeOnSpotDurationMax=60; grazeWalkingDurationMin=20; grazeWalkingDurationMax=60; restingDurationMin=50; restingDurationMax=150; travelingDurationMin=0; travelingDurationMax=0; safetyDurationMin=25; safetyDurationMax=40; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.36; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; class CatchUpMovement { maxSpeed=5; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotCalmGrazing { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=0; grazeOnSpotDurationMin=50; grazeOnSpotDurationMax=100; grazeWalkingDurationMin=50; grazeWalkingDurationMax=100; restingDurationMin=50; restingDurationMax=150; travelingDurationMin=0; travelingDurationMax=0; safetyDurationMin=25; safetyDurationMax=40; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.36; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; class CatchUpMovement { maxSpeed=5; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotCalmTravelling { class BehaviourCalm { grazeOnSpotWeight=10; grazeWalkingWeight=10; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=20; grazeOnSpotDurationMax=30; grazeWalkingDurationMin=20; grazeWalkingDurationMax=30; restingDurationMin=0; restingDurationMax=0; travelingDurationMin=20; travelingDurationMax=30; safetyDurationMin=25; safetyDurationMax=40; safetyLookAngleMin=0.1; safetyLookAngleMax=0.40000001; safetyLookAngleChangeInterval=5; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.36; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; class CatchUpMovement { mmaxSpeed=5; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotDrinking { class BehaviourCalm { grazeOnSpotWeight=10; grazeWalkingWeight=10; restWeight=10; travelWeight=0; drinkingWeight=20; grazeOnSpotDurationMin=100; grazeOnSpotDurationMax=100; grazeWalkingDurationMin=100; grazeWalkingDurationMax=100; restingDurationMin=200; restingDurationMax=200; travelingDurationMin=0; travelingDurationMax=0; drinkingDurationMin=150; drinkingDurationMax=150; safetyDurationMin=25; safetyDurationMax=40; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class DrinkingMovement { maxSpeed=1.36; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=5; slowRadius=0; stopRadius=2; }; class TravelingMovement { maxSpeed=1.36; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; class CatchUpMovement { mmaxSpeed=5; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotNonSpecificThreat { class BehaviourSpecificThreat { walkAwayWeight=0; walkToWeight=10; stayLookAtWeight=10; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=1.5; walkToInitialAngle=2; walkAwayDurationMin=5; walkAwayDurationMax=10; walkToDurationMin=4; walkToDurationMax=8; stayLookAtDurationMin=10; stayLookAtDurationMax=15; stayDurationMin=5; stayDurationMax=15; pathLength=10; class WalkingMovement { maxSpeed=0.85000002; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotSpecificThreat { class BehaviourSpecificThreat { walkAwayWeight=10; walkToWeight=0; stayLookAtWeight=20; stayWeight=0; walkAwaySpreadAngle=1.5; walkAwayInitialAngle=2; walkToSpreadAngle=1.5; walkToInitialAngle=2; walkAwayDurationMin=5; walkAwayDurationMax=10; walkToDurationMin=20; walkToDurationMax=30; stayLookAtDurationMin=15; stayLookAtDurationMax=20; stayDurationMin=5; stayDurationMax=15; pathLength=10; class WalkingMovement { maxSpeed=1.359; minSpeed=0.80000001; acceleration=5; maxAngleSpeed=10; slowRadius=0; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; pathFilter="DeerOnRun"; useStartAnimation="true"; startAnimationMaxSpeed=0.81; }; }; }; class SlotAlerted { class BehaviourFleeFromTargets { class SoundsEntering { class Sound1 { sounds[]= { "DeerAmbush1_SoundSet", "DeerAmbush1_tailForest_SoundSet" }; }; class Sound2 { sounds[]= { "DeerAmbush2_SoundSet", "DeerAmbush2_tailForest_SoundSet" }; }; class Sound3 { sounds[]= { "DeerAmbush3_SoundSet", "DeerAmbush3_tailForest_SoundSet" }; }; class Sound4 { sounds[]= { "DeerAmbush4_SoundSet", "DeerAmbush4_tailForest_SoundSet" }; }; class Sound5 { sounds[]= { "DeerAmbush5_SoundSet", "DeerAmbush5_tailForest_SoundSet" }; }; class Sound6 { sounds[]= { "DeerAmbush6_SoundSet", "DeerAmbush6_tailForest_SoundSet" }; }; probability=1; }; minDistanceToTargetRatio=0.5; class RunMovement { maxSpeed=15; optimalSpeed=8; minSpeed=1; maxSpeedRange=30; optimalSpeedRange=25; acceleration=5; maxAngleSpeed=70; slowRadius=4; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="DeerOnRun"; startAnimationMaxSpeed=1.4; }; class RunMovementInjured1 { maxSpeed=1.35; optimalSpeed=1.35; minSpeed=0; maxSpeedRange=30; optimalSpeedRange=25; acceleration=2; maxAngleSpeed=1; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="DeerOnRun"; startAnimationMaxSpeed=1.4; }; class RunMovementInjured2 { maxSpeed=0.1; optimalSpeed=0; minSpeed=0; maxSpeedRange=30; optimalSpeedRange=25; acceleration=2; maxAngleSpeed=1; slowRadius=10; stopRadius=4; slowToTurn="true"; smoothAcceleration="true"; useStartAnimation="true"; pathFilter="DeerOnRun"; startAnimationMaxSpeed=1.4; }; }; }; class AlertSystem { visionToAlertMultiplier=7; noiseToAlertMultiplier=1; noiseShotToAlertMultiplier=2; damageToAlertMultiplier=1000000; class Calm { dropSpeed=5; dropDelay=1; maxAlertValue=25; }; class NonSpecificThreat { dropSpeed=5; dropDelay=10; maxAlertValue=50; }; class SpecificThreat { dropSpeed=2; dropDelay=10; maxAlertValue=75; }; class Alerted { dropSpeed=10; dropDelay=10; maxAlertValue=100; }; }; }; class NoiseSystemParams { rangeMin=20; rangeMax=80; rangeShotMin=100; rangeShotMax=300; class NoiseStrengthTeamMultipliers { BigGame=0.80000001; Zombies=1; Player=1; }; }; class TargetSystemDZBase { class VisionTeamMultipliers { BigGame=1; Zombies=1; Player=1; Predator=10; }; visionManSizeStand=1; visionManSizeCrouch=0.80000001; visionManSizeProne=0.5; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=1.5; visionRangeMin=5; visionRangeMax=80; visionFov=2; visionPeripheralRangeMin=1; visionPeripheralRangeMax=30; visionPeripheralFov=3.2; visionNightMinMult=1; visionNightMaxMult=0.75; visionRainMinMult=1; visionRainMaxMult=0.89999998; visionFogMinMult=1; visionFogMaxMult=0.69999999; }; }; class Infected { name="zombie"; HeadLookBoneName="lookat"; teamName="Zombies"; class BehaviourHLZombie { class MovementWalk { maxSpeed=1.5; minSpeed=0; acceleration=5; maxAngleSpeed=180; slowRadius=0; stopRadius=0.5; pathFilter="ZombieCalm"; }; class MovementRun { maxSpeed=3; minSpeed=0; acceleration=15; maxAngleSpeed=120; slowRadius=0; goalRadius=1.5; stopRadius=1.7; useStartAnimation="false"; pathFilter="ZombieAlerted"; }; class MovementSprint { maxSpeed=9; minSpeed=0; acceleration=27; maxAngleSpeed=180; maxSpeedRange=9; slowRadius=3.2; goalRadius=1.5; goalSpeed=7.1999998; stopRadius=1.7; waypointRadius=1.5; useStartAnimation="false"; startAnimationMaxSpeed=0; slowToTurn="false"; smoothAcceleration="true"; pathFilter="ZombieAlerted"; }; class SlotCalm { class BehaviourZombieCalm { StandingDurationMin=4; StandingDurationMax=8; WalkingDurationMin=4; WalkingDurationMax=12; MinLookTime=1; MaxLookTime=2; IsAttractMode="false"; class SoundsDuring { class Sound1 { moveWithEntity="true"; }; probability=0.80000001; RepeatTimeMin=9; RepeatTimeMax=15; RepeatEnabled="true"; }; }; }; class SlotAlerted { class BehaviourZombieAlerted { maxTimeInDisturbedState=5; alertToAttract=0.75; fightStateEnterDistance=2; fightStateExitDistance=3; fightStateEnterOrientAngleDiff=160; fightStateExitOrientAngleDiff=160; disturbedTargetHistoryLength=20; disturbedVisionUtilityWeight=1; disturbedNoiseUtilityWeight=1; disturbedDamageUtilityWeight=0; attractedTargetHistoryLength=20; attractedVisionUtilityWeight=1; attractedNoiseUtilityWeight=1; attractedDamageUtilityWeight=1; chaseTargetHistoryLength=20; chaseVisionUtilityWeight=1; chaseNoiseUtilityWeight=1; chaseDamageUtilityWeight=1; class SoundsEntering { class Sound1 { }; probability=1; }; class SoundsDuring { class Sound1 { }; probability=1; RepeatTimeMin=3.9000001; RepeatTimeMax=4.0999999; RepeatEnabled="true"; }; noiseMakeAlertPeriod=3; class NoiseMakeAlert { strength=60; type="sound"; }; }; }; class AlertSystem { visionToAlertMultiplier=20; noiseToAlertMultiplier=0.80000001; damageToAlertMultiplier=10000; noiseShotToAlertMultiplier=1.7; class Calm { DropSpeed=3; DropDelay=2; MaxAlertValue=20; }; class Alerted { DropSpeed=1; DropDelay=10; MaxAlertValue=100; }; }; staminaDepletionSpeed=5; staminaRechargeSpeed=10; }; class TargetSystemDZBase { visionProximityRange=2.5; visionProximityStrengthMult=3; visionCloseRange=8; visionCloseHeight=1.8; visionCloseStrengthMult=3; visionRangeMin=20; visionRangeMax=40; visionFov=1; visionPeripheralRangeMin=5; visionPeripheralRangeMax=20; visionPeripheralFov=2.3; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=1; visionNightMinMult=1; visionNightMaxMult=0.40000001; visionRainMinMult=1; visionRainMaxMult=0.5; visionFogMinMult=1; visionFogMaxMult=0.5; }; class NoiseSystemParams { rangeMin=3; rangeMax=35; rangeShotMin=25; rangeShotMax=200; radiusMin=5; radiusMax=20; radiusShotMin=10; radiusShotMax=50; class NoiseStrengthTeamMultipliers { BigGame=1; Zombies=1; Player=1; }; }; }; class InfectedFemale: Infected { class BehaviourHLZombie: BehaviourHLZombie { class SlotCalm: SlotCalm { class BehaviourZombieCalm: BehaviourZombieCalm { class SoundsDuring: SoundsDuring { class Sound1: Sound1 { moveWithEntity="true"; }; }; }; }; class SlotAlerted: SlotAlerted { class BehaviourZombieAlerted: BehaviourZombieAlerted { class SoundsEntering: SoundsEntering { class Sound1: Sound1 { }; }; class SoundsDuring: SoundsDuring { class Sound1: Sound1 { }; }; }; }; }; }; class InfectedMale: Infected { class BehaviourHLZombie: BehaviourHLZombie { class SlotCalm: SlotCalm { class BehaviourZombieCalm: BehaviourZombieCalm { class SoundsDuring: SoundsDuring { class Sound1: Sound1 { moveWithEntity="true"; }; }; }; }; class SlotAlerted: SlotAlerted { class BehaviourZombieAlerted: BehaviourZombieAlerted { class SoundsEntering: SoundsEntering { class Sound1: Sound1 { }; }; class SoundsDuring: SoundsDuring { class Sound1: Sound1 { }; }; }; }; }; }; class Predators_Shred { HeadLookBoneName="pin_lookat"; teamName="Shred"; defaultGroupTemplateName="ShredGroupBeh"; class PathAgent { radius=0.30000001; height=1; lengthRadius=0.69999999; }; class BehaviourHLPredator { instantAlertRangeMin=0; instantAlertRangeMax=0; instantAlertStrength=0; proximityAttackRange=2.5; attackCooldown=3; class SlotCalmGrazing { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=0; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=500; grazeWalkingDurationMax=500; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=15; travelingDurationMax=30; grazeWalkingSpeed=0.2; travelingWalkingSpeed=1.36; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotSiege { class BehaviourSiege { class SoundsEntering { class Sound1 { sounds[]= { "WolfPant0_SoundSet" }; }; class Sound2 { sounds[]= { "WolfPant1_SoundSet" }; }; class Sound3 { sounds[]= { "WolfPant2_SoundSet" }; }; probability=1; }; class SoundsDuring { class Sound1 { sounds[]= { "WolfPant3_SoundSet" }; }; class Sound2 { sounds[]= { "WolfPant4_SoundSet" }; }; class Sound3 { sounds[]= { "WolfPant5_SoundSet" }; }; class Sound4 { sounds[]= { "WolfPant6_SoundSet" }; }; class Sound5 { sounds[]= { "WolfPant7_SoundSet" }; }; class Sound6 { sounds[]= { "WolfGrowl0_SoundSet" }; }; class Sound7 { sounds[]= { "WolfGrowl1_SoundSet" }; }; class Sound8 { sounds[]= { "WolfGrowl2_SoundSet" }; }; probability=0.40000001; RepeatTimeMin=5; RepeatTimeMax=15; RepeatEnabled="true"; }; innerRadius=7; innerRadiusMin=4.5; innerRadiusMax=10; outerRadius=16; directionChangeTimeMin=7; directionChangeTimeMax=25; PlayerFOV=1.4; preferPlayerFOVCooldown=1; attackDistance=3.5; class InnerCircleMovement { maxSpeed=6.3000002; optimalSpeed=6.3000002; optimalSpeedRange=1; minSpeed=1; acceleration=7; maxAngleSpeed=90; slowRadius=0; stopRadius=2; maxSpeedRange=2; pathFilter="WolfOnHunt"; startAnimationMaxSpeed=0.54000002; }; class Movement { maxSpeed=9; optimalSpeed=6.3000002; optimalSpeedRange=15; minSpeed=1; acceleration=10; maxAngleSpeed=180; slowRadius=0; stopRadius=2; maxSpeedRange=20; pathFilter="WolfOnOuterCircle"; startAnimationMaxSpeed=0.54000002; }; class AttackMovement { maxSpeed=12.175; optimalSpeed=12; optimalSpeedRange=6; minSpeed=0.80000001; acceleration=10; maxAngleSpeed=180; slowRadius=2; stopRadius=3; maxSpeedRange=30; pathFilter="WolfOnHunt"; }; }; }; class SlotEating { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=20; eatingWeight=20; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=10; grazeWalkingDurationMax=15; restingDurationMin=15; restingDurationMax=25; travelingDurationMin=15; travelingDurationMax=30; eatingDurationMin=15; eatingDurationMax=25; safetyDurationMin=10; safetyDurationMax=20; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotHunting { class BehaviourHunt { attackRange=3.5; followingRadius=15; followingRadiusReqroupCooldownMin=5; followingRadiusReqroupCooldownMax=15; followingRadiusRegroupMinSpeed=1.5; predictFollowingMinDistance=10; minDistanceToTargetRatio=0.30000001; class SoundsEntering { class Sound1 { sounds[]= { "WolfBark3_0_SoundSet" }; }; probability=0.30000001; }; class SoundsDuring { class Sound1 { sounds[]= { "WolfBark2_0_SoundSet" }; }; class Sound2 { sounds[]= { "WolfBark2_1_SoundSet" }; }; class Sound3 { sounds[]= { "WolfBark2_2_SoundSet" }; }; class Sound4 { sounds[]= { "WolfBark2_3_SoundSet" }; }; class Sound5 { sounds[]= { "WolfBark2_4_SoundSet" }; }; probability=1; RepeatTimeMin=10; RepeatTimeMax=30; RepeatEnabled="true"; }; class Movement { maxSpeed=10; optimalSpeed=9.5; minSpeed=1; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; maxSpeedRange=15; optimalSpeedRange=5; pathFilter="WolfOnHunt"; }; class MovementAttack { maxSpeed=12.175; optimalSpeed=12.175; minSpeed=6; acceleration=20; maxAngleSpeed=360; slowRadius=0; stopRadius=0; maxSpeedRange=3; optimalSpeedRange=1; pathFilter="WolfOnHunt"; }; }; }; class SlotCalmResting { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=50; grazeWalkingWeight=50; restWeight=50; travelWeight=0; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=15; grazeWalkingDurationMax=25; restingDurationMin=25; restingDurationMax=35; travelingDurationMin=15; travelingDurationMax=30; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.1; safetyLookAngleMax=1.5; safetyLookAngleChangeInterval=7; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotCalmTravelling { class BehaviourCalm { travelingMode="true"; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=10; grazeOnSpotDurationMax=20; grazeWalkingDurationMin=25; grazeWalkingDurationMax=35; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=10; travelingDurationMax=50; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=4; stopRadius=2; slowToTurn="true"; smoothAcceleration="true"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; slowToTurn="true"; smoothAcceleration="true"; }; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=2; stopRadius=1; pathFilter="WolfOnHunt"; }; }; }; class SlotAttracted { class BehaviourCalm { class SoundsEntering { class Sound1 { sounds[]= { "WolfHowls1_SoundSet", "WolfHowls1_tailDistant_SoundSet" }; }; class Sound2 { sounds[]= { "WolfHowls2_SoundSet", "WolfHowls2_tailDistant_SoundSet" }; }; class Sound3 { sounds[]= { "WolfHowls3_SoundSet", "WolfHowls3_tailDistant_SoundSet" }; }; class Sound4 { sounds[]= { "WolfHowls4_SoundSet", "WolfHowls4_tailDistant_SoundSet" }; }; class Sound5 { sounds[]= { "WolfHowls5_SoundSet", "WolfHowls5_tailDistant_SoundSet" }; }; class Sound6 { sounds[]= { "WolfHowls6_SoundSet", "WolfHowls6_tailDistant_SoundSet" }; }; class Sound7 { sounds[]= { "WolfHowls5_SoundSet", "WolfHowls7_tailDistant_SoundSet" }; }; class Sound8 { sounds[]= { "WolfHowls6_SoundSet", "WolfHowls8_tailDistant_SoundSet" }; }; probability=0.89999998; }; class SoundsDuring { class Sound1 { sounds[]= { "WolfHowl1_SoundSet", "WolfHowl1_tailDistant_SoundSet" }; }; class Sound2 { sounds[]= { "WolfHowl2_SoundSet", "WolfHowl2_tailDistant_SoundSet" }; }; class Sound3 { sounds[]= { "WolfHowl3_SoundSet", "WolfHowl3_tailDistant_SoundSet" }; }; class Sound4 { sounds[]= { "WolfHowl4_SoundSet", "WolfHowl4_tailDistant_SoundSet" }; }; class Sound5 { sounds[]= { "WolfHowl5_SoundSet", "WolfHowl5_tailDistant_SoundSet" }; }; class Sound6 { sounds[]= { "WolfHowl6_SoundSet", "WolfHowl6_tailDistant_SoundSet" }; }; class Sound7 { sounds[]= { "WolfHowl5_SoundSet", "WolfHowl7_tailDistant_SoundSet" }; }; class Sound8 { sounds[]= { "WolfHowl6_SoundSet", "WolfHowl8_tailDistant_SoundSet" }; }; probability=0.5; RepeatTimeMin=5; RepeatTimeMax=25; RepeatEnabled="true"; }; grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=0; travelWeight=50; grazeOnSpotDurationMin=5; grazeOnSpotDurationMax=10; grazeWalkingDurationMin=5; grazeWalkingDurationMax=10; restingDurationMin=5; restingDurationMax=10; travelingDurationMin=50; travelingDurationMax=100; grazeWalkingSpeed=0.54400003; travelingWalkingSpeed=0.78200001; safetyDurationMin=10; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=5; stopRadius=3; slowToTurn="true"; smoothAcceleration="true"; pathFilter="WolfOnHunt"; }; class CatchUpMovement { maxSpeed=6.3800001; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; pathFilter="WolfOnHunt"; }; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; }; }; class SlotFireplace { class BehaviourCalm { grazeOnSpotWeight=20; grazeWalkingWeight=20; restWeight=20; travelWeight=0; grazeOnSpotDurationMin=50; grazeOnSpotDurationMax=100; grazeWalkingDurationMin=50; grazeWalkingDurationMax=100; restingDurationMin=50; restingDurationMax=150; travelingDurationMin=0; travelingDurationMax=0; grazeWalkingSpeed=0.2; travelingWalkingSpeed=1.36; safetyIntervalMin=30; safetyIntervalMax=40; safetyDurationMin=5; safetyDurationMax=10; safetyLookAngleMin=0.30000001; safetyLookAngleMax=0.69999999; safetyLookAngleChangeInterval=3; class GrazeMovement { maxSpeed=0.25; minSpeed=0.25; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; }; class TravelingMovement { maxSpeed=2.8499999; minSpeed=0.77999997; acceleration=5; maxAngleSpeed=90; slowRadius=0; stopRadius=0.5; slowToTurn="true"; smoothAcceleration="true"; }; }; }; class SlotScared { class BehaviourFleeFromTargets { class SoundsEntering { class Sound1 { sounds[]= { "WolfGroans1_SoundSet" }; }; class Sound2 { sounds[]= { "WolfGroans2_SoundSet" }; }; class Sound3 { sounds[]= { "WolfGroans3_SoundSet" }; }; probability=1; }; class SoundsDuring { class Sound1 { sounds[]= { "WolfGroan1_SoundSet" }; }; class Sound2 { sounds[]= { "WolfGroan2_SoundSet" }; }; class Sound3 { sounds[]= { "WolfGroan3_SoundSet" }; }; probability=0.30000001; RepeatTimeMin=5; RepeatTimeMax=25; RepeatEnabled="true"; }; class RunMovement { maxSpeed=12.175; optimalSpeed=6.3899999; minSpeed=1; acceleration=2; maxAngleSpeed=360; slowRadius=4; stopRadius=0; maxSpeedRange=15; optimalSpeedRange=10; pathFilter="DeerOnRun"; }; }; }; class AlertSystem { visionToAlertMultiplier=10; noiseToAlertMultiplier=1; damageToAlertMultiplier=200; class Calm { dropSpeed=3; dropDelay=2; maxAlertValue=30; }; class Alerted { dropSpeed=11; dropDelay=0; maxAlertValue=100; }; class AlertedExtra { dropSpeed=25; dropDelay=10; maxAlertValue=500; }; }; }; class NoiseSystemParams { rangeMin=25; rangeMax=100; rangeShotMin=0; rangeShotMax=50; class NoiseStrengthTeamMultipliers { BigGame=0.40000001; Zombies=0.60000002; Player=1; }; }; class TargetSystemDZBase { class VisionTeamMultipliers { BigGame=0.60000002; Zombies=1; Player=1; }; visionManSizeStand=1; visionManSizeCrouch=0.80000001; visionManSizeProne=0.60000002; visionAngularSpeedMin=0.1; visionAngularSpeedMax=0.5; visionAngularSpeedMaxMult=1.5; visionRangeMin=100; visionRangeMax=200; visionFov=1.8; visionPeripheralRangeMin=1; visionPeripheralRangeMax=16; visionPeripheralFov=6.1999998; visionNightMinMult=1; visionNightMaxMult=0.75; visionRainMinMult=1; visionRainMaxMult=0.89999998; visionFogMinMult=1; visionFogMaxMult=0.69999999; }; }; }; class CfgDamages { class DeerBiteDamage { }; class WolfBiteDamage { bone="tongue3"; ammo="MeleeWolf"; radius=0.40000001; duration=0.2; }; class WolfLowBiteDamage { bone="chest"; ammo="MeleeWolf"; radius=0.69999999; duration=0.5; }; class BearBiteDamage { bone="tongue4"; ammo="MeleeBear"; radius=0.69999999; duration=0.2; }; class BearLeftPawDamage { bone="lflegdigit11"; ammo="MeleeBear"; radius=0.69999999; duration=0.2; }; class BearRightPawDamage { bone="rflegdigit11"; ammo="MeleeBear"; radius=0.69999999; duration=0.2; }; class BearBiteDamageIntimidate { bone="tongue4"; ammo="MeleeBearShock"; radius=0.69999999; duration=0.2; }; class BearLeftPawDamageIntimidate { bone="lflegdigit11"; ammo="MeleeBearShock"; radius=0.69999999; duration=0.2; }; class BearRightPawDamageIntimidate { bone="rflegdigit11"; ammo="MeleeBearShock"; radius=0.69999999; duration=0.2; }; }; class CfgAmmo { class MeleeDamage; class MeleeBear: MeleeDamage { class DamageApplied { type="Melee"; bleedThreshold=0.85000002; class Health { damage=25; }; class Blood { damage=110; }; class Shock { damage=35; }; additionAnimalMeleeMultiplier=5; }; soundGroundSoft1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_01", 0.5, 1, 60 }; soundGroundSoft2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_02", 0.5, 1, 60 }; soundGroundSoft3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_03", 0.5, 1, 60 }; soundGroundSoft4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_04", 0.5, 1, 60 }; soundGroundSoft5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_05", 0.5, 1, 60 }; soundGroundSoft6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_06", 0.5, 1, 60 }; soundGroundSoft7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_07", 0.5, 1, 60 }; soundGroundSoft8[]= { >>>>>>> upstream/master "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_08", 0.5, 1, 60 }; soundGroundHard1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_01", 0.5, 1, 80 }; soundGroundHard2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_02", 0.5, 1, 80 }; soundGroundHard3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_03", 0.5, 1, 80 }; soundGroundHard4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_04", 0.5, 1, 80 }; soundGroundHard5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_05", 0.5, 1, 80 }; soundGroundHard6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_06", 0.5, 1, 80 }; soundGroundHard7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_07", 0.5, 1, 80 }; soundGroundHard8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_08", 0.5, 1, 80 }; soundMetal1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_01", 0.5, 1, 80 }; soundMetal2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_02", 0.5, 1, 80 }; soundMetal3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_03", 0.5, 1, 80 }; soundMetal4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_04", 0.5, 1, 80 }; soundMetal5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_05", 0.5, 1, 80 }; soundMetal6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_06", 0.5, 1, 80 }; soundMetal7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_07", 0.5, 1, 80 }; soundMetal8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_08", 0.5, 1, 80 }; soundHitGlass1[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_01", 0.5, 1, 100 }; soundHitGlass2[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_02", 0.5, 1, 100 }; soundHitGlass3[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_03", 0.5, 1, 100 }; soundHitGlass4[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_04", 0.5, 1, 100 }; soundHitGlass5[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_05", 0.5, 1, 100 }; soundHitGlass6[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_06", 0.5, 1, 100 }; soundGlassArmored1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_01", 0.5, 1, 60 }; soundGlassArmored2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_02", 0.5, 1, 60 }; soundGlassArmored3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_03", 0.5, 1, 60 }; soundGlassArmored4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_04", 0.5, 1, 60 }; soundGlassArmored5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_05", 0.5, 1, 60 }; soundGlassArmored6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_06", 0.5, 1, 60 }; soundVehiclePlate1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_01", 0.5, 1, 80 }; soundVehiclePlate2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_02", 0.5, 1, 80 }; soundVehiclePlate3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_03", 0.5, 1, 80 }; soundVehiclePlate4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_04", 0.5, 1, 80 }; soundVehiclePlate5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_05", 0.5, 1, 80 }; soundVehiclePlate6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_06", 0.5, 1, 80 }; soundVehiclePlate7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_07", 0.5, 1, 80 }; soundVehiclePlate8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_08", 0.5, 1, 80 }; soundWood1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_01", 0.5, 1, 80 }; soundWood2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_02", 0.5, 1, 80 }; soundWood3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_03", 0.5, 1, 80 }; soundWood4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_04", 0.5, 1, 80 }; soundWood5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_05", 0.5, 1, 80 }; soundWood6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_06", 0.5, 1, 80 }; soundWood7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_07", 0.5, 1, 80 }; soundWood8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_08", 0.5, 1, 80 }; soundHitBody1[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_1", 0.56234133, 1, 60 }; soundHitBody2[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_2", 0.56234133, 1, 60 }; soundHitBody3[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_3", 0.56234133, 1, 60 }; soundHitBody4[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_4", 0.56234133, 1, 60 }; soundHitBody5[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_5", 0.56234133, 1, 60 }; soundHitBody6[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_6", 0.56234133, 1, 60 }; soundHitBuilding1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_01", 0.5, 1, 60 }; soundHitBuilding2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_02", 0.5, 1, 60 }; soundHitBuilding3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_03", 0.5, 1, 60 }; soundHitBuilding4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_04", 0.5, 1, 60 }; soundHitBuilding5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_05", 0.5, 1, 60 }; soundHitBuilding6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_06", 0.5, 1, 60 }; soundHitBuilding7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_07", 0.5, 1, 60 }; soundHitBuilding8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_08", 0.5, 1, 60 }; soundHitFoliage1[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_01", 0.5, 1, 20 }; soundHitFoliage2[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_02", 0.5, 1, 20 }; soundHitFoliage3[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_03", 0.5, 1, 20 }; soundHitFoliage4[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_04", 0.5, 1, 20 }; soundPlastic1[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_01", 0.34999999, 1, 70 }; soundPlastic2[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_02", 0.34999999, 1, 70 }; soundPlastic3[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_03", 0.34999999, 1, 70 }; soundPlastic4[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_04", 0.34999999, 1, 70 }; soundConcrete1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_01", 0.5, 1, 70 }; soundConcrete2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_02", 0.5, 1, 70 }; soundConcrete3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_03", 0.5, 1, 70 }; soundConcrete4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_04", 0.5, 1, 70 }; soundConcrete5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_05", 0.5, 1, 70 }; soundConcrete6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_06", 0.5, 1, 70 }; soundConcrete7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_07", 0.5, 1, 70 }; soundConcrete8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_08", 0.5, 1, 70 }; soundRubber1[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_01", 0.5, 1, 50 }; soundRubber2[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_02", 0.5, 1, 50 }; soundRubber3[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_03", 0.5, 1, 50 }; soundRubber4[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_04", 0.5, 1, 50 }; soundWater1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_01", 0.5, 1, 40 }; soundWater2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_02", 0.5, 1, 40 }; soundWater3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_03", 0.5, 1, 40 }; hitGroundSoft[]= { "soundGroundSoft1", 0.2, "soundGroundSoft2", 0.2, "soundGroundSoft3", 0.1, "soundGroundSoft4", 0.1, "soundGroundSoft5", 0.1, "soundGroundSoft6", 0.1, "soundGroundSoft7", 0.1, "soundGroundSoft8", 0.1 }; hitGroundHard[]= { "soundGroundHard1", 0.2, "soundGroundHard2", 0.2, "soundGroundHard3", 0.1, "soundGroundHard4", 0.1, "soundGroundHard5", 0.1, "soundGroundHard6", 0.1, "soundGroundHard7", 0.1, "soundGroundHard8", 0.1 }; hitMan[]= { "soundHitBody1", 0.16599999, "soundHitBody2", 0.16599999, "soundHitBody3", 0.16599999, "soundHitBody4", 0.16599999, "soundHitBody5", 0.16599999, "soundHitBody6", 0.17 }; hitArmor[]= { "soundVehiclePlate1", 0.125, "soundVehiclePlate2", 0.125, "soundVehiclePlate3", 0.125, "soundVehiclePlate4", 0.125, "soundVehiclePlate5", 0.125, "soundVehiclePlate6", 0.125, "soundVehiclePlate7", 0.125, "soundVehiclePlate8", 0.125 }; hitBuilding[]= { "soundHitBuilding1", 0.2, "soundHitBuilding2", 0.2, "soundHitBuilding3", 0.1, "soundHitBuilding4", 0.1, "soundHitBuilding5", 0.1, "soundHitBuilding6", 0.1, "soundHitBuilding7", 0.1, "soundHitBuilding8", 0.1 }; hitFoliage[]= { "soundHitFoliage1", 0.25, "soundHitFoliage2", 0.25, "soundHitFoliage3", 0.25, "soundHitFoliage4", 0.25 }; hitWood[]= { "soundWood1", 0.125, "soundWood2", 0.125, "soundWood3", 0.125, "soundWood4", 0.125, "soundWood5", 0.125, "soundWood6", 0.125, "soundWood7", 0.125, "soundWood8", 0.125 }; hitGlass[]= { "soundHitGlass1", 0.16599999, "soundHitGlass2", 0.16599999, "soundHitGlass3", 0.167, "soundHitGlass4", 0.167, "soundHitGlass5", 0.167, "soundHitGlass6", 0.167 }; hitGlassArmored[]= { "soundGlassArmored1", 0.16599999, "soundGlassArmored2", 0.16599999, "soundGlassArmored3", 0.167, "soundGlassArmored4", 0.167, "soundGlassArmored5", 0.167, "soundGlassArmored6", 0.167 }; hitConcrete[]= { "soundConcrete1", 0.125, "soundConcrete2", 0.125, "soundConcrete3", 0.125, "soundConcrete4", 0.125, "soundConcrete5", 0.125, "soundConcrete6", 0.125, "soundConcrete7", 0.125, "soundConcrete8", 0.125 }; hitRubber[]= { "soundRubber1", 0.25, "soundRubber2", 0.25, "soundRubber3", 0.25, "soundRubber4", 0.25 }; hitPlastic[]= { "soundPlastic1", 0.25, "soundPlastic2", 0.25, "soundPlastic3", 0.25, "soundPlastic4", 0.25 }; hitDefault[]= { "soundConcrete1", 0.125, "soundConcrete2", 0.125, "soundConcrete3", 0.125, "soundConcrete4", 0.125, "soundConcrete5", 0.125, "soundConcrete6", 0.125, "soundConcrete7", 0.125, "soundConcrete8", 0.125 }; hitMetal[]= { "soundMetal1", 0.125, "soundMetal2", 0.125, "soundMetal3", 0.125, "soundMetal4", 0.125, "soundMetal5", 0.125, "soundMetal6", 0.125, "soundMetal7", 0.125, "soundMetal8", 0.125 }; hitMetalplate[]= { "soundVehiclePlate1", 0.125, "soundVehiclePlate2", 0.125, "soundVehiclePlate3", 0.125, "soundVehiclePlate4", 0.125, "soundVehiclePlate5", 0.125, "soundVehiclePlate6", 0.125, "soundVehiclePlate7", 0.125, "soundVehiclePlate8", 0.125 }; hitWater[]= { "soundWater1", 0.333, "soundWater2", 0.333, "soundWater3", 0.333 }; }; class MeleeBear_Heavy: MeleeBear { hitAnimation=1; soundGroundSoft1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_01", 1, 1, 60 }; soundGroundSoft2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_02", 1, 1, 60 }; soundGroundSoft3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_03", 1, 1, 60 }; soundGroundSoft4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_04", 1, 1, 60 }; soundGroundSoft5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_05", 1, 1, 60 }; soundGroundSoft6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_06", 1, 1, 60 }; soundGroundSoft7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_07", 1, 1, 60 }; soundGroundSoft8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_08", 1, 1, 60 }; soundGroundHard1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_01", 1, 1, 80 }; soundGroundHard2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_02", 1, 1, 80 }; soundGroundHard3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_03", 1, 1, 80 }; soundGroundHard4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_04", 1, 1, 80 }; soundGroundHard5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_05", 1, 1, 80 }; soundGroundHard6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_06", 1, 1, 80 }; soundGroundHard7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_07", 1, 1, 80 }; soundGroundHard8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_08", 1, 1, 80 }; soundMetal1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_01", 1, 1, 80 }; soundMetal2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_02", 1, 1, 80 }; soundMetal3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_03", 1, 1, 80 }; soundMetal4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_04", 1, 1, 80 }; soundMetal5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_05", 1, 1, 80 }; soundMetal6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_06", 1, 1, 80 }; soundMetal7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_07", 1, 1, 80 }; soundMetal8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_08", 1, 1, 80 }; soundHitGlass1[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_01", 1, 1, 100 }; soundHitGlass2[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_02", 1, 1, 100 }; soundHitGlass3[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_03", 1, 1, 100 }; soundHitGlass4[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_04", 1, 1, 100 }; soundHitGlass5[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_05", 1, 1, 100 }; soundHitGlass6[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_06", 1, 1, 100 }; soundGlassArmored1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_01", 1, 1, 60 }; soundGlassArmored2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_02", 1, 1, 60 }; soundGlassArmored3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_03", 1, 1, 60 }; soundGlassArmored4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_04", 1, 1, 60 }; soundGlassArmored5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_05", 1, 1, 60 }; soundGlassArmored6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_06", 1, 1, 60 }; soundVehiclePlate1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_01", 1, 1, 80 }; soundVehiclePlate2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_02", 1, 1, 80 }; soundVehiclePlate3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_03", 1, 1, 80 }; soundVehiclePlate4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_04", 1, 1, 80 }; soundVehiclePlate5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_05", 1, 1, 80 }; soundVehiclePlate6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_06", 1, 1, 80 }; soundVehiclePlate7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_07", 1, 1, 80 }; soundVehiclePlate8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_08", 1, 1, 80 }; soundWood1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_01", 1, 1, 80 }; soundWood2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_02", 1, 1, 80 }; soundWood3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_03", 1, 1, 80 }; soundWood4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_04", 1, 1, 80 }; soundWood5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_05", 1, 1, 80 }; soundWood6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_06", 1, 1, 80 }; soundWood7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_07", 1, 1, 80 }; soundWood8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_08", 1, 1, 80 }; soundHitBody1[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_1", 0.56234133, 1, 60 }; soundHitBody2[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_2", 0.56234133, 1, 60 }; soundHitBody3[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_3", 0.56234133, 1, 60 }; soundHitBody4[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_4", 0.56234133, 1, 60 }; soundHitBody5[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_5", 0.56234133, 1, 60 }; soundHitBody6[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_6", 0.56234133, 1, 60 }; soundHitBuilding1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_01", 1, 1, 60 }; soundHitBuilding2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_02", 1, 1, 60 }; soundHitBuilding3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_03", 1, 1, 60 }; soundHitBuilding4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_04", 1, 1, 60 }; soundHitBuilding5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_05", 1, 1, 60 }; soundHitBuilding6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_06", 1, 1, 60 }; soundHitBuilding7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_07", 1, 1, 60 }; soundHitBuilding8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_08", 1, 1, 60 }; soundHitFoliage1[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_01", 1, 1, 20 }; soundHitFoliage2[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_02", 1, 1, 20 }; soundHitFoliage3[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_03", 1, 1, 20 }; soundHitFoliage4[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_04", 1, 1, 20 }; soundPlastic1[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_01", 0.70794576, 1, 70 }; soundPlastic2[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_02", 0.70794576, 1, 70 }; soundPlastic3[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_03", 0.70794576, 1, 70 }; soundPlastic4[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_04", 0.70794576, 1, 70 }; soundConcrete1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_01", 1, 1, 70 }; soundConcrete2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_02", 1, 1, 70 }; soundConcrete3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_03", 1, 1, 70 }; soundConcrete4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_04", 1, 1, 70 }; soundConcrete5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_05", 1, 1, 70 }; soundConcrete6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_06", 1, 1, 70 }; soundConcrete7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_07", 1, 1, 70 }; soundConcrete8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_08", 1, 1, 70 }; soundRubber1[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_01", 1, 1, 50 }; soundRubber2[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_02", 1, 1, 50 }; soundRubber3[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_03", 1, 1, 50 }; soundRubber4[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_04", 1, 1, 50 }; soundWater1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_01", 1, 1, 40 }; soundWater2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_02", 1, 1, 40 }; soundWater3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_03", 1, 1, 40 }; hitGroundSoft[]= { "soundGroundSoft1", 0.2, "soundGroundSoft2", 0.2, "soundGroundSoft3", 0.1, "soundGroundSoft4", 0.1, "soundGroundSoft5", 0.1, "soundGroundSoft6", 0.1, "soundGroundSoft7", 0.1, "soundGroundSoft8", 0.1 }; hitGroundHard[]= { "soundGroundHard1", 0.2, "soundGroundHard2", 0.2, "soundGroundHard3", 0.1, "soundGroundHard4", 0.1, "soundGroundHard5", 0.1, "soundGroundHard6", 0.1, "soundGroundHard7", 0.1, "soundGroundHard8", 0.1 }; hitMan[]= { "soundHitBody1", 0.16599999, "soundHitBody2", 0.16599999, "soundHitBody3", 0.16599999, "soundHitBody4", 0.16599999, "soundHitBody5", 0.16599999, "soundHitBody6", 0.17 }; hitArmor[]= { "soundVehiclePlate1", 0.125, "soundVehiclePlate2", 0.125, "soundVehiclePlate3", 0.125, "soundVehiclePlate4", 0.125, "soundVehiclePlate5", 0.125, "soundVehiclePlate6", 0.125, "soundVehiclePlate7", 0.125, "soundVehiclePlate8", 0.125 }; hitBuilding[]= { "soundHitBuilding1", 0.2, "soundHitBuilding2", 0.2, "soundHitBuilding3", 0.1, "soundHitBuilding4", 0.1, "soundHitBuilding5", 0.1, "soundHitBuilding6", 0.1, "soundHitBuilding7", 0.1, "soundHitBuilding8", 0.1 }; hitFoliage[]= { "soundHitFoliage1", 0.25, "soundHitFoliage2", 0.25, "soundHitFoliage3", 0.25, "soundHitFoliage4", 0.25 }; hitWood[]= { "soundWood1", 0.125, "soundWood2", 0.125, "soundWood3", 0.125, "soundWood4", 0.125, "soundWood5", 0.125, "soundWood6", 0.125, "soundWood7", 0.125, "soundWood8", 0.125 }; hitGlass[]= { "soundHitGlass1", 0.16599999, "soundHitGlass2", 0.16599999, "soundHitGlass3", 0.167, "soundHitGlass4", 0.167, "soundHitGlass5", 0.167, "soundHitGlass6", 0.167 }; hitGlassArmored[]= { "soundGlassArmored1", 0.16599999, "soundGlassArmored2", 0.16599999, "soundGlassArmored3", 0.167, "soundGlassArmored4", 0.167, "soundGlassArmored5", 0.167, "soundGlassArmored6", 0.167 }; hitConcrete[]= { "soundConcrete1", 0.125, "soundConcrete2", 0.125, "soundConcrete3", 0.125, "soundConcrete4", 0.125, "soundConcrete5", 0.125, "soundConcrete6", 0.125, "soundConcrete7", 0.125, "soundConcrete8", 0.125 }; hitRubber[]= { "soundRubber1", 0.25, "soundRubber2", 0.25, "soundRubber3", 0.25, "soundRubber4", 0.25 }; hitPlastic[]= { "soundPlastic1", 0.25, "soundPlastic2", 0.25, "soundPlastic3", 0.25, "soundPlastic4", 0.25 }; hitDefault[]= { "soundConcrete1", 0.125, "soundConcrete2", 0.125, "soundConcrete3", 0.125, "soundConcrete4", 0.125, "soundConcrete5", 0.125, "soundConcrete6", 0.125, "soundConcrete7", 0.125, "soundConcrete8", 0.125 }; hitMetal[]= { "soundMetal1", 0.125, "soundMetal2", 0.125, "soundMetal3", 0.125, "soundMetal4", 0.125, "soundMetal5", 0.125, "soundMetal6", 0.125, "soundMetal7", 0.125, "soundMetal8", 0.125 }; hitMetalplate[]= { "soundVehiclePlate1", 0.125, "soundVehiclePlate2", 0.125, "soundVehiclePlate3", 0.125, "soundVehiclePlate4", 0.125, "soundVehiclePlate5", 0.125, "soundVehiclePlate6", 0.125, "soundVehiclePlate7", 0.125, "soundVehiclePlate8", 0.125 }; hitWater[]= { "soundWater1", 0.333, "soundWater2", 0.333, "soundWater3", 0.333 }; }; class MeleeBearShock: MeleeDamage { class DamageApplied { type="Melee"; bleedThreshold=0.85000002; class Health { damage=25; }; class Blood { damage=350; }; class Shock { damage=110; }; additionAnimalMeleeMultiplier=5; }; soundGroundSoft1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_01", 0.5, 1, 60 }; soundGroundSoft2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_02", 0.5, 1, 60 }; soundGroundSoft3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_03", 0.5, 1, 60 }; soundGroundSoft4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_04", 0.5, 1, 60 }; soundGroundSoft5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_05", 0.5, 1, 60 }; soundGroundSoft6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_06", 0.5, 1, 60 }; soundGroundSoft7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_07", 0.5, 1, 60 }; soundGroundSoft8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_08", 0.5, 1, 60 }; soundGroundHard1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_01", 0.5, 1, 80 }; soundGroundHard2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_02", 0.5, 1, 80 }; soundGroundHard3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_03", 0.5, 1, 80 }; soundGroundHard4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_04", 0.5, 1, 80 }; soundGroundHard5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_05", 0.5, 1, 80 }; soundGroundHard6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_06", 0.5, 1, 80 }; soundGroundHard7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_07", 0.5, 1, 80 }; soundGroundHard8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_08", 0.5, 1, 80 }; soundMetal1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_01", 0.5, 1, 80 }; soundMetal2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_02", 0.5, 1, 80 }; soundMetal3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_03", 0.5, 1, 80 }; soundMetal4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_04", 0.5, 1, 80 }; soundMetal5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_05", 0.5, 1, 80 }; soundMetal6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_06", 0.5, 1, 80 }; soundMetal7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_07", 0.5, 1, 80 }; soundMetal8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_08", 0.5, 1, 80 }; soundHitGlass1[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_01", 0.5, 1, 100 }; soundHitGlass2[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_02", 0.5, 1, 100 }; soundHitGlass3[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_03", 0.5, 1, 100 }; soundHitGlass4[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_04", 0.5, 1, 100 }; soundHitGlass5[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_05", 0.5, 1, 100 }; soundHitGlass6[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_06", 0.5, 1, 100 }; soundGlassArmored1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_01", 0.5, 1, 60 }; soundGlassArmored2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_02", 0.5, 1, 60 }; soundGlassArmored3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_03", 0.5, 1, 60 }; soundGlassArmored4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_04", 0.5, 1, 60 }; soundGlassArmored5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_05", 0.5, 1, 60 }; soundGlassArmored6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_06", 0.5, 1, 60 }; soundVehiclePlate1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_01", 0.5, 1, 80 }; soundVehiclePlate2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_02", 0.5, 1, 80 }; soundVehiclePlate3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_03", 0.5, 1, 80 }; soundVehiclePlate4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_04", 0.5, 1, 80 }; soundVehiclePlate5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_05", 0.5, 1, 80 }; soundVehiclePlate6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_06", 0.5, 1, 80 }; soundVehiclePlate7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_07", 0.5, 1, 80 }; soundVehiclePlate8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_08", 0.5, 1, 80 }; soundWood1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_01", 0.5, 1, 80 }; soundWood2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_02", 0.5, 1, 80 }; soundWood3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_03", 0.5, 1, 80 }; soundWood4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_04", 0.5, 1, 80 }; soundWood5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_05", 0.5, 1, 80 }; soundWood6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_06", 0.5, 1, 80 }; soundWood7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_07", 0.5, 1, 80 }; soundWood8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_08", 0.5, 1, 80 }; soundHitBody1[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_1", 0.56234133, 1, 60 }; soundHitBody2[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_2", 0.56234133, 1, 60 }; soundHitBody3[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_3", 0.56234133, 1, 60 }; soundHitBody4[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_4", 0.56234133, 1, 60 }; soundHitBody5[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_5", 0.56234133, 1, 60 }; soundHitBody6[]= { "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_6", 0.56234133, 1, 60 }; soundHitBuilding1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_01", 0.5, 1, 60 }; soundHitBuilding2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_02", 0.5, 1, 60 }; soundHitBuilding3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_03", 0.5, 1, 60 }; soundHitBuilding4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_04", 0.5, 1, 60 }; soundHitBuilding5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_05", 0.5, 1, 60 }; soundHitBuilding6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_06", 0.5, 1, 60 }; soundHitBuilding7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_07", 0.5, 1, 60 }; soundHitBuilding8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_08", 0.5, 1, 60 }; soundHitFoliage1[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_01", 0.5, 1, 20 }; soundHitFoliage2[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_02", 0.5, 1, 20 }; soundHitFoliage3[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_03", 0.5, 1, 20 }; soundHitFoliage4[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_04", 0.5, 1, 20 }; soundPlastic1[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_01", 0.34999999, 1, 70 }; soundPlastic2[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_02", 0.34999999, 1, 70 }; soundPlastic3[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_03", 0.34999999, 1, 70 }; soundPlastic4[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_04", 0.34999999, 1, 70 }; soundConcrete1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_01", 0.5, 1, 70 }; soundConcrete2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_02", 0.5, 1, 70 }; soundConcrete3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_03", 0.5, 1, 70 }; soundConcrete4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_04", 0.5, 1, 70 }; soundConcrete5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_05", 0.5, 1, 70 }; soundConcrete6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_06", 0.5, 1, 70 }; soundConcrete7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_07", 0.5, 1, 70 }; soundConcrete8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_08", 0.5, 1, 70 }; soundRubber1[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_01", 0.5, 1, 50 }; soundRubber2[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_02", 0.5, 1, 50 }; soundRubber3[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_03", 0.5, 1, 50 }; soundRubber4[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_04", 0.5, 1, 50 }; soundWater1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_01", 0.5, 1, 40 }; soundWater2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_02", 0.5, 1, 40 }; soundWater3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_03", 0.5, 1, 40 }; hitGroundSoft[]= { "soundGroundSoft1", 0.2, "soundGroundSoft2", 0.2, "soundGroundSoft3", 0.1, "soundGroundSoft4", 0.1, "soundGroundSoft5", 0.1, "soundGroundSoft6", 0.1, "soundGroundSoft7", 0.1, "soundGroundSoft8", 0.1 }; hitGroundHard[]= { "soundGroundHard1", 0.2, "soundGroundHard2", 0.2, "soundGroundHard3", 0.1, "soundGroundHard4", 0.1, "soundGroundHard5", 0.1, "soundGroundHard6", 0.1, "soundGroundHard7", 0.1, "soundGroundHard8", 0.1 }; hitMan[]= { "soundHitBody1", 0.16599999, "soundHitBody2", 0.16599999, "soundHitBody3", 0.16599999, "soundHitBody4", 0.16599999, "soundHitBody5", 0.16599999, "soundHitBody6", 0.17 }; hitArmor[]= { "soundVehiclePlate1", 0.125, "soundVehiclePlate2", 0.125, "soundVehiclePlate3", 0.125, "soundVehiclePlate4", 0.125, "soundVehiclePlate5", 0.125, "soundVehiclePlate6", 0.125, "soundVehiclePlate7", 0.125, "soundVehiclePlate8", 0.125 }; hitBuilding[]= { "soundHitBuilding1", 0.2, "soundHitBuilding2", 0.2, "soundHitBuilding3", 0.1, "soundHitBuilding4", 0.1, "soundHitBuilding5", 0.1, "soundHitBuilding6", 0.1, "soundHitBuilding7", 0.1, "soundHitBuilding8", 0.1 }; hitFoliage[]= { "soundHitFoliage1", 0.25, "soundHitFoliage2", 0.25, "soundHitFoliage3", 0.25, "soundHitFoliage4", 0.25 }; hitWood[]= { "soundWood1", 0.125, "soundWood2", 0.125, "soundWood3", 0.125, "soundWood4", 0.125, "soundWood5", 0.125, "soundWood6", 0.125, "soundWood7", 0.125, "soundWood8", 0.125 }; hitGlass[]= { "soundHitGlass1", 0.16599999, "soundHitGlass2", 0.16599999, "soundHitGlass3", 0.167, "soundHitGlass4", 0.167, "soundHitGlass5", 0.167, "soundHitGlass6", 0.167 }; hitGlassArmored[]= { "soundGlassArmored1", 0.16599999, "soundGlassArmored2", 0.16599999, "soundGlassArmored3", 0.167, "soundGlassArmored4", 0.167, "soundGlassArmored5", 0.167, "soundGlassArmored6", 0.167 }; hitConcrete[]= { "soundConcrete1", 0.125, "soundConcrete2", 0.125, "soundConcrete3", 0.125, "soundConcrete4", 0.125, "soundConcrete5", 0.125, "soundConcrete6", 0.125, "soundConcrete7", 0.125, "soundConcrete8", 0.125 }; hitRubber[]= { "soundRubber1", 0.25, "soundRubber2", 0.25, "soundRubber3", 0.25, "soundRubber4", 0.25 }; hitPlastic[]= { "soundPlastic1", 0.25, "soundPlastic2", 0.25, "soundPlastic3", 0.25, "soundPlastic4", 0.25 }; hitDefault[]= { "soundConcrete1", 0.125, "soundConcrete2", 0.125, "soundConcrete3", 0.125, "soundConcrete4", 0.125, "soundConcrete5", 0.125, "soundConcrete6", 0.125, "soundConcrete7", 0.125, "soundConcrete8", 0.125 }; hitMetal[]= { "soundMetal1", 0.125, "soundMetal2", 0.125, "soundMetal3", 0.125, "soundMetal4", 0.125, "soundMetal5", 0.125, "soundMetal6", 0.125, "soundMetal7", 0.125, "soundMetal8", 0.125 }; hitMetalplate[]= { "soundVehiclePlate1", 0.125, "soundVehiclePlate2", 0.125, "soundVehiclePlate3", 0.125, "soundVehiclePlate4", 0.125, "soundVehiclePlate5", 0.125, "soundVehiclePlate6", 0.125, "soundVehiclePlate7", 0.125, "soundVehiclePlate8", 0.125 }; hitWater[]= { "soundWater1", 0.333, "soundWater2", 0.333, "soundWater3", 0.333 }; }; class MeleeBearShock_Heavy: MeleeBearShock { hitAnimation=1; soundGroundSoft1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_01", 1, 1, 60 }; soundGroundSoft2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_02", 1, 1, 60 }; soundGroundSoft3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_03", 1, 1, 60 }; soundGroundSoft4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_04", 1, 1, 60 }; soundGroundSoft5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_05", 1, 1, 60 }; soundGroundSoft6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_06", 1, 1, 60 }; soundGroundSoft7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_07", 1, 1, 60 }; <<<<<<< HEAD soundGroundSoft8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_08", 1, ======= ======= >>>>>>> Stashed changes soundGroundSoft8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_dirt_hit_08", 0.5, >>>>>>> upstream/master 1, 60 }; soundGroundHard1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_01", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundGroundHard2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_02", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundGroundHard3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_03", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundGroundHard4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_04", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundGroundHard5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_05", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundGroundHard6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_06", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundGroundHard7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_07", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundGroundHard8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_default_hit_08", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundMetal1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_01", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundMetal2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_02", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundMetal3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_03", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundMetal4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_04", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundMetal5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_05", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundMetal6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_06", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundMetal7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_07", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundMetal8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_08", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundHitGlass1[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_01", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 100 }; soundHitGlass2[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_02", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 100 }; soundHitGlass3[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_03", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 100 }; soundHitGlass4[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_04", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 100 }; soundHitGlass5[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_05", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 100 }; soundHitGlass6[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_glass_hit_06", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 100 }; soundGlassArmored1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_01", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundGlassArmored2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_02", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundGlassArmored3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_03", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundGlassArmored4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_04", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundGlassArmored5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_05", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundGlassArmored6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_armor_glass_hit_06", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundVehiclePlate1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_01", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundVehiclePlate2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_02", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundVehiclePlate3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_03", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundVehiclePlate4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_04", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundVehiclePlate5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_05", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundVehiclePlate6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_06", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundVehiclePlate7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_07", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundVehiclePlate8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_metal_hit_08", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundWood1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_01", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundWood2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_02", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundWood3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_03", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundWood4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_04", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundWood5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_05", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundWood6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_06", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundWood7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_07", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundWood8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_wood_hit_08", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 80 }; soundHitBody1[]= { <<<<<<< HEAD "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_1", ======= "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_1", >>>>>>> upstream/master 0.56234133, 1, 60 }; soundHitBody2[]= { <<<<<<< HEAD "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_2", ======= "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_2", >>>>>>> upstream/master 0.56234133, 1, 60 }; soundHitBody3[]= { <<<<<<< HEAD "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_3", ======= "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_3", >>>>>>> upstream/master 0.56234133, 1, 60 }; soundHitBody4[]= { <<<<<<< HEAD "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_4", ======= "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_4", >>>>>>> upstream/master 0.56234133, 1, 60 }; soundHitBody5[]= { <<<<<<< HEAD "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_5", ======= "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_5", >>>>>>> upstream/master 0.56234133, 1, 60 }; soundHitBody6[]= { <<<<<<< HEAD "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_heavy_6", ======= "dz\sounds\weapons\hits\melee\shortblade\hit_shortblade_body_light_6", >>>>>>> upstream/master 0.56234133, 1, 60 }; soundHitBuilding1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_01", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundHitBuilding2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_02", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundHitBuilding3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_03", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundHitBuilding4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_04", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundHitBuilding5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_05", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundHitBuilding6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_06", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundHitBuilding7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_07", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundHitBuilding8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_08", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 60 }; soundHitFoliage1[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_01", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 20 }; soundHitFoliage2[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_02", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 20 }; soundHitFoliage3[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_03", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 20 }; soundHitFoliage4[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_leaves_hit_04", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 20 }; soundPlastic1[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_01", <<<<<<< HEAD 0.70794576, ======= 0.34999999, >>>>>>> upstream/master 1, 70 }; soundPlastic2[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_02", <<<<<<< HEAD 0.70794576, ======= 0.34999999, >>>>>>> upstream/master 1, 70 }; soundPlastic3[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_03", <<<<<<< HEAD 0.70794576, ======= 0.34999999, >>>>>>> upstream/master 1, 70 }; soundPlastic4[]= { "dz\sounds\weapons\meleehits\fist_hits\fist_hard_plastic_hit_04", <<<<<<< HEAD 0.70794576, ======= 0.34999999, >>>>>>> upstream/master 1, 70 }; soundConcrete1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_01", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 70 }; soundConcrete2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_02", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 70 }; soundConcrete3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_03", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 70 }; soundConcrete4[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_04", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 70 }; soundConcrete5[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_05", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 70 }; soundConcrete6[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_06", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 70 }; soundConcrete7[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_07", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 70 }; soundConcrete8[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_concrete_hit_08", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 70 }; soundRubber1[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_01", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 50 }; soundRubber2[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_02", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 50 }; soundRubber3[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_03", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 50 }; soundRubber4[]= { "dz\sounds\weapons\meleehits\blunt_metal_weapon_hits\blunt_metal_weapon_rubber_hit_04", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 50 }; soundWater1[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_01", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 40 }; soundWater2[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_02", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 40 }; soundWater3[]= { "dz\sounds\weapons\meleehits\short_blade_weapon_hits\short_blade_weapon_water_hit_03", <<<<<<< HEAD 1, ======= 0.5, >>>>>>> upstream/master 1, 40 }; hitGroundSoft[]= { "soundGroundSoft1", 0.2, "soundGroundSoft2", 0.2, "soundGroundSoft3", 0.1, "soundGroundSoft4", 0.1, "soundGroundSoft5", 0.1, "soundGroundSoft6", 0.1, "soundGroundSoft7", 0.1, "soundGroundSoft8", 0.1 }; hitGroundHard[]= { "soundGroundHard1", 0.2, "soundGroundHard2", 0.2, "soundGroundHard3", 0.1, "soundGroundHard4", 0.1, "soundGroundHard5", 0.1, "soundGroundHard6", 0.1, "soundGroundHard7", 0.1, "soundGroundHard8", 0.1 }; hitMan[]= { "soundHitBody1", 0.16599999, "soundHitBody2", 0.16599999, "soundHitBody3", 0.16599999, "soundHitBody4", 0.16599999, "soundHitBody5", 0.16599999, "soundHitBody6", 0.17 }; hitArmor[]= { "soundVehiclePlate1", 0.125, "soundVehiclePlate2", 0.125, "soundVehiclePlate3", 0.125, "soundVehiclePlate4", 0.125, "soundVehiclePlate5", 0.125, "soundVehiclePlate6", 0.125, "soundVehiclePlate7", 0.125, "soundVehiclePlate8", 0.125 }; hitBuilding[]= { "soundHitBuilding1", 0.2, "soundHitBuilding2", 0.2, "soundHitBuilding3", 0.1, "soundHitBuilding4", 0.1, "soundHitBuilding5", 0.1, "soundHitBuilding6", 0.1, "soundHitBuilding7", 0.1, "soundHitBuilding8", 0.1 }; hitFoliage[]= { "soundHitFoliage1", 0.25, "soundHitFoliage2", 0.25, "soundHitFoliage3", 0.25, "soundHitFoliage4", 0.25 }; hitWood[]= { "soundWood1", 0.125, "soundWood2", 0.125, "soundWood3", 0.125, "soundWood4", 0.125, "soundWood5", 0.125, "soundWood6", 0.125, "soundWood7", 0.125, "soundWood8", 0.125 }; hitGlass[]= { "soundHitGlass1", 0.16599999, "soundHitGlass2", 0.16599999, "soundHitGlass3", 0.167, "soundHitGlass4", 0.167, "soundHitGlass5", 0.167, "soundHitGlass6", 0.167 }; hitGlassArmored[]= { "soundGlassArmored1", 0.16599999, "soundGlassArmored2", 0.16599999, "soundGlassArmored3", 0.167, "soundGlassArmored4", 0.167, "soundGlassArmored5", 0.167, "soundGlassArmored6", 0.167 }; hitConcrete[]= { "soundConcrete1", 0.125, "soundConcrete2", 0.125, "soundConcrete3", 0.125, "soundConcrete4", 0.125, "soundConcrete5", 0.125, "soundConcrete6", 0.125, "soundConcrete7", 0.125, "soundConcrete8", 0.125 }; <<<<<<< HEAD hitRubber[]= { "soundRubber1", 0.25, "soundRubber2", 0.25, "soundRubber3", 0.25, "soundRubber4", 0.25 }; hitPlastic[]= { "soundPlastic1", 0.25, "soundPlastic2", 0.25, "soundPlastic3", 0.25, "soundPlastic4", 0.25 }; hitDefault[]= { "soundConcrete1", 0.125, "soundConcrete2", 0.125, "soundConcrete3", 0.125, "soundConcrete4", 0.125, "soundConcrete5", 0.125, "soundConcrete6", 0.125, "soundConcrete7", 0.125, "soundConcrete8", 0.125 }; hitMetal[]= { "soundMetal1", 0.125, "soundMetal2", 0.125, "soundMetal3", 0.125, "soundMetal4", 0.125, "soundMetal5", 0.125, "soundMetal6", 0.125, "soundMetal7", 0.125, "soundMetal8", 0.125 }; hitMetalplate[]= { "soundVehiclePlate1", 0.125, "soundVehiclePlate2", 0.125, "soundVehiclePlate3", 0.125, "soundVehiclePlate4", 0.125, "soundVehiclePlate5", 0.125, "soundVehiclePlate6", 0.125, "soundVehiclePlate7", 0.125, "soundVehiclePlate8", 0.125 }; hitWater[]= { "soundWater1", 0.333, "soundWater2", 0.333, "soundWater3", 0.333 }; }; }; class TrackingParams { maxTracksCount=100; playerRangeMin=12; playerRangeMax=40; agentUpdateDistance=16; }; class CfgVehicles { class Inventory_Base; class Container_Base; class WorldContainer_Base; class HouseNoDestruct; class Static; class Barrel_ColorBase; class Armband_ColorBase; class Clothing_Base; class ItemOptics; class AviatorGlasses; class CamoNet; class Fence; class WoodenCrate; class AnimalBase; //class Animal_UrsusArctos; //class Animal_CanisLupus; //class Animal_CapraHircus; class DZ_LightAI; class Clothing: Clothing_Base { }; class BearSteakMeat; ======= hitRubber[]= { "soundRubber1", 0.25, "soundRubber2", 0.25, "soundRubber3", 0.25, "soundRubber4", 0.25 }; hitPlastic[]= { "soundPlastic1", 0.25, "soundPlastic2", 0.25, "soundPlastic3", 0.25, "soundPlastic4", 0.25 }; hitDefault[]= { "soundConcrete1", 0.125, "soundConcrete2", 0.125, "soundConcrete3", 0.125, "soundConcrete4", 0.125, "soundConcrete5", 0.125, "soundConcrete6", 0.125, "soundConcrete7", 0.125, "soundConcrete8", 0.125 }; hitMetal[]= { "soundMetal1", 0.125, "soundMetal2", 0.125, "soundMetal3", 0.125, "soundMetal4", 0.125, "soundMetal5", 0.125, "soundMetal6", 0.125, "soundMetal7", 0.125, "soundMetal8", 0.125 }; hitMetalplate[]= { "soundVehiclePlate1", 0.125, "soundVehiclePlate2", 0.125, "soundVehiclePlate3", 0.125, "soundVehiclePlate4", 0.125, "soundVehiclePlate5", 0.125, "soundVehiclePlate6", 0.125, "soundVehiclePlate7", 0.125, "soundVehiclePlate8", 0.125 }; hitWater[]= { "soundWater1", 0.333, "soundWater2", 0.333, "soundWater3", 0.333 }; }; }; class CfgSoundShaders { class TigerBark_SoundShader { samples[]= { { "\ShredAnimals\sounds\animals\tiger\bark\bark_1.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerBark2_SoundShader { samples[]= { { "\ShredAnimals\sounds\animals\tiger\bark2\bark2_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerBark3_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\bark3\bark3_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerBreath_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\breath\breath_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class Tigerdeath_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\death\death_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerGroans_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\groans\groans_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerGrowl_A_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\growl\growl_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerGrowl_B_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\growl\growl_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerHowl_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\howl\howl_1.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerHowls_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\howls\howls_1.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerPant_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\pant\pant_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerPant_Short_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\pant_short\pant_short_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerSnarl_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\snarl\snarl_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerSnarl_Short_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\snarl_short\snarl_short_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerWhimper_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\whimper\whimper_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerYelp_SoundShader { samples[]= { { "ShredAnimals\sounds\animals\tiger\Yelp\yelp_0.ogg", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerAttack_SoundShader { samples[]= { { "ShredAnimals\tiger\tigris\tiger_growl", 1 } }; volume=1; range=45; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerMumble_SoundShader { samples[]= { { "ShredAnimals\tiger\tigris\tigerpurr", 1 } }; volume=1; range=140; rangeCurve="defaultAnimalAttenuationCurve"; }; class TigerRoar_SoundShader { samples[]= { { "ShredAnimals\tiger\tigris\tigerroar", 1 } }; volume=1; range=140; rangeCurve="defaultAnimalAttenuationCurve"; }; }; class CfgSoundSets { class TigerBase_SoundSet { sound3DProcessingType="animal3DProcessingType"; volumeCurve="animalAttenuationCurve"; spatial="true"; doppler="false"; loop="false"; }; class TigerBark_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerBark_SoundShader" }; }; class TigerBark2_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerBark2_SoundShader" }; }; class TigerBark3_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerBark3_SoundShader" }; }; class TigerBreath_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerBreath_SoundShader" }; }; class TigerDeath_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerDeath_SoundShader" }; }; class TigerGroans_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerGroans_SoundShader" }; }; class TigerGrowl_B_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerGrowl_SoundShader" }; }; class TigerGrowl_A_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerGrowl_SoundShader" }; }; class TigerHowl_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerHowl_SoundShader" }; }; class TigerHowls_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerHowls_SoundShader" }; }; class TigerPant_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerPant_SoundShader" }; }; class TigerPant_Short_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerPant_Short_SoundShader" }; }; class TigerSnarl_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerSnarl_SoundShader" }; }; class TigerSnarl_Short_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerSnarl_Short_SoundShader" }; }; class TigerWhimper_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerWhimper_SoundShader" }; }; class TigerYelp_SoundSet: TigerBase_SoundSet { soundShaders[]= { "TigerYelp_SoundShader" }; }; class baseTiger_SoundSet { sound3DProcessingType="animal3DProcessingType"; volumeCurve="animalAttenuationCurve"; spatial="true"; doppler="false"; loop="false"; }; class TigerAttack_SoundSet: baseTiger_SoundSet { soundShaders[]= { "TigerAttack_SoundShader" }; }; class TigerRoar_SoundSet: baseTiger_SoundSet { soundShaders[]= { "TigerRoar_SoundShader" }; }; class TigerMumble_SoundSet: baseTiger_SoundSet { soundShaders[]= { "TigerMumble_SoundShader" }; }; }; class CfgNoises { class TigerRoarNoise { type="sound"; continuousRange=100; strength=10; }; }; class CfgVehicles { class Static; class CamoNet; class Fence; class WoodenCrate; class HouseNoDestruct; class Inventory_Base; class Container_Base; class Gear_Base; class WorldContainer_Base; class Barrel_ColorBase; class Armband_ColorBase; class Clothing_Base; class BearSteakMeat; class DZ_LightAI; class AnimalBase; class Animal_UrsusArctos; class Animal_CanisLupus; class Pelt_Base; >>>>>>> upstream/master class TigerSteakMeat: BearSteakMeat { scope=2; displayName="Tiger Steak"; descriptionShort="Tiger Steak"; model="\dz\gear\food\meat_steak.p3d"; rotationFlags=17; weight=0; interactionWeight=1; quantityBar=1; varQuantityInit=180; varQuantityMin=0; varQuantityMax=180; itemSize[]={2,3}; absorbency=0.30000001; inventorySlot="Ingredient"; isMeleeWeapon=1; class MeleeModes { class Default { ammo="MeleeFist"; range=1; }; class Heavy { ammo="MeleeFist_Heavy"; range=1; }; class Sprint { ammo="MeleeFist_Heavy"; range=2.8; }; }; <<<<<<< HEAD }; class Pelt_Base; ======= }; >>>>>>> upstream/master class TigerPelt: Pelt_Base { scope = 2; displayName = "Tiger Pelt"; descriptionShort = "Tiger Pelt"; <<<<<<< HEAD model = "\dz\gear\consumables\Pelt_Wolf.p3d"; ======= model = "\dz\gear\consumables\pelt_wolf.p3d"; >>>>>>> upstream/master hiddenSelections[] = {"camo"}; hiddenSelectionsTextures[] = {"ShredAnimals\pelt_tiger_co.paa"}; hiddenSelectionsMaterials[] = {"ShredAnimals\pelt_tiger.rvmat"}; weight = 1200; itemSize[] = {5,3}; peltGain = 6; class DamageSystem { class GlobalHealth { class Health <<<<<<< HEAD { hitpoints = 200; healthLevels[] = {{1.0,{"DZ\gear\consumables\data\pelt_wolf.rvmat"}},{0.7,{"DZ\gear\consumables\data\pelt_wolf.rvmat"}},{0.5,{"DZ\gear\consumables\data\pelt_wolf_damage.rvmat"}},{0.3,{"DZ\gear\consumables\data\pelt_wolf_damage.rvmat"}},{0.0,{"DZ\gear\consumables\data\pelt_wolf_destruct.rvmat"}}}; }; }; }; }; class Animal_Shred_Tiger: AnimalBase { simulation = "dayzanimal"; scope = 2; // model = "\ShredAnimals\tigerX2.p3d"; //model = "\DZ\animals\canis_lupus\canis_lupus.p3d"; displayName = "$STR_CfgVehicles_Animal_Tiger0"; descriptionShort = "$STR_CfgVehicles_Animal_Tigrer1"; //hiddenSelections[] = {"Camo","CamoHair"}; DamageSphereAmmos[] = {"MeleeWolf"}; aiAgentTemplate = "Predators_Wolf"; injuryLevels[] = {1.0,0.5,0.2,0.0}; class DamageSystem { class GlobalHealth { class Health { hitpoints = 200; healthLabels[] = {1.0,0.7,0.5,0.3,0.0}; }; class Blood { hitpoints = 5000; }; class Shock { hitpoints = 100; }; }; class DamageZones { class Zone_Head { componentNames[] = {"Zone_Head"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.15; canBleed = 0; class Health { hitpoints = 120; transferToGlobalCoef = 1; }; class Blood: Health { hitpoints = 0; }; class Shock: Health { hitpoints = 0; }; }; class Zone_Neck: Zone_Head { componentNames[] = {"Zone_Neck"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 100; }; }; class Zone_Chest: Zone_Head { componentNames[] = {"Zone_Chest"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Belly: Zone_Head { componentNames[] = {"Zone_Belly"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Spine: Zone_Head { componentNames[] = {"Zone_Spine_Front","Zone_Spine_Back"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Pelvis: Zone_Head { componentNames[] = {"Zone_Pelvis"}; transferToZonesNames[] = {"Zone_Spine"}; transferToZonesCoefs[] = {0.5}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 180; }; }; class Zone_Legs: Zone_Head { componentNames[] = {"Zone_Legs_Front","Zone_Legs_Back"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.0; class Health: Health { hitpoints = 100; }; }; }; }; class Skinning { class ObtainedSteaks { item = "TigerSteakMeat"; count = 10; itemZones[] = {"Zone_Chest","Zone_Belly","Zone_Pelvis"}; countByZone[] = {3.0,3.0,3.0}; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedPelt { item = "TigerPelt"; count = 1; quantityCoef = 1; transferToolDamageCoef = 1; }; class ObtainedGuts { item = "Guts"; count = 2; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedLard { item = "Lard"; count = 1; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedBones { item = "Bone"; count = 1; quantityMinMaxCoef[] = {0.7,1}; transferToolDamageCoef = 1; }; }; class enfanimsys { meshObject = "dz\animals\canis_lupus\Data\canis_lupus_skeleton.xob"; graphname = "dz\animals\animations\!graph_files\Wolf\Wolf_Graph.agr"; defaultinstance = "dz\animals\animations\!graph_files\Wolf\Wolf_AnimInstance.asi"; startnode = "AlignToTerrain_Rot"; skeletonName = "canis_lupus_skeleton.xob"; }; class AnimEvents { class Steps { class Walk1 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 1; }; class Walk2 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 2; }; class Walk3 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 3; }; class Walk4 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 4; }; class Run1 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 5; }; class Run2 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 6; }; class Run3 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 7; }; class Run4 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 8; }; class Bodyfall { soundLookupTable = "PawMediumBodyfall_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 11; }; class Settle { soundLookupTable = "PawMediumSettle_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 12; }; class Rest2standA { soundLookupTable = "PawMediumRest2standA_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 13; }; class Rest2standB { soundLookupTable = "PawMediumRest2standB_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 14; }; class Stand2restA { soundLookupTable = "PawMediumStand2restA_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 15; }; class Stand2restB { soundLookupTable = "PawMediumStand2restB_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 16; }; class Stand2restC { soundLookupTable = "PawMediumStand2restC_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 17; }; class Jump { soundLookupTable = "PawMediumJump_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 18; }; class Impact { soundLookupTable = "PawMediumImpact_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 19; }; }; class Sounds { class BearAttack { soundSet="BearAttack_SoundSet"; noise="WolfRoarNoise"; id=21; }; class WolfBark { soundSet = "TigerAttack_SoundSet"; noise = "WolfRoarNoise"; id = 1; }; class WolfBreath { soundSet = "WolfBreath_SoundSet"; noise = "WolfRoarNoise"; id = 4; }; class WolfGroans { soundSet = "TigerAttack_SoundSet"; noise = "WolfRoarNoise"; id = 5; }; class WolfGrowl_A { soundSet = "WolfGrowl_A_SoundSet"; noise = "WolfRoarNoise"; id = 6; }; class WolfPant { soundSet = "WolfPant_SoundSet"; noise = "WolfRoarNoise"; id = 9; }; class WolfPantShort { soundSet = "WolfPantShort_SoundSet"; noise = "WolfRoarNoise"; id = 10; }; class WolfPantLong { soundSet = "WolfPantShort_SoundSet"; noise = "WolfRoarNoise"; id = 18; }; class WolfSnarl { soundSet = "TigerMumble_SoundSet"; noise = "WolfRoarNoise"; id = 11; }; class WolfSnarlShort { soundSet = "TigerMumble_SoundSet"; noise = "WolfRoarNoise"; id = 12; }; class WolfWhimper { soundSet = "WolfWhimper_SoundSet"; noise = "WolfRoarNoise"; id = 13; }; class WolfYelp { soundSet = "WolfYelp_SoundSet"; noise = "WolfRoarNoise"; id = 14; }; class WolfYawn { soundSet = "WolfYelp_SoundSet"; noise = "WolfRoarNoise"; id = 15; }; class WolfDeath { soundSet = "WolfDeath_SoundSet"; noise = "WolfRoarNoise"; id = 20; }; class WolfHowl { soundSet = "TigerAttack_SoundSet"; noise = "WolfRoarNoise"; id = 16; }; class WolfHowls { soundSet = "TigerAttack_SoundSet"; noise = "WolfRoarNoise"; id = 17; }; }; class Damages { class Bite { damage = "WolfBiteDamage"; id = 1; }; class BiteLow { damage = "WolfLowBiteDamage"; id = 2; }; }; }; class CommandMoveSettings { useSpeedMapping = 1; movementSpeedMapping[] = {0.0,0.25,0.5,1.2,4.5,12.2}; }; class CommandLookAtSettings { lookAtFilterTimeout = 0.5; lookAtFilterSpeed = 1.57; }; }; class Animal_Shred_Tigris: AnimalBase { simulation = "dayzanimal"; scope = 2; // model = "\ShredAnimals\tigerX2.p3d"; //model = "\DZ\animals\canis_lupus\canis_lupus.p3d"; displayName = "$STR_CfgVehicles_Animal_Tiger0"; descriptionShort = "$STR_CfgVehicles_Animal_Tigrer1"; //hiddenSelections[] = {"Camo","CamoHair"}; DamageSphereAmmos[] = {"MeleeWolf"}; aiAgentTemplate = "Predators_Shred"; injuryLevels[] = {1.0,0.5,0.2,0.0}; class DamageSystem { class GlobalHealth { class Health { hitpoints = 500; healthLabels[] = {1.0,0.7,0.5,0.3,0.0}; }; class Blood { hitpoints = 5000; }; class Shock { hitpoints = 250; }; }; class DamageZones { class Zone_Head { componentNames[] = {"Zone_Head"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.15; canBleed = 0; class Health { hitpoints = 120; transferToGlobalCoef = 1; }; class Blood: Health { hitpoints = 0; }; class Shock: Health { hitpoints = 0; }; }; class Zone_Neck: Zone_Head { componentNames[] = {"Zone_Neck"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 100; }; }; class Zone_Chest: Zone_Head { componentNames[] = {"Zone_Chest"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Belly: Zone_Head { componentNames[] = {"Zone_Belly"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Spine: Zone_Head { componentNames[] = {"Zone_Spine_Front","Zone_Spine_Back"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Pelvis: Zone_Head { componentNames[] = {"Zone_Pelvis"}; transferToZonesNames[] = {"Zone_Spine"}; transferToZonesCoefs[] = {0.5}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 180; }; }; class Zone_Legs: Zone_Head { componentNames[] = {"Zone_Legs_Front","Zone_Legs_Back"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.0; class Health: Health { hitpoints = 100; }; }; }; }; class Skinning { class ObtainedSteaks { item = "WolfSteakMeat"; count = 10; itemZones[] = {"Zone_Chest","Zone_Belly","Zone_Pelvis"}; countByZone[] = {3.0,3.0,3.0}; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedPelt { item = "WolfPelt"; count = 1; quantityCoef = 1; transferToolDamageCoef = 1; }; class ObtainedGuts { item = "Guts"; count = 2; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedLard { item = "Lard"; count = 1; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedBones { item = "Bone"; count = 1; quantityMinMaxCoef[] = {0.7,1}; transferToolDamageCoef = 1; }; }; class enfanimsys { meshObject = "dz\animals\canis_lupus\Data\canis_lupus_skeleton.xob"; graphname = "dz\animals\animations\!graph_files\Wolf\Wolf_Graph.agr"; defaultinstance = "dz\animals\animations\!graph_files\Wolf\Wolf_AnimInstance.asi"; startnode = "AlignToTerrain_Rot"; skeletonName = "canis_lupus_skeleton.xob"; }; class AnimEvents { class Steps { class Walk1 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 1; }; class Walk2 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 2; }; class Walk3 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 3; }; class Walk4 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 4; }; class Run1 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 5; }; class Run2 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 6; }; class Run3 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 7; }; class Run4 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 8; }; class Bodyfall { soundLookupTable = "PawMediumBodyfall_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 11; }; class Settle { soundLookupTable = "PawMediumSettle_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 12; }; class Rest2standA { soundLookupTable = "PawMediumRest2standA_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 13; }; class Rest2standB { soundLookupTable = "PawMediumRest2standB_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 14; }; class Stand2restA { soundLookupTable = "PawMediumStand2restA_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 15; }; class Stand2restB { soundLookupTable = "PawMediumStand2restB_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 16; }; class Stand2restC { soundLookupTable = "PawMediumStand2restC_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 17; }; class Jump { soundLookupTable = "PawMediumJump_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 18; }; class Impact { soundLookupTable = "PawMediumImpact_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 19; }; }; class Sounds { class WolfBark { soundSet = "WolfBark_SoundSet"; noise = "WolfRoarNoise"; id = 1; }; class WolfBark_1 { soundSet = "WolfBark_SoundSet"; noise = "WolfRoarNoise"; id = 61; }; class WolfBark_2 { soundSet = "WolfBark_SoundSet"; noise = "WolfRoarNoise"; id = 71; }; class WolfBark2 { soundSet = "WolfBark2_SoundSet"; noise = "WolfRoarNoise"; id = 2; }; class WolfBark3 { soundSet = "WolfBark3_SoundSet"; noise = "WolfRoarNoise"; id = 3; }; class WolfBreath { soundSet = "WolfBreath_SoundSet"; noise = "WolfRoarNoise"; id = 4; }; class WolfGroans { soundSet = "WolfGroans_SoundSet"; noise = "WolfRoarNoise"; id = 5; }; class WolfGrowl_A { soundSet = "WolfGrowl_A_SoundSet"; noise = "WolfRoarNoise"; id = 6; }; class WolfGrowl_B { soundSet = "WolfGrowl_B_SoundSet"; noise = "WolfRoarNoise"; id = 7; }; class WolfGrowl { soundSet = "WolfGrowl_A_SoundSet"; noise = "WolfRoarNoise"; id = 8; }; class WolfPant { soundSet = "WolfPant_SoundSet"; noise = "WolfRoarNoise"; id = 9; }; class WolfPantShort { soundSet = "WolfPantShort_SoundSet"; noise = "WolfRoarNoise"; id = 10; }; class WolfPantLong { soundSet = "WolfPantShort_SoundSet"; noise = "WolfRoarNoise"; id = 18; }; class WolfSnarl { soundSet = "WolfSnarl_SoundSet"; noise = "WolfRoarNoise"; id = 11; }; class WolfSnarlShort { soundSet = "WolfSnarlShort_SoundSet"; noise = "WolfRoarNoise"; id = 12; }; class WolfWhimper { soundSet = "WolfWhimper_SoundSet"; noise = "WolfRoarNoise"; id = 13; }; class WolfYelp { soundSet = "WolfYelp_SoundSet"; noise = "WolfRoarNoise"; id = 14; }; class WolfYawn { soundSet = "WolfYelp_SoundSet"; noise = "WolfRoarNoise"; id = 15; }; class WolfDeath { soundSet = "WolfDeath_SoundSet"; noise = "WolfRoarNoise"; id = 20; }; class WolfHowl { soundSet = "WolfHowl_SoundSet"; noise = "WolfRoarNoise"; id = 16; }; class WolfHowls { soundSet = "WolfHowls_SoundSet"; noise = "WolfRoarNoise"; id = 17; }; }; class Damages { class Bite { damage = "WolfBiteDamage"; id = 1; }; class BiteLow { damage = "WolfLowBiteDamage"; id = 2; }; }; }; class CommandMoveSettings { useSpeedMapping = 1; movementSpeedMapping[] = {0.0,0.25,0.5,1.2,4.5,12.2}; }; class CommandLookAtSettings { lookAtFilterTimeout = 0.5; lookAtFilterSpeed = 1.57; }; }; class Animal_Shred_MuleX: AnimalBase { simulation = "dayzanimal"; scope = 2; // model = "\ShredAnimals\tigerX2.p3d"; //model = "\DZ\animals\canis_lupus\canis_lupus.p3d"; displayName = "$STR_CfgVehicles_Animal_MuleX0"; descriptionShort = "$STR_CfgVehicles_Animal_MuleX1"; //hiddenSelections[] = {"Camo","CamoHair"}; //DamageSphereAmmos[] = {"MeleeWolf"}; aiAgentTemplate = "Predator_UrsusArctos"; injuryLevels[] = {1.0,0.5,0.2,0.0}; class DamageSystem { class GlobalHealth { class Health { hitpoints = 500; healthLabels[] = {1.0,0.7,0.5,0.3,0.0}; }; class Blood { hitpoints = 5000; }; class Shock { hitpoints = 250; }; }; class DamageZones { class Zone_Head { componentNames[] = {"Zone_Head"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.15; canBleed = 0; class Health { hitpoints = 120; transferToGlobalCoef = 1; }; class Blood: Health { hitpoints = 0; }; class Shock: Health { hitpoints = 0; }; }; class Zone_Neck: Zone_Head { componentNames[] = {"Zone_Neck"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 100; }; }; class Zone_Chest: Zone_Head { componentNames[] = {"Zone_Chest"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Belly: Zone_Head { componentNames[] = {"Zone_Belly"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Spine: Zone_Head { componentNames[] = {"Zone_Spine_Front","Zone_Spine_Back"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Pelvis: Zone_Head { componentNames[] = {"Zone_Pelvis"}; transferToZonesNames[] = {"Zone_Spine"}; transferToZonesCoefs[] = {0.5}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 180; }; }; class Zone_Legs: Zone_Head { componentNames[] = {"Zone_Legs_Front","Zone_Legs_Back"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.0; class Health: Health { hitpoints = 100; }; }; }; }; class Skinning { class ObtainedSteaks { item = "WolfSteakMeat"; count = 10; itemZones[] = {"Zone_Chest","Zone_Belly","Zone_Pelvis"}; countByZone[] = {3.0,3.0,3.0}; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedPelt { item = "WolfPelt"; count = 1; quantityCoef = 1; transferToolDamageCoef = 1; }; class ObtainedGuts { item = "Guts"; count = 2; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedLard { item = "Lard"; count = 1; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedBones { item = "Bone"; count = 1; quantityMinMaxCoef[] = {0.7,1}; transferToolDamageCoef = 1; }; }; class enfanimsys { meshObject = "dz\animals\canis_lupus\Data\canis_lupus_skeleton.xob"; graphname = "dz\animals\animations\!graph_files\Wolf\Wolf_Graph.agr"; defaultinstance = "dz\animals\animations\!graph_files\Wolf\Wolf_AnimInstance.asi"; startnode = "AlignToTerrain_Rot"; skeletonName = "canis_lupus_skeleton.xob"; }; class AnimEvents { class Steps { class Walk1 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 1; }; class Walk2 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 2; }; class Walk3 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 3; }; class Walk4 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 4; }; class Run1 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 5; }; class Run2 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 6; }; class Run3 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 7; }; class Run4 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 8; }; class Bodyfall { soundLookupTable = "PawMediumBodyfall_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 11; }; class Settle { soundLookupTable = "PawMediumSettle_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 12; }; class Rest2standA { soundLookupTable = "PawMediumRest2standA_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 13; }; class Rest2standB { soundLookupTable = "PawMediumRest2standB_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 14; }; class Stand2restA { soundLookupTable = "PawMediumStand2restA_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 15; }; class Stand2restB { soundLookupTable = "PawMediumStand2restB_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 16; }; class Stand2restC { soundLookupTable = "PawMediumStand2restC_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 17; }; class Jump { soundLookupTable = "PawMediumJump_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 18; }; class Impact { soundLookupTable = "PawMediumImpact_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 19; }; }; class Sounds { }; class Damages { class Bite { ======= { hitpoints = 200; healthLevels[] = {{1.0,{"DZ\gear\consumables\data\pelt_wolf.rvmat"}},{0.7,{"DZ\gear\consumables\data\pelt_wolf.rvmat"}},{0.5,{"DZ\gear\consumables\data\pelt_wolf_damage.rvmat"}},{0.3,{"DZ\gear\consumables\data\pelt_wolf_damage.rvmat"}},{0.0,{"DZ\gear\consumables\data\pelt_wolf_destruct.rvmat"}}}; }; }; }; }; class Animal_GS_Tiger: AnimalBase { simulation = "dayzanimal"; scope = 2; model = "\ShredAnimals\tigerX2.p3d"; displayName = "$STR_CfgVehicles_Animal_Tiger"; descriptionShort = "$STR_CfgVehicles_Animal_Tiger"; DamageSphereAmmos[] = {"MeleeTiger"}; aiAgentTemplate = "Predators_Tiger"; injuryLevels[] = {1.0,0.5,0.2,0.0}; class DamageSystem { class GlobalHealth { class Health { hitpoints = 600; healthLabels[] = {1.0,0.7,0.5,0.3,0.0}; }; class Blood { hitpoints = 5000; }; class Shock { hitpoints = 600; }; }; class DamageZones { class Zone_Head { componentNames[] = {"Zone_Head"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.15; canBleed = 0; class Health { hitpoints = 120; transferToGlobalCoef = 1; }; class Blood: Health { hitpoints = 0; }; class Shock: Health { hitpoints = 0; }; }; class Zone_Neck: Zone_Head { componentNames[] = {"Zone_Neck"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 100; }; }; class Zone_Chest: Zone_Head { componentNames[] = {"Zone_Chest"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Belly: Zone_Head { componentNames[] = {"Zone_Belly"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Spine: Zone_Head { componentNames[] = {"Zone_Spine_Front","Zone_Spine_Back"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Pelvis: Zone_Head { componentNames[] = {"Zone_Pelvis"}; transferToZonesNames[] = {"Zone_Spine"}; transferToZonesCoefs[] = {0.5}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 180; }; }; class Zone_Legs: Zone_Head { componentNames[] = {"Zone_Legs_Front","Zone_Legs_Back"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.0; class Health: Health { hitpoints = 100; }; }; }; }; class Skinning { class ObtainedSteaks { item = "TigerSteakMeat"; count = 10; itemZones[] = {"Zone_Chest","Zone_Belly","Zone_Pelvis"}; countByZone[] = {3.0,3.0,3.0}; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedPelt { item = "TigerPelt"; count = 1; quantityCoef = 1; transferToolDamageCoef = 1; }; class ObtainedGuts { item = "Guts"; count = 2; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedLard { item = "Lard"; count = 1; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedBones { item = "Bone"; count = 1; quantityMinMaxCoef[] = {0.7,1}; transferToolDamageCoef = 1; }; }; class enfanimsys { meshObject = "dz\animals\canis_lupus\Data\canis_lupus_skeleton.xob"; graphname = "dz\animals\animations\!graph_files\Wolf\Wolf_Graph.agr"; defaultinstance = "dz\animals\animations\!graph_files\Wolf\Wolf_AnimInstance.asi"; startnode = "AlignToTerrain_Rot"; skeletonName = "canis_lupus_skeleton.xob"; }; class AnimEvents { class Steps { class Walk1 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 1; }; class Walk2 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 2; }; class Walk3 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 3; }; class Walk4 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 4; }; class Run1 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 5; }; class Run2 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 6; }; class Run3 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 7; }; class Run4 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 8; }; class Bodyfall { soundLookupTable = "PawMediumBodyfall_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 11; }; class Settle { soundLookupTable = "PawMediumSettle_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 12; }; class Rest2standA { soundLookupTable = "PawMediumRest2standA_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 13; }; class Rest2standB { soundLookupTable = "PawMediumRest2standB_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 14; }; class Stand2restA { soundLookupTable = "PawMediumStand2restA_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 15; }; class Stand2restB { soundLookupTable = "PawMediumStand2restB_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 16; }; class Stand2restC { soundLookupTable = "PawMediumStand2restC_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 17; }; class Jump { soundLookupTable = "PawMediumJump_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 18; }; class Impact { soundLookupTable = "PawMediumImpact_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 19; }; }; class Sounds { class TigerBark { soundSet = "TigerBark_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerBark_1 { soundSet = "TigerBark_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerBark_2 { soundSet = "TigerBark_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerBark2 { soundSet = "TigerBark2_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerBark3 { soundSet = "TigerBark3_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerBreath { soundSet = "TigerBreath_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerGroans { soundSet = "TigerGroans_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerGrowl_A { soundSet = "TigerGrowl_A_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerGrowl_B { soundSet = "TigerGrowl_B_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerGrowl { soundSet = "TigerGrowl_A_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerPant { soundSet = "TigerPant_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerPantShort { soundSet = "TigerPantShort_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerPantLong { soundSet = "TigerPantShort_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerSnarl { soundSet = "TigerSnarl_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerSnarlShort { soundSet = "TigerSnarlShort_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerWhimper { soundSet = "TigerWhimper_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerYelp { soundSet = "TigerYelp_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerYawn { soundSet = "TigerYelp_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerDeath { soundSet = "TigerDeath_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerHowl { soundSet = "TigerHowl_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; class TigerHowls { soundSet = "TigerHowls_SoundSet"; noise = "TigerRoarNoise"; id = 1; }; }; class Damages { class Bite { damage = "TigerBiteDamage"; id = 1; }; class BiteLow { damage = "TigerLowBiteDamage"; id = 2; }; }; }; class CommandMoveSettings { useSpeedMapping = 1; movementSpeedMapping[] = {0.0,0.25,0.5,1.2,4.5,12.2}; }; class CommandLookAtSettings { lookAtFilterTimeout = 0.5; lookAtFilterSpeed = 1.57; }; }; class Animal_Shred_Tiger: AnimalBase { simulation = "dayzanimal"; scope = 2; // model = "\ShredAnimals\tigerX2.p3d"; //model = "\DZ\animals\canis_lupus\canis_lupus.p3d"; displayName = "$STR_CfgVehicles_Animal_Tiger0"; descriptionShort = "$STR_CfgVehicles_Animal_Tigrer1"; //hiddenSelections[] = {"Camo","CamoHair"}; DamageSphereAmmos[] = {"MeleeTiger"}; aiAgentTemplate = "Predators_Tiger"; injuryLevels[] = {1.0,0.5,0.2,0.0}; class DamageSystem { class GlobalHealth { class Health { hitpoints = 200; healthLabels[] = {1.0,0.7,0.5,0.3,0.0}; }; class Blood { hitpoints = 5000; }; class Shock { hitpoints = 100; }; }; class DamageZones { class Zone_Head { componentNames[] = {"Zone_Head"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.15; canBleed = 0; class Health { hitpoints = 120; transferToGlobalCoef = 1; }; class Blood: Health { hitpoints = 0; }; class Shock: Health { hitpoints = 0; }; }; class Zone_Neck: Zone_Head { componentNames[] = {"Zone_Neck"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 100; }; }; class Zone_Chest: Zone_Head { componentNames[] = {"Zone_Chest"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Belly: Zone_Head { componentNames[] = {"Zone_Belly"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Spine: Zone_Head { componentNames[] = {"Zone_Spine_Front","Zone_Spine_Back"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 150; }; }; class Zone_Pelvis: Zone_Head { componentNames[] = {"Zone_Pelvis"}; transferToZonesNames[] = {"Zone_Spine"}; transferToZonesCoefs[] = {0.5}; fatalInjuryCoef = 0.05; class Health: Health { hitpoints = 180; }; }; class Zone_Legs: Zone_Head { componentNames[] = {"Zone_Legs_Front","Zone_Legs_Back"}; transferToZonesNames[] = {}; transferToZonesCoefs[] = {}; fatalInjuryCoef = 0.0; class Health: Health { hitpoints = 100; }; }; }; }; class Skinning { class ObtainedSteaks { item = "TigerSteakMeat"; count = 10; itemZones[] = {"Zone_Chest","Zone_Belly","Zone_Pelvis"}; countByZone[] = {3.0,3.0,3.0}; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedPelt { item = "TigerPelt"; count = 1; quantityCoef = 1; transferToolDamageCoef = 1; }; class ObtainedGuts { item = "Guts"; count = 2; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedLard { item = "Lard"; count = 1; quantityMinMaxCoef[] = {0.5,1}; }; class ObtainedBones { item = "Bone"; count = 1; quantityMinMaxCoef[] = {0.7,1}; transferToolDamageCoef = 1; }; }; class enfanimsys { meshObject = "dz\animals\canis_lupus\Data\canis_lupus_skeleton.xob"; graphname = "dz\animals\animations\!graph_files\Wolf\Wolf_Graph.agr"; defaultinstance = "dz\animals\animations\!graph_files\Wolf\Wolf_AnimInstance.asi"; startnode = "AlignToTerrain_Rot"; skeletonName = "canis_lupus_skeleton.xob"; }; class AnimEvents { class Steps { class Walk1 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 1; }; class Walk2 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 2; }; class Walk3 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 3; }; class Walk4 { soundLookupTable = "PawMediumWalk_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 4; }; class Run1 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 5; }; class Run2 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 6; }; class Run3 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 7; }; class Run4 { soundLookupTable = "PawMediumRun_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 8; }; class Bodyfall { soundLookupTable = "PawMediumBodyfall_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 11; }; class Settle { soundLookupTable = "PawMediumSettle_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 12; }; class Rest2standA { soundLookupTable = "PawMediumRest2standA_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 13; }; class Rest2standB { soundLookupTable = "PawMediumRest2standB_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 14; }; class Stand2restA { soundLookupTable = "PawMediumStand2restA_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 15; }; class Stand2restB { soundLookupTable = "PawMediumStand2restB_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 16; }; class Stand2restC { soundLookupTable = "PawMediumStand2restC_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 17; }; class Jump { soundLookupTable = "PawMediumJump_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 18; }; class Impact { soundLookupTable = "PawMediumImpact_LookupTable"; noise = "WolfStepNoise"; effectSet[] = {"WolfStepEffect1","WolfStepEffect2"}; id = 19; }; }; class Sounds { class BearAttack { soundSet="BearAttack_SoundSet"; noise="WolfRoarNoise"; id=21; }; class WolfBark { soundSet = "TigerAttack_SoundSet"; noise = "WolfRoarNoise"; id = 1; }; class WolfBreath { soundSet = "WolfBreath_SoundSet"; noise = "WolfRoarNoise"; id = 4; }; class WolfGroans { soundSet = "TigerAttack_SoundSet"; noise = "WolfRoarNoise"; id = 5; }; class WolfGrowl_A { soundSet = "WolfGrowl_A_SoundSet"; noise = "WolfRoarNoise"; id = 6; }; class WolfPant { soundSet = "WolfPant_SoundSet"; noise = "WolfRoarNoise"; id = 9; }; class WolfPantShort { soundSet = "WolfPantShort_SoundSet"; noise = "WolfRoarNoise"; id = 10; }; class WolfPantLong { soundSet = "WolfPantShort_SoundSet"; noise = "WolfRoarNoise"; id = 18; }; class WolfSnarl { soundSet = "TigerMumble_SoundSet"; noise = "WolfRoarNoise"; id = 11; }; class WolfSnarlShort { soundSet = "TigerMumble_SoundSet"; noise = "WolfRoarNoise"; id = 12; }; class WolfWhimper { soundSet = "WolfWhimper_SoundSet"; noise = "WolfRoarNoise"; id = 13; }; class WolfYelp { soundSet = "WolfYelp_SoundSet"; noise = "WolfRoarNoise"; id = 14; }; class WolfYawn { soundSet = "WolfYelp_SoundSet"; noise = "WolfRoarNoise"; id = 15; }; class WolfDeath { soundSet = "WolfDeath_SoundSet"; noise = "WolfRoarNoise"; id = 20; }; class WolfHowl { soundSet = "TigerAttack_SoundSet"; noise = "WolfRoarNoise"; id = 16; }; class WolfHowls { soundSet = "TigerAttack_SoundSet"; noise = "WolfRoarNoise"; id = 17; }; }; class Damages { class Bite { damage = "WolfBiteDamage"; id = 1; }; class BiteLow { damage = "WolfLowBiteDamage"; id = 2; >>>>>>> upstream/master }; }; }; class CommandMoveSettings { useSpeedMapping = 1; movementSpeedMapping[] = {0.0,0.25,0.5,1.2,4.5,12.2}; }; class CommandLookAtSettings { lookAtFilterTimeout = 0.5; lookAtFilterSpeed = 1.57; }; <<<<<<< HEAD }; }; class CfgNonAIVehicles { class ProxyHands; class ProxyAK_47_v58_Proxy: ProxyHands { model="\dz\Characters\Proxies\ak_47_v58_proxy.p3d"; }; class ProxyBack; class ProxyBackpack_DZ: ProxyBack { model="\dz\Characters\Proxies\Backpack_DZ.p3d"; }; class ProxyHeadgear; class ProxyHeadgear_DZ: ProxyHeadgear { model="\dz\Characters\Proxies\Headgear_DZ.p3d"; }; class ProxyMask; class ProxyMask_DZ: ProxyMask { model="\dz\Characters\Proxies\Mask_DZ.p3d"; }; class ProxyVest; class ProxyVest_DZ: ProxyVest { model="\dz\Characters\Proxies\Vest_DZ.p3d"; }; class ProxyMelee; class ProxyMelee_DZ: ProxyMelee { model="\dz\Characters\Proxies\Melee_DZ.p3d"; }; }; ======= }; }; >>>>>>> upstream/master
[ "60577277+Shredorama@users.noreply.github.com" ]
60577277+Shredorama@users.noreply.github.com
160b6ab9f19fdc60582532019e5e49e1f39d369e
2933025b55b34ccf0242de29c41c71a119bfb819
/2. Coding_Problems/Type1/sum of series 2.cpp
e9bfe49cdf30456489e88a44ea8c8de435a82315
[]
no_license
rohitshakya/CodeBucket
460050cf3cb5ae29eac0b92fb15ddc7a5a9d9d80
5c3632d5860873c74cce850eb33bd89fdd77ce0a
refs/heads/master
2022-01-25T09:55:58.151327
2022-01-11T06:55:05
2022-01-11T06:55:05
253,870,196
2
3
null
null
null
null
UTF-8
C++
false
false
328
cpp
//print sum of first n terms of series:1-2+3-4+5...... #include<iostream> using namespace std; int main() { int sum=0,n; cout<<"Enter number of terms"<<endl; cin>>n; for(int i=1;i<=n;i++) { int temp=i; if(i%2==0) { temp=-i; } sum=sum+temp; } cout<<"sum of series upto first "<<n<<" terms is:"<<sum; }
[ "rohit.rkshakya@gmail.com" ]
rohit.rkshakya@gmail.com
509c9c69ad22a2ac9a29cb544b319c5fd40ea1fb
1d1f67e1a3f98871a1b9ba100704083e426fade9
/Leet2019/PreimageSizeofFactorialZeroesFunction.cpp
058bd50e335f890d75b46a2d0fc5299883011ca0
[]
no_license
flameshimmer/leet2019.io
fae46200ed78fb0478db726b8c31e976e7d57001
47808dc97609f5a96c97a6fc703b98c75ad9a2b3
refs/heads/master
2022-07-22T10:51:10.651558
2022-07-07T18:05:48
2022-07-07T18:05:48
202,389,705
1
1
null
null
null
null
UTF-8
C++
false
false
178
cpp
#include "stdafx.h" // namespace Solution2019 { namespace PreimageSizeofFactorialZeroesFunction { void Main() { string test = "tst test test"; print(test); } } }
[ "Ning@ningmadev99.redmond.corp.microsoft.com" ]
Ning@ningmadev99.redmond.corp.microsoft.com
7c131cffe50d055c51f8308503cff6bb5a455a1f
dce7fae275df536abacc8328e598a28ac927b8bd
/my_cpp_oop/Shapes.h
a9c7674c32ae5dee63c6539304a6f697782262f1
[]
no_license
ILevchugov/oop_task
b10eaba0b3ac936a735a101cf9dc98a33ddf0b78
12fce1eea1ac555e8f61cd30d33e4a801611ecb0
refs/heads/master
2022-05-24T08:24:55.981423
2020-04-27T09:21:38
2020-04-27T09:21:38
258,524,083
0
0
null
null
null
null
UTF-8
C++
false
false
5,268
h
#pragma once #define _USE_MATH_DEFINES #include "Container.h" #include <iostream> #include <math.h> #include "Base.h" #include "Container.h" #include <sstream> static double const eps = 0.001; class Shape : public Printable { public: Shape() { ++sm_count; } Shape(Shape const& shape) { ++sm_count; } virtual ~Shape() { --sm_count; } static int getCount() { return sm_count; } private: static int sm_count; }; int Shape::sm_count = 0; class Point : public Shape, public Named { public: Point(double x, double y): Named("Point"), m_x(x), m_y(y) {} Point(std::string name, double x, double y) : Named(name), m_x(x), m_y(y) {} double getX() const { return m_x; } double getY() const { return m_y; } std::string print() const override { std::stringstream description; description << Named::print() << "\n" << "x: " << m_x << " y: " << m_y << "\n"; return description.str(); } private: double m_x; double m_y; }; class Circle : public Shape, public Named { public: Circle(std::string name, double radius): Named(name), m_radius(radius) { if (radius <= 0) { throw "Wrong radius"; } } Circle(double radius) : Circle("Circle", radius) {} double getRadius() { return m_radius; } double getArea() const { return M_PI * m_radius * m_radius; } std::string print() const override { std::stringstream description; description << Named::print() << "\n" << "Radius: " << m_radius << "\n" << "Area: " << getArea() << "\n"; return description.str(); } private: double m_radius; }; class Rectangle : public Shape, public Named { public: Rectangle(std::string name, Point & pointA, Point & pointB): Named(name), m_pointA(&pointA), m_pointB(&pointB) { if (pointA.getX() == pointB.getX() || pointA.getY() == pointB.getY()) { throw ("wrong points"); } } Rectangle(Point & pointA, Point & pointB): Rectangle("Reactangle", pointA, pointB) {} ~Rectangle() { delete m_pointA; delete m_pointB; } double getArea() const { return abs((m_pointA->getX() - m_pointB->getX()) * (m_pointA->getY() - m_pointB->getY())); } Point getPointA() { return * m_pointA; } Point getPointB() { return * m_pointB; } std::string print() const override { std::stringstream description; description << Named::print() << "\n" << "Point A: " << m_pointA->print() << "Point B: " << m_pointB->print() << "Area = " << getArea() << "\n"; return description.str(); } private: Point * m_pointA; Point * m_pointB; }; class Square : public Shape, public Named { public: Square(std::string name, Rectangle & rectangle) : Named(name), m_squareRect(&rectangle) { if (isSquareExist() == false) { throw "Wrong square"; } } Square(Rectangle & rectangle) : Square("Square", rectangle) {} ~Square() { delete m_squareRect; } std::string print() const override { std::stringstream description; description << Named::print() << "\n" << m_squareRect->print()<<"\n"; return description.str(); } private: Rectangle * m_squareRect; bool isSquareExist() { Point pointA = m_squareRect->getPointA(); Point pointB = m_squareRect->getPointB(); return (abs(abs(pointA.getX() - pointB.getX()) - abs(pointA.getY() - pointB.getY())) < eps); } }; double calcDistance(Point const & pointA, Point const & pointB) { return sqrt((pointA.getX() - pointB.getX()) * (pointA.getX() - pointB.getX()) + (pointA.getY() - pointB.getY()) * (pointA.getY() - pointB.getY())); } class Polyline : public Shape, public Named { public: Polyline(std::string name, Container<Point> const & points) : Named(name), m_points(points) {} Polyline(Container<Point> & points) : Polyline("Polyline", points) {} ~Polyline() { m_points.clear(); } void addPoint(Point const & point) { m_points.add(point); } double calcLength() const { double length = 0; for (uint32_t i = 0; i < m_points.size() - 1; i++) { length += calcDistance(m_points.get(i), m_points.get(i + 1)); } return length; } std::string print() const override { std::stringstream description; description << Named::print() << "\n"; for (uint32_t i = 0; i < m_points.size(); i++) { description << m_points.get(i).print(); } description << "Length = " << calcLength() << "\n"; return description.str(); } private: Container<Point> m_points; }; class Polygon : public Shape, public Named { public: Polygon(std::string name, Container<Point> const & points) : Named(name), m_points(points) { } Polygon(Container<Point> const & points): Polygon("Polygon", points) {} ~Polygon() { m_points.clear(); } double calcPerimetr() const { double length = 0; for (uint32_t i = 0; i < m_points.size() - 1; i++) { length += calcDistance(m_points.get(i), m_points.get(i + 1)); } length += calcDistance(m_points.get(0), m_points.get(m_points.size()-1)); return length; } std::string print() const override { std::stringstream description; description << Named::print() << "\n"; for (uint32_t i = 0; i < m_points.size(); i++) { description << m_points.get(i).print(); } description << "Perimetr = " << calcPerimetr() << "\n"; return description.str(); } private: Container<Point> m_points; };
[ "van5364@ya.ru" ]
van5364@ya.ru
aef3212101f3e39c7a4a93fad384eb5bcbe1f7bb
e06d1362e0146c472912585c097e04680f7b1a50
/gameobject.h
ce7d0eef931fb4e18df78c2122ea02889305e124
[]
no_license
duncansykes/RaylibArcadeGame
1e47c4f45835241c67fb24e7fa3d6fbbc2f32cb1
900f165ddfed58d46be98164259a77dbc5d3e5f4
refs/heads/main
2023-02-27T13:59:16.708735
2021-02-02T05:53:07
2021-02-02T05:53:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,686
h
// // Created by s200490 on 25/01/2021. // #include <string> #include "raylib.h" #include "raymath.h" #ifndef DEFAULT_GAMEOBJECT_H #define DEFAULT_GAMEOBJECT_H class gameobject { public: gameobject(); virtual ~gameobject(); void Update(float deltaTime); void Draw(); void SetVelocity(Vector2 vel); Vector2 GetVelocity(); void SetPosition(Vector2 position); Vector2 GetPosition(); bool checkColliders(Rectangle other); void SetTextureFromImage(); void SetObjectShape(char* shapeName, float width, float height); void SetObjectShape(std::string name, Vector2 size); Vector2 GetObjectShape(); Color getColor(){return objectColor;} void SetColour(Color color); Rectangle GetCollider(){return m_collisionBox;} void TakeDamage(float amount) { lives -= amount; } float getHealth() { return lives; } bool isActive = true; std::string name; protected: Vector2 point1T = {}; Vector2 point2T = {}; Vector2 point3T = {}; Vector2 m_position = {0,0}; Vector2 m_velocity = {0,0}; Rectangle m_collisionBox = {0,0,0,0}; Rectangle m_boxcollision = {0}; Texture2D m_texture; Vector3 m_textureTransform = {0,0,0}; bool p_isCircle = false; bool p_isBox; bool p_isRect; bool p_isSpikes; std::string shapename; bool showDebugColliders = false; Color objectColor = WHITE; Vector2 shapeSize = {0,0}; float lives = 50; bool m_textureLoaded = false; }; class spike : public gameobject{ public: spike(); ~spike(); Color color; float damageAmount; }; #endif //DEFAULT_GAMEOBJECT_H
[ "sykesduncan32@gmail.com" ]
sykesduncan32@gmail.com
103074ab4ee9665ebcb5e472a0cd5db5833600b6
d0764568a235e0fcc45324d2ad92c722d269171e
/catkin_ws/src/neural_networks/darknet_ros/darknet_ros/src/yolo_object_detector_node.cpp
6758896f1f019eb6f874a6c9a4244f9ea3579fde
[]
no_license
edgarVazquez43/TAKESHI
ec2bd833d5cc31fcc5c3f527b7974b06d882f42d
187dc0c1f934ea58d78ae03bd7c522550f5e4801
refs/heads/master
2022-08-20T16:19:11.322250
2020-05-12T19:09:31
2020-05-12T19:09:31
120,661,771
1
0
null
null
null
null
UTF-8
C++
false
false
427
cpp
/* * yolo_obstacle_detector_node.cpp * * Created on: Dec 19, 2016 * Author: Marko Bjelonic * Institute: ETH Zurich, Robotic Systems Lab */ #include <darknet_ros/YoloObjectDetector.hpp> #include <ros/ros.h> int main(int argc, char** argv) { ros::init(argc, argv, "darknet_ros"); ros::NodeHandle nodeHandle("~"); darknet_ros::YoloObjectDetector yoloObjectDetector(nodeHandle); ros::spin(); return 0; }
[ "edgarvazquez1403@gmail.com" ]
edgarvazquez1403@gmail.com
cc56ca0de51008a01cea450d3c60c46d3c766f59
2c101134f5c113ef98fa5ab846965ce6ee27ad0f
/maxHeight.cpp
e4bcbb20b205caa0b3fb25574b5fe8dee3eb9633
[]
no_license
Gabriel0402/Leetcode_practice
6a4282d4ce02c5611e39d3f956bb34e2b19efeb1
f92b10b824ce04db4b689484011bbf3d506d532f
refs/heads/master
2020-07-05T06:27:31.797868
2014-02-10T14:55:32
2014-02-10T14:55:32
null
0
0
null
null
null
null
UTF-8
C++
false
false
859
cpp
#include <iostream> using namespace std; /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: int maxHeight(TreeNode *root) { if(root==NULL) return 0; int left=maxHeight(root->left)+1; int right=maxHeight(root->right)+1; return left>right?left:right; } bool isBalanced(TreeNode *root) { if(root==NULL) return true; while(root!=NULL) { int left=maxHeight(root->left); int right=maxHeight(root->right); if(abs(left-right)>=2) return false; else return isBalanced(root->left) && isBalanced(root->right); } } }; int main(int argc, char *argv[]) { }
[ "zhuch@seas.upenn.edu" ]
zhuch@seas.upenn.edu
f0e8055ae30fc7d5eddc7d88acc218932e7c0601
b15e0aa36c90d33a8e76448a82915acfb1e16f50
/448/lab8/Retailer.h
5c40dc622493cabe799bdba990d7c912fcaf03d8
[]
no_license
lcoblamm/EECS
8f422c40d5b7ce5c8d3081fc7b3e2a6879e3675e
a04f4a05715b567e8aaf606b6484e33d3728caee
refs/heads/master
2021-05-03T09:11:05.794206
2016-04-10T23:37:39
2016-04-10T23:37:39
30,848,029
0
1
null
null
null
null
UTF-8
C++
false
false
918
h
#ifndef RETAILER_H #define RETAILER_H #include <list> #include <string> #include "Good.h" #include "Supplier.h" class Retailer { public: Retailer(); Retailer(std::string retailerName, std::string phone, std::string email, Supplier& supplier); ~Retailer(); void addGood(Good item); bool acceptPayment(double payment, std::string goodName, int quantity); bool acceptOrder(std::string goodName, int quantity, double& price); bool orderGoods(std::string goodName, int quantity, Supplier& supplier); bool updateGoods(bool bAdding, std::string goodName, int quantityChanged); void arrangeGoods(); bool makePayment(double payment, Supplier& supplier); std::list<Good> m_inventory; std::string m_name; std::string m_phoneNumber; std::string m_email; private: bool checkStock(std::string goodName, int quantityDesired, double& price); Supplier m_supplier; double m_balance; }; #endif
[ "lynne.lammers@gmail.com" ]
lynne.lammers@gmail.com
48c69a884ecacab920c330275628192d971a894c
9da42e04bdaebdf0193a78749a80c4e7bf76a6cc
/third_party/gecko-15/win32/include/nsIDOMCSS2Properties.h
8ed3bea494b185c1f55ce26f2394b2b89f71fb1b
[ "Apache-2.0" ]
permissive
bwp/SeleniumWebDriver
9d49e6069881845e9c23fb5211a7e1b8959e2dcf
58221fbe59fcbbde9d9a033a95d45d576b422747
refs/heads/master
2021-01-22T21:32:50.541163
2012-11-09T16:19:48
2012-11-09T16:19:48
6,602,097
1
0
null
null
null
null
UTF-8
C++
false
false
293,594
h
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-m-rel-xr-w32-bld/build/dom/interfaces/css/nsIDOMCSS2Properties.idl */ #ifndef __gen_nsIDOMCSS2Properties_h__ #define __gen_nsIDOMCSS2Properties_h__ #ifndef __gen_domstubs_h__ #include "domstubs.h" #endif /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif /* starting interface: nsIDOMCSS2Properties */ #define NS_IDOMCSS2PROPERTIES_IID_STR "35b2c7f0-b56c-11e1-afa6-0800200c9a66" #define NS_IDOMCSS2PROPERTIES_IID \ {0x35b2c7f0, 0xb56c, 0x11e1, \ { 0xaf, 0xa6, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }} class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSS2Properties : public nsISupports { public: NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSS2PROPERTIES_IID) /* attribute DOMString background; */ NS_SCRIPTABLE NS_IMETHOD GetBackground(nsAString & aBackground) = 0; NS_SCRIPTABLE NS_IMETHOD SetBackground(const nsAString & aBackground) = 0; /* attribute DOMString backgroundAttachment; */ NS_SCRIPTABLE NS_IMETHOD GetBackgroundAttachment(nsAString & aBackgroundAttachment) = 0; NS_SCRIPTABLE NS_IMETHOD SetBackgroundAttachment(const nsAString & aBackgroundAttachment) = 0; /* attribute DOMString backgroundColor; */ NS_SCRIPTABLE NS_IMETHOD GetBackgroundColor(nsAString & aBackgroundColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetBackgroundColor(const nsAString & aBackgroundColor) = 0; /* attribute DOMString backgroundImage; */ NS_SCRIPTABLE NS_IMETHOD GetBackgroundImage(nsAString & aBackgroundImage) = 0; NS_SCRIPTABLE NS_IMETHOD SetBackgroundImage(const nsAString & aBackgroundImage) = 0; /* attribute DOMString backgroundPosition; */ NS_SCRIPTABLE NS_IMETHOD GetBackgroundPosition(nsAString & aBackgroundPosition) = 0; NS_SCRIPTABLE NS_IMETHOD SetBackgroundPosition(const nsAString & aBackgroundPosition) = 0; /* attribute DOMString backgroundRepeat; */ NS_SCRIPTABLE NS_IMETHOD GetBackgroundRepeat(nsAString & aBackgroundRepeat) = 0; NS_SCRIPTABLE NS_IMETHOD SetBackgroundRepeat(const nsAString & aBackgroundRepeat) = 0; /* attribute DOMString border; */ NS_SCRIPTABLE NS_IMETHOD GetBorder(nsAString & aBorder) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorder(const nsAString & aBorder) = 0; /* attribute DOMString borderCollapse; */ NS_SCRIPTABLE NS_IMETHOD GetBorderCollapse(nsAString & aBorderCollapse) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderCollapse(const nsAString & aBorderCollapse) = 0; /* attribute DOMString borderColor; */ NS_SCRIPTABLE NS_IMETHOD GetBorderColor(nsAString & aBorderColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderColor(const nsAString & aBorderColor) = 0; /* attribute DOMString borderSpacing; */ NS_SCRIPTABLE NS_IMETHOD GetBorderSpacing(nsAString & aBorderSpacing) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderSpacing(const nsAString & aBorderSpacing) = 0; /* attribute DOMString borderStyle; */ NS_SCRIPTABLE NS_IMETHOD GetBorderStyle(nsAString & aBorderStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderStyle(const nsAString & aBorderStyle) = 0; /* attribute DOMString borderTop; */ NS_SCRIPTABLE NS_IMETHOD GetBorderTop(nsAString & aBorderTop) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderTop(const nsAString & aBorderTop) = 0; /* attribute DOMString borderRight; */ NS_SCRIPTABLE NS_IMETHOD GetBorderRight(nsAString & aBorderRight) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderRight(const nsAString & aBorderRight) = 0; /* attribute DOMString borderBottom; */ NS_SCRIPTABLE NS_IMETHOD GetBorderBottom(nsAString & aBorderBottom) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderBottom(const nsAString & aBorderBottom) = 0; /* attribute DOMString borderLeft; */ NS_SCRIPTABLE NS_IMETHOD GetBorderLeft(nsAString & aBorderLeft) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderLeft(const nsAString & aBorderLeft) = 0; /* attribute DOMString borderTopColor; */ NS_SCRIPTABLE NS_IMETHOD GetBorderTopColor(nsAString & aBorderTopColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderTopColor(const nsAString & aBorderTopColor) = 0; /* attribute DOMString borderRightColor; */ NS_SCRIPTABLE NS_IMETHOD GetBorderRightColor(nsAString & aBorderRightColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderRightColor(const nsAString & aBorderRightColor) = 0; /* attribute DOMString borderBottomColor; */ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomColor(nsAString & aBorderBottomColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderBottomColor(const nsAString & aBorderBottomColor) = 0; /* attribute DOMString borderLeftColor; */ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftColor(nsAString & aBorderLeftColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderLeftColor(const nsAString & aBorderLeftColor) = 0; /* attribute DOMString borderTopStyle; */ NS_SCRIPTABLE NS_IMETHOD GetBorderTopStyle(nsAString & aBorderTopStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderTopStyle(const nsAString & aBorderTopStyle) = 0; /* attribute DOMString borderRightStyle; */ NS_SCRIPTABLE NS_IMETHOD GetBorderRightStyle(nsAString & aBorderRightStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderRightStyle(const nsAString & aBorderRightStyle) = 0; /* attribute DOMString borderBottomStyle; */ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomStyle(nsAString & aBorderBottomStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderBottomStyle(const nsAString & aBorderBottomStyle) = 0; /* attribute DOMString borderLeftStyle; */ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftStyle(nsAString & aBorderLeftStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderLeftStyle(const nsAString & aBorderLeftStyle) = 0; /* attribute DOMString borderTopWidth; */ NS_SCRIPTABLE NS_IMETHOD GetBorderTopWidth(nsAString & aBorderTopWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderTopWidth(const nsAString & aBorderTopWidth) = 0; /* attribute DOMString borderRightWidth; */ NS_SCRIPTABLE NS_IMETHOD GetBorderRightWidth(nsAString & aBorderRightWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderRightWidth(const nsAString & aBorderRightWidth) = 0; /* attribute DOMString borderBottomWidth; */ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomWidth(nsAString & aBorderBottomWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderBottomWidth(const nsAString & aBorderBottomWidth) = 0; /* attribute DOMString borderLeftWidth; */ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftWidth(nsAString & aBorderLeftWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderLeftWidth(const nsAString & aBorderLeftWidth) = 0; /* attribute DOMString borderWidth; */ NS_SCRIPTABLE NS_IMETHOD GetBorderWidth(nsAString & aBorderWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderWidth(const nsAString & aBorderWidth) = 0; /* attribute DOMString borderRadius; */ NS_SCRIPTABLE NS_IMETHOD GetBorderRadius(nsAString & aBorderRadius) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderRadius(const nsAString & aBorderRadius) = 0; /* attribute DOMString borderTopLeftRadius; */ NS_SCRIPTABLE NS_IMETHOD GetBorderTopLeftRadius(nsAString & aBorderTopLeftRadius) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderTopLeftRadius(const nsAString & aBorderTopLeftRadius) = 0; /* attribute DOMString borderTopRightRadius; */ NS_SCRIPTABLE NS_IMETHOD GetBorderTopRightRadius(nsAString & aBorderTopRightRadius) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderTopRightRadius(const nsAString & aBorderTopRightRadius) = 0; /* attribute DOMString borderBottomLeftRadius; */ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomLeftRadius(nsAString & aBorderBottomLeftRadius) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderBottomLeftRadius(const nsAString & aBorderBottomLeftRadius) = 0; /* attribute DOMString borderBottomRightRadius; */ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomRightRadius(nsAString & aBorderBottomRightRadius) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderBottomRightRadius(const nsAString & aBorderBottomRightRadius) = 0; /* attribute DOMString bottom; */ NS_SCRIPTABLE NS_IMETHOD GetBottom(nsAString & aBottom) = 0; NS_SCRIPTABLE NS_IMETHOD SetBottom(const nsAString & aBottom) = 0; /* attribute DOMString boxShadow; */ NS_SCRIPTABLE NS_IMETHOD GetBoxShadow(nsAString & aBoxShadow) = 0; NS_SCRIPTABLE NS_IMETHOD SetBoxShadow(const nsAString & aBoxShadow) = 0; /* attribute DOMString captionSide; */ NS_SCRIPTABLE NS_IMETHOD GetCaptionSide(nsAString & aCaptionSide) = 0; NS_SCRIPTABLE NS_IMETHOD SetCaptionSide(const nsAString & aCaptionSide) = 0; /* attribute DOMString clear; */ NS_SCRIPTABLE NS_IMETHOD GetClear(nsAString & aClear) = 0; NS_SCRIPTABLE NS_IMETHOD SetClear(const nsAString & aClear) = 0; /* attribute DOMString clip; */ NS_SCRIPTABLE NS_IMETHOD GetClip(nsAString & aClip) = 0; NS_SCRIPTABLE NS_IMETHOD SetClip(const nsAString & aClip) = 0; /* attribute DOMString color; */ NS_SCRIPTABLE NS_IMETHOD GetColor(nsAString & aColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetColor(const nsAString & aColor) = 0; /* attribute DOMString content; */ NS_SCRIPTABLE NS_IMETHOD GetContent(nsAString & aContent) = 0; NS_SCRIPTABLE NS_IMETHOD SetContent(const nsAString & aContent) = 0; /* attribute DOMString counterIncrement; */ NS_SCRIPTABLE NS_IMETHOD GetCounterIncrement(nsAString & aCounterIncrement) = 0; NS_SCRIPTABLE NS_IMETHOD SetCounterIncrement(const nsAString & aCounterIncrement) = 0; /* attribute DOMString counterReset; */ NS_SCRIPTABLE NS_IMETHOD GetCounterReset(nsAString & aCounterReset) = 0; NS_SCRIPTABLE NS_IMETHOD SetCounterReset(const nsAString & aCounterReset) = 0; /* attribute DOMString cursor; */ NS_SCRIPTABLE NS_IMETHOD GetCursor(nsAString & aCursor) = 0; NS_SCRIPTABLE NS_IMETHOD SetCursor(const nsAString & aCursor) = 0; /* attribute DOMString direction; */ NS_SCRIPTABLE NS_IMETHOD GetDirection(nsAString & aDirection) = 0; NS_SCRIPTABLE NS_IMETHOD SetDirection(const nsAString & aDirection) = 0; /* attribute DOMString display; */ NS_SCRIPTABLE NS_IMETHOD GetDisplay(nsAString & aDisplay) = 0; NS_SCRIPTABLE NS_IMETHOD SetDisplay(const nsAString & aDisplay) = 0; /* attribute DOMString emptyCells; */ NS_SCRIPTABLE NS_IMETHOD GetEmptyCells(nsAString & aEmptyCells) = 0; NS_SCRIPTABLE NS_IMETHOD SetEmptyCells(const nsAString & aEmptyCells) = 0; /* attribute DOMString cssFloat; */ NS_SCRIPTABLE NS_IMETHOD GetCssFloat(nsAString & aCssFloat) = 0; NS_SCRIPTABLE NS_IMETHOD SetCssFloat(const nsAString & aCssFloat) = 0; /* attribute DOMString font; */ NS_SCRIPTABLE NS_IMETHOD GetFont(nsAString & aFont) = 0; NS_SCRIPTABLE NS_IMETHOD SetFont(const nsAString & aFont) = 0; /* attribute DOMString fontFamily; */ NS_SCRIPTABLE NS_IMETHOD GetFontFamily(nsAString & aFontFamily) = 0; NS_SCRIPTABLE NS_IMETHOD SetFontFamily(const nsAString & aFontFamily) = 0; /* attribute DOMString fontSize; */ NS_SCRIPTABLE NS_IMETHOD GetFontSize(nsAString & aFontSize) = 0; NS_SCRIPTABLE NS_IMETHOD SetFontSize(const nsAString & aFontSize) = 0; /* attribute DOMString fontSizeAdjust; */ NS_SCRIPTABLE NS_IMETHOD GetFontSizeAdjust(nsAString & aFontSizeAdjust) = 0; NS_SCRIPTABLE NS_IMETHOD SetFontSizeAdjust(const nsAString & aFontSizeAdjust) = 0; /* attribute DOMString fontStretch; */ NS_SCRIPTABLE NS_IMETHOD GetFontStretch(nsAString & aFontStretch) = 0; NS_SCRIPTABLE NS_IMETHOD SetFontStretch(const nsAString & aFontStretch) = 0; /* attribute DOMString fontStyle; */ NS_SCRIPTABLE NS_IMETHOD GetFontStyle(nsAString & aFontStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetFontStyle(const nsAString & aFontStyle) = 0; /* attribute DOMString fontVariant; */ NS_SCRIPTABLE NS_IMETHOD GetFontVariant(nsAString & aFontVariant) = 0; NS_SCRIPTABLE NS_IMETHOD SetFontVariant(const nsAString & aFontVariant) = 0; /* attribute DOMString fontWeight; */ NS_SCRIPTABLE NS_IMETHOD GetFontWeight(nsAString & aFontWeight) = 0; NS_SCRIPTABLE NS_IMETHOD SetFontWeight(const nsAString & aFontWeight) = 0; /* attribute DOMString height; */ NS_SCRIPTABLE NS_IMETHOD GetHeight(nsAString & aHeight) = 0; NS_SCRIPTABLE NS_IMETHOD SetHeight(const nsAString & aHeight) = 0; /* attribute DOMString left; */ NS_SCRIPTABLE NS_IMETHOD GetLeft(nsAString & aLeft) = 0; NS_SCRIPTABLE NS_IMETHOD SetLeft(const nsAString & aLeft) = 0; /* attribute DOMString letterSpacing; */ NS_SCRIPTABLE NS_IMETHOD GetLetterSpacing(nsAString & aLetterSpacing) = 0; NS_SCRIPTABLE NS_IMETHOD SetLetterSpacing(const nsAString & aLetterSpacing) = 0; /* attribute DOMString lineHeight; */ NS_SCRIPTABLE NS_IMETHOD GetLineHeight(nsAString & aLineHeight) = 0; NS_SCRIPTABLE NS_IMETHOD SetLineHeight(const nsAString & aLineHeight) = 0; /* attribute DOMString listStyle; */ NS_SCRIPTABLE NS_IMETHOD GetListStyle(nsAString & aListStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetListStyle(const nsAString & aListStyle) = 0; /* attribute DOMString listStyleImage; */ NS_SCRIPTABLE NS_IMETHOD GetListStyleImage(nsAString & aListStyleImage) = 0; NS_SCRIPTABLE NS_IMETHOD SetListStyleImage(const nsAString & aListStyleImage) = 0; /* attribute DOMString listStylePosition; */ NS_SCRIPTABLE NS_IMETHOD GetListStylePosition(nsAString & aListStylePosition) = 0; NS_SCRIPTABLE NS_IMETHOD SetListStylePosition(const nsAString & aListStylePosition) = 0; /* attribute DOMString listStyleType; */ NS_SCRIPTABLE NS_IMETHOD GetListStyleType(nsAString & aListStyleType) = 0; NS_SCRIPTABLE NS_IMETHOD SetListStyleType(const nsAString & aListStyleType) = 0; /* attribute DOMString margin; */ NS_SCRIPTABLE NS_IMETHOD GetMargin(nsAString & aMargin) = 0; NS_SCRIPTABLE NS_IMETHOD SetMargin(const nsAString & aMargin) = 0; /* attribute DOMString marginTop; */ NS_SCRIPTABLE NS_IMETHOD GetMarginTop(nsAString & aMarginTop) = 0; NS_SCRIPTABLE NS_IMETHOD SetMarginTop(const nsAString & aMarginTop) = 0; /* attribute DOMString marginRight; */ NS_SCRIPTABLE NS_IMETHOD GetMarginRight(nsAString & aMarginRight) = 0; NS_SCRIPTABLE NS_IMETHOD SetMarginRight(const nsAString & aMarginRight) = 0; /* attribute DOMString marginBottom; */ NS_SCRIPTABLE NS_IMETHOD GetMarginBottom(nsAString & aMarginBottom) = 0; NS_SCRIPTABLE NS_IMETHOD SetMarginBottom(const nsAString & aMarginBottom) = 0; /* attribute DOMString marginLeft; */ NS_SCRIPTABLE NS_IMETHOD GetMarginLeft(nsAString & aMarginLeft) = 0; NS_SCRIPTABLE NS_IMETHOD SetMarginLeft(const nsAString & aMarginLeft) = 0; /* attribute DOMString markerOffset; */ NS_SCRIPTABLE NS_IMETHOD GetMarkerOffset(nsAString & aMarkerOffset) = 0; NS_SCRIPTABLE NS_IMETHOD SetMarkerOffset(const nsAString & aMarkerOffset) = 0; /* attribute DOMString marks; */ NS_SCRIPTABLE NS_IMETHOD GetMarks(nsAString & aMarks) = 0; NS_SCRIPTABLE NS_IMETHOD SetMarks(const nsAString & aMarks) = 0; /* attribute DOMString maxHeight; */ NS_SCRIPTABLE NS_IMETHOD GetMaxHeight(nsAString & aMaxHeight) = 0; NS_SCRIPTABLE NS_IMETHOD SetMaxHeight(const nsAString & aMaxHeight) = 0; /* attribute DOMString maxWidth; */ NS_SCRIPTABLE NS_IMETHOD GetMaxWidth(nsAString & aMaxWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetMaxWidth(const nsAString & aMaxWidth) = 0; /* attribute DOMString minHeight; */ NS_SCRIPTABLE NS_IMETHOD GetMinHeight(nsAString & aMinHeight) = 0; NS_SCRIPTABLE NS_IMETHOD SetMinHeight(const nsAString & aMinHeight) = 0; /* attribute DOMString minWidth; */ NS_SCRIPTABLE NS_IMETHOD GetMinWidth(nsAString & aMinWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetMinWidth(const nsAString & aMinWidth) = 0; /* attribute DOMString orphans; */ NS_SCRIPTABLE NS_IMETHOD GetOrphans(nsAString & aOrphans) = 0; NS_SCRIPTABLE NS_IMETHOD SetOrphans(const nsAString & aOrphans) = 0; /* attribute DOMString outline; */ NS_SCRIPTABLE NS_IMETHOD GetOutline(nsAString & aOutline) = 0; NS_SCRIPTABLE NS_IMETHOD SetOutline(const nsAString & aOutline) = 0; /* attribute DOMString outlineColor; */ NS_SCRIPTABLE NS_IMETHOD GetOutlineColor(nsAString & aOutlineColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetOutlineColor(const nsAString & aOutlineColor) = 0; /* attribute DOMString outlineStyle; */ NS_SCRIPTABLE NS_IMETHOD GetOutlineStyle(nsAString & aOutlineStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetOutlineStyle(const nsAString & aOutlineStyle) = 0; /* attribute DOMString outlineWidth; */ NS_SCRIPTABLE NS_IMETHOD GetOutlineWidth(nsAString & aOutlineWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetOutlineWidth(const nsAString & aOutlineWidth) = 0; /* attribute DOMString overflow; */ NS_SCRIPTABLE NS_IMETHOD GetOverflow(nsAString & aOverflow) = 0; NS_SCRIPTABLE NS_IMETHOD SetOverflow(const nsAString & aOverflow) = 0; /* attribute DOMString padding; */ NS_SCRIPTABLE NS_IMETHOD GetPadding(nsAString & aPadding) = 0; NS_SCRIPTABLE NS_IMETHOD SetPadding(const nsAString & aPadding) = 0; /* attribute DOMString paddingTop; */ NS_SCRIPTABLE NS_IMETHOD GetPaddingTop(nsAString & aPaddingTop) = 0; NS_SCRIPTABLE NS_IMETHOD SetPaddingTop(const nsAString & aPaddingTop) = 0; /* attribute DOMString paddingRight; */ NS_SCRIPTABLE NS_IMETHOD GetPaddingRight(nsAString & aPaddingRight) = 0; NS_SCRIPTABLE NS_IMETHOD SetPaddingRight(const nsAString & aPaddingRight) = 0; /* attribute DOMString paddingBottom; */ NS_SCRIPTABLE NS_IMETHOD GetPaddingBottom(nsAString & aPaddingBottom) = 0; NS_SCRIPTABLE NS_IMETHOD SetPaddingBottom(const nsAString & aPaddingBottom) = 0; /* attribute DOMString paddingLeft; */ NS_SCRIPTABLE NS_IMETHOD GetPaddingLeft(nsAString & aPaddingLeft) = 0; NS_SCRIPTABLE NS_IMETHOD SetPaddingLeft(const nsAString & aPaddingLeft) = 0; /* attribute DOMString page; */ NS_SCRIPTABLE NS_IMETHOD GetPage(nsAString & aPage) = 0; NS_SCRIPTABLE NS_IMETHOD SetPage(const nsAString & aPage) = 0; /* attribute DOMString pageBreakAfter; */ NS_SCRIPTABLE NS_IMETHOD GetPageBreakAfter(nsAString & aPageBreakAfter) = 0; NS_SCRIPTABLE NS_IMETHOD SetPageBreakAfter(const nsAString & aPageBreakAfter) = 0; /* attribute DOMString pageBreakBefore; */ NS_SCRIPTABLE NS_IMETHOD GetPageBreakBefore(nsAString & aPageBreakBefore) = 0; NS_SCRIPTABLE NS_IMETHOD SetPageBreakBefore(const nsAString & aPageBreakBefore) = 0; /* attribute DOMString pageBreakInside; */ NS_SCRIPTABLE NS_IMETHOD GetPageBreakInside(nsAString & aPageBreakInside) = 0; NS_SCRIPTABLE NS_IMETHOD SetPageBreakInside(const nsAString & aPageBreakInside) = 0; /* attribute DOMString position; */ NS_SCRIPTABLE NS_IMETHOD GetPosition(nsAString & aPosition) = 0; NS_SCRIPTABLE NS_IMETHOD SetPosition(const nsAString & aPosition) = 0; /* attribute DOMString quotes; */ NS_SCRIPTABLE NS_IMETHOD GetQuotes(nsAString & aQuotes) = 0; NS_SCRIPTABLE NS_IMETHOD SetQuotes(const nsAString & aQuotes) = 0; /* attribute DOMString right; */ NS_SCRIPTABLE NS_IMETHOD GetRight(nsAString & aRight) = 0; NS_SCRIPTABLE NS_IMETHOD SetRight(const nsAString & aRight) = 0; /* attribute DOMString size; */ NS_SCRIPTABLE NS_IMETHOD GetSize(nsAString & aSize) = 0; NS_SCRIPTABLE NS_IMETHOD SetSize(const nsAString & aSize) = 0; /* attribute DOMString tableLayout; */ NS_SCRIPTABLE NS_IMETHOD GetTableLayout(nsAString & aTableLayout) = 0; NS_SCRIPTABLE NS_IMETHOD SetTableLayout(const nsAString & aTableLayout) = 0; /* attribute DOMString textAlign; */ NS_SCRIPTABLE NS_IMETHOD GetTextAlign(nsAString & aTextAlign) = 0; NS_SCRIPTABLE NS_IMETHOD SetTextAlign(const nsAString & aTextAlign) = 0; /* attribute DOMString textDecoration; */ NS_SCRIPTABLE NS_IMETHOD GetTextDecoration(nsAString & aTextDecoration) = 0; NS_SCRIPTABLE NS_IMETHOD SetTextDecoration(const nsAString & aTextDecoration) = 0; /* attribute DOMString textIndent; */ NS_SCRIPTABLE NS_IMETHOD GetTextIndent(nsAString & aTextIndent) = 0; NS_SCRIPTABLE NS_IMETHOD SetTextIndent(const nsAString & aTextIndent) = 0; /* attribute DOMString textOverflow; */ NS_SCRIPTABLE NS_IMETHOD GetTextOverflow(nsAString & aTextOverflow) = 0; NS_SCRIPTABLE NS_IMETHOD SetTextOverflow(const nsAString & aTextOverflow) = 0; /* attribute DOMString textShadow; */ NS_SCRIPTABLE NS_IMETHOD GetTextShadow(nsAString & aTextShadow) = 0; NS_SCRIPTABLE NS_IMETHOD SetTextShadow(const nsAString & aTextShadow) = 0; /* attribute DOMString textTransform; */ NS_SCRIPTABLE NS_IMETHOD GetTextTransform(nsAString & aTextTransform) = 0; NS_SCRIPTABLE NS_IMETHOD SetTextTransform(const nsAString & aTextTransform) = 0; /* attribute DOMString top; */ NS_SCRIPTABLE NS_IMETHOD GetTop(nsAString & aTop) = 0; NS_SCRIPTABLE NS_IMETHOD SetTop(const nsAString & aTop) = 0; /* attribute DOMString unicodeBidi; */ NS_SCRIPTABLE NS_IMETHOD GetUnicodeBidi(nsAString & aUnicodeBidi) = 0; NS_SCRIPTABLE NS_IMETHOD SetUnicodeBidi(const nsAString & aUnicodeBidi) = 0; /* attribute DOMString verticalAlign; */ NS_SCRIPTABLE NS_IMETHOD GetVerticalAlign(nsAString & aVerticalAlign) = 0; NS_SCRIPTABLE NS_IMETHOD SetVerticalAlign(const nsAString & aVerticalAlign) = 0; /* attribute DOMString visibility; */ NS_SCRIPTABLE NS_IMETHOD GetVisibility(nsAString & aVisibility) = 0; NS_SCRIPTABLE NS_IMETHOD SetVisibility(const nsAString & aVisibility) = 0; /* attribute DOMString whiteSpace; */ NS_SCRIPTABLE NS_IMETHOD GetWhiteSpace(nsAString & aWhiteSpace) = 0; NS_SCRIPTABLE NS_IMETHOD SetWhiteSpace(const nsAString & aWhiteSpace) = 0; /* attribute DOMString widows; */ NS_SCRIPTABLE NS_IMETHOD GetWidows(nsAString & aWidows) = 0; NS_SCRIPTABLE NS_IMETHOD SetWidows(const nsAString & aWidows) = 0; /* attribute DOMString width; */ NS_SCRIPTABLE NS_IMETHOD GetWidth(nsAString & aWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetWidth(const nsAString & aWidth) = 0; /* attribute DOMString wordSpacing; */ NS_SCRIPTABLE NS_IMETHOD GetWordSpacing(nsAString & aWordSpacing) = 0; NS_SCRIPTABLE NS_IMETHOD SetWordSpacing(const nsAString & aWordSpacing) = 0; /* attribute DOMString zIndex; */ NS_SCRIPTABLE NS_IMETHOD GetZIndex(nsAString & aZIndex) = 0; NS_SCRIPTABLE NS_IMETHOD SetZIndex(const nsAString & aZIndex) = 0; /* attribute DOMString clipPath; */ NS_SCRIPTABLE NS_IMETHOD GetClipPath(nsAString & aClipPath) = 0; NS_SCRIPTABLE NS_IMETHOD SetClipPath(const nsAString & aClipPath) = 0; /* attribute DOMString clipRule; */ NS_SCRIPTABLE NS_IMETHOD GetClipRule(nsAString & aClipRule) = 0; NS_SCRIPTABLE NS_IMETHOD SetClipRule(const nsAString & aClipRule) = 0; /* attribute DOMString colorInterpolation; */ NS_SCRIPTABLE NS_IMETHOD GetColorInterpolation(nsAString & aColorInterpolation) = 0; NS_SCRIPTABLE NS_IMETHOD SetColorInterpolation(const nsAString & aColorInterpolation) = 0; /* attribute DOMString colorInterpolationFilters; */ NS_SCRIPTABLE NS_IMETHOD GetColorInterpolationFilters(nsAString & aColorInterpolationFilters) = 0; NS_SCRIPTABLE NS_IMETHOD SetColorInterpolationFilters(const nsAString & aColorInterpolationFilters) = 0; /* attribute DOMString dominantBaseline; */ NS_SCRIPTABLE NS_IMETHOD GetDominantBaseline(nsAString & aDominantBaseline) = 0; NS_SCRIPTABLE NS_IMETHOD SetDominantBaseline(const nsAString & aDominantBaseline) = 0; /* attribute DOMString fill; */ NS_SCRIPTABLE NS_IMETHOD GetFill(nsAString & aFill) = 0; NS_SCRIPTABLE NS_IMETHOD SetFill(const nsAString & aFill) = 0; /* attribute DOMString fillOpacity; */ NS_SCRIPTABLE NS_IMETHOD GetFillOpacity(nsAString & aFillOpacity) = 0; NS_SCRIPTABLE NS_IMETHOD SetFillOpacity(const nsAString & aFillOpacity) = 0; /* attribute DOMString fillRule; */ NS_SCRIPTABLE NS_IMETHOD GetFillRule(nsAString & aFillRule) = 0; NS_SCRIPTABLE NS_IMETHOD SetFillRule(const nsAString & aFillRule) = 0; /* attribute DOMString filter; */ NS_SCRIPTABLE NS_IMETHOD GetFilter(nsAString & aFilter) = 0; NS_SCRIPTABLE NS_IMETHOD SetFilter(const nsAString & aFilter) = 0; /* attribute DOMString floodColor; */ NS_SCRIPTABLE NS_IMETHOD GetFloodColor(nsAString & aFloodColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetFloodColor(const nsAString & aFloodColor) = 0; /* attribute DOMString floodOpacity; */ NS_SCRIPTABLE NS_IMETHOD GetFloodOpacity(nsAString & aFloodOpacity) = 0; NS_SCRIPTABLE NS_IMETHOD SetFloodOpacity(const nsAString & aFloodOpacity) = 0; /* attribute DOMString imageRendering; */ NS_SCRIPTABLE NS_IMETHOD GetImageRendering(nsAString & aImageRendering) = 0; NS_SCRIPTABLE NS_IMETHOD SetImageRendering(const nsAString & aImageRendering) = 0; /* attribute DOMString lightingColor; */ NS_SCRIPTABLE NS_IMETHOD GetLightingColor(nsAString & aLightingColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetLightingColor(const nsAString & aLightingColor) = 0; /* attribute DOMString marker; */ NS_SCRIPTABLE NS_IMETHOD GetMarker(nsAString & aMarker) = 0; NS_SCRIPTABLE NS_IMETHOD SetMarker(const nsAString & aMarker) = 0; /* attribute DOMString markerEnd; */ NS_SCRIPTABLE NS_IMETHOD GetMarkerEnd(nsAString & aMarkerEnd) = 0; NS_SCRIPTABLE NS_IMETHOD SetMarkerEnd(const nsAString & aMarkerEnd) = 0; /* attribute DOMString markerMid; */ NS_SCRIPTABLE NS_IMETHOD GetMarkerMid(nsAString & aMarkerMid) = 0; NS_SCRIPTABLE NS_IMETHOD SetMarkerMid(const nsAString & aMarkerMid) = 0; /* attribute DOMString markerStart; */ NS_SCRIPTABLE NS_IMETHOD GetMarkerStart(nsAString & aMarkerStart) = 0; NS_SCRIPTABLE NS_IMETHOD SetMarkerStart(const nsAString & aMarkerStart) = 0; /* attribute DOMString mask; */ NS_SCRIPTABLE NS_IMETHOD GetMask(nsAString & aMask) = 0; NS_SCRIPTABLE NS_IMETHOD SetMask(const nsAString & aMask) = 0; /* attribute DOMString shapeRendering; */ NS_SCRIPTABLE NS_IMETHOD GetShapeRendering(nsAString & aShapeRendering) = 0; NS_SCRIPTABLE NS_IMETHOD SetShapeRendering(const nsAString & aShapeRendering) = 0; /* attribute DOMString stopColor; */ NS_SCRIPTABLE NS_IMETHOD GetStopColor(nsAString & aStopColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetStopColor(const nsAString & aStopColor) = 0; /* attribute DOMString stopOpacity; */ NS_SCRIPTABLE NS_IMETHOD GetStopOpacity(nsAString & aStopOpacity) = 0; NS_SCRIPTABLE NS_IMETHOD SetStopOpacity(const nsAString & aStopOpacity) = 0; /* attribute DOMString stroke; */ NS_SCRIPTABLE NS_IMETHOD GetStroke(nsAString & aStroke) = 0; NS_SCRIPTABLE NS_IMETHOD SetStroke(const nsAString & aStroke) = 0; /* attribute DOMString strokeDasharray; */ NS_SCRIPTABLE NS_IMETHOD GetStrokeDasharray(nsAString & aStrokeDasharray) = 0; NS_SCRIPTABLE NS_IMETHOD SetStrokeDasharray(const nsAString & aStrokeDasharray) = 0; /* attribute DOMString strokeDashoffset; */ NS_SCRIPTABLE NS_IMETHOD GetStrokeDashoffset(nsAString & aStrokeDashoffset) = 0; NS_SCRIPTABLE NS_IMETHOD SetStrokeDashoffset(const nsAString & aStrokeDashoffset) = 0; /* attribute DOMString strokeLinecap; */ NS_SCRIPTABLE NS_IMETHOD GetStrokeLinecap(nsAString & aStrokeLinecap) = 0; NS_SCRIPTABLE NS_IMETHOD SetStrokeLinecap(const nsAString & aStrokeLinecap) = 0; /* attribute DOMString strokeLinejoin; */ NS_SCRIPTABLE NS_IMETHOD GetStrokeLinejoin(nsAString & aStrokeLinejoin) = 0; NS_SCRIPTABLE NS_IMETHOD SetStrokeLinejoin(const nsAString & aStrokeLinejoin) = 0; /* attribute DOMString strokeMiterlimit; */ NS_SCRIPTABLE NS_IMETHOD GetStrokeMiterlimit(nsAString & aStrokeMiterlimit) = 0; NS_SCRIPTABLE NS_IMETHOD SetStrokeMiterlimit(const nsAString & aStrokeMiterlimit) = 0; /* attribute DOMString strokeOpacity; */ NS_SCRIPTABLE NS_IMETHOD GetStrokeOpacity(nsAString & aStrokeOpacity) = 0; NS_SCRIPTABLE NS_IMETHOD SetStrokeOpacity(const nsAString & aStrokeOpacity) = 0; /* attribute DOMString strokeWidth; */ NS_SCRIPTABLE NS_IMETHOD GetStrokeWidth(nsAString & aStrokeWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetStrokeWidth(const nsAString & aStrokeWidth) = 0; /* attribute DOMString textAnchor; */ NS_SCRIPTABLE NS_IMETHOD GetTextAnchor(nsAString & aTextAnchor) = 0; NS_SCRIPTABLE NS_IMETHOD SetTextAnchor(const nsAString & aTextAnchor) = 0; /* attribute DOMString textRendering; */ NS_SCRIPTABLE NS_IMETHOD GetTextRendering(nsAString & aTextRendering) = 0; NS_SCRIPTABLE NS_IMETHOD SetTextRendering(const nsAString & aTextRendering) = 0; /* attribute DOMString vectorEffect; */ NS_SCRIPTABLE NS_IMETHOD GetVectorEffect(nsAString & aVectorEffect) = 0; NS_SCRIPTABLE NS_IMETHOD SetVectorEffect(const nsAString & aVectorEffect) = 0; /* attribute DOMString MozAppearance; */ NS_SCRIPTABLE NS_IMETHOD GetMozAppearance(nsAString & aMozAppearance) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozAppearance(const nsAString & aMozAppearance) = 0; /* attribute DOMString backgroundClip; */ NS_SCRIPTABLE NS_IMETHOD GetBackgroundClip(nsAString & aBackgroundClip) = 0; NS_SCRIPTABLE NS_IMETHOD SetBackgroundClip(const nsAString & aBackgroundClip) = 0; /* attribute DOMString MozBackgroundInlinePolicy; */ NS_SCRIPTABLE NS_IMETHOD GetMozBackgroundInlinePolicy(nsAString & aMozBackgroundInlinePolicy) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBackgroundInlinePolicy(const nsAString & aMozBackgroundInlinePolicy) = 0; /* attribute DOMString backgroundOrigin; */ NS_SCRIPTABLE NS_IMETHOD GetBackgroundOrigin(nsAString & aBackgroundOrigin) = 0; NS_SCRIPTABLE NS_IMETHOD SetBackgroundOrigin(const nsAString & aBackgroundOrigin) = 0; /* attribute DOMString MozBinding; */ NS_SCRIPTABLE NS_IMETHOD GetMozBinding(nsAString & aMozBinding) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBinding(const nsAString & aMozBinding) = 0; /* attribute DOMString MozBorderBottomColors; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderBottomColors(nsAString & aMozBorderBottomColors) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderBottomColors(const nsAString & aMozBorderBottomColors) = 0; /* attribute DOMString MozBorderLeftColors; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderLeftColors(nsAString & aMozBorderLeftColors) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderLeftColors(const nsAString & aMozBorderLeftColors) = 0; /* attribute DOMString MozBorderRightColors; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderRightColors(nsAString & aMozBorderRightColors) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderRightColors(const nsAString & aMozBorderRightColors) = 0; /* attribute DOMString MozBorderTopColors; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderTopColors(nsAString & aMozBorderTopColors) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderTopColors(const nsAString & aMozBorderTopColors) = 0; /* attribute DOMString MozBoxAlign; */ NS_SCRIPTABLE NS_IMETHOD GetMozBoxAlign(nsAString & aMozBoxAlign) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBoxAlign(const nsAString & aMozBoxAlign) = 0; /* attribute DOMString MozBoxDirection; */ NS_SCRIPTABLE NS_IMETHOD GetMozBoxDirection(nsAString & aMozBoxDirection) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBoxDirection(const nsAString & aMozBoxDirection) = 0; /* attribute DOMString MozBoxFlex; */ NS_SCRIPTABLE NS_IMETHOD GetMozBoxFlex(nsAString & aMozBoxFlex) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBoxFlex(const nsAString & aMozBoxFlex) = 0; /* attribute DOMString MozBoxOrient; */ NS_SCRIPTABLE NS_IMETHOD GetMozBoxOrient(nsAString & aMozBoxOrient) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBoxOrient(const nsAString & aMozBoxOrient) = 0; /* attribute DOMString MozBoxOrdinalGroup; */ NS_SCRIPTABLE NS_IMETHOD GetMozBoxOrdinalGroup(nsAString & aMozBoxOrdinalGroup) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBoxOrdinalGroup(const nsAString & aMozBoxOrdinalGroup) = 0; /* attribute DOMString MozBoxPack; */ NS_SCRIPTABLE NS_IMETHOD GetMozBoxPack(nsAString & aMozBoxPack) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBoxPack(const nsAString & aMozBoxPack) = 0; /* attribute DOMString MozBoxSizing; */ NS_SCRIPTABLE NS_IMETHOD GetMozBoxSizing(nsAString & aMozBoxSizing) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBoxSizing(const nsAString & aMozBoxSizing) = 0; /* attribute DOMString MozColumnCount; */ NS_SCRIPTABLE NS_IMETHOD GetMozColumnCount(nsAString & aMozColumnCount) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozColumnCount(const nsAString & aMozColumnCount) = 0; /* attribute DOMString MozColumnWidth; */ NS_SCRIPTABLE NS_IMETHOD GetMozColumnWidth(nsAString & aMozColumnWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozColumnWidth(const nsAString & aMozColumnWidth) = 0; /* attribute DOMString MozColumnGap; */ NS_SCRIPTABLE NS_IMETHOD GetMozColumnGap(nsAString & aMozColumnGap) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozColumnGap(const nsAString & aMozColumnGap) = 0; /* attribute DOMString MozFloatEdge; */ NS_SCRIPTABLE NS_IMETHOD GetMozFloatEdge(nsAString & aMozFloatEdge) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozFloatEdge(const nsAString & aMozFloatEdge) = 0; /* attribute DOMString MozFontFeatureSettings; */ NS_SCRIPTABLE NS_IMETHOD GetMozFontFeatureSettings(nsAString & aMozFontFeatureSettings) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozFontFeatureSettings(const nsAString & aMozFontFeatureSettings) = 0; /* attribute DOMString MozFontLanguageOverride; */ NS_SCRIPTABLE NS_IMETHOD GetMozFontLanguageOverride(nsAString & aMozFontLanguageOverride) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozFontLanguageOverride(const nsAString & aMozFontLanguageOverride) = 0; /* attribute DOMString MozForceBrokenImageIcon; */ NS_SCRIPTABLE NS_IMETHOD GetMozForceBrokenImageIcon(nsAString & aMozForceBrokenImageIcon) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozForceBrokenImageIcon(const nsAString & aMozForceBrokenImageIcon) = 0; /* attribute DOMString MozImageRegion; */ NS_SCRIPTABLE NS_IMETHOD GetMozImageRegion(nsAString & aMozImageRegion) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozImageRegion(const nsAString & aMozImageRegion) = 0; /* attribute DOMString MozMarginEnd; */ NS_SCRIPTABLE NS_IMETHOD GetMozMarginEnd(nsAString & aMozMarginEnd) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozMarginEnd(const nsAString & aMozMarginEnd) = 0; /* attribute DOMString MozMarginStart; */ NS_SCRIPTABLE NS_IMETHOD GetMozMarginStart(nsAString & aMozMarginStart) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozMarginStart(const nsAString & aMozMarginStart) = 0; /* attribute DOMString MozOrient; */ NS_SCRIPTABLE NS_IMETHOD GetMozOrient(nsAString & aMozOrient) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozOrient(const nsAString & aMozOrient) = 0; /* attribute DOMString MozOutlineRadius; */ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadius(nsAString & aMozOutlineRadius) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadius(const nsAString & aMozOutlineRadius) = 0; /* attribute DOMString MozOutlineRadiusTopleft; */ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusTopleft(nsAString & aMozOutlineRadiusTopleft) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusTopleft(const nsAString & aMozOutlineRadiusTopleft) = 0; /* attribute DOMString MozOutlineRadiusTopright; */ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusTopright(nsAString & aMozOutlineRadiusTopright) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusTopright(const nsAString & aMozOutlineRadiusTopright) = 0; /* attribute DOMString MozOutlineRadiusBottomleft; */ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusBottomleft(nsAString & aMozOutlineRadiusBottomleft) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusBottomleft(const nsAString & aMozOutlineRadiusBottomleft) = 0; /* attribute DOMString MozOutlineRadiusBottomright; */ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusBottomright(nsAString & aMozOutlineRadiusBottomright) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusBottomright(const nsAString & aMozOutlineRadiusBottomright) = 0; /* attribute DOMString MozPaddingEnd; */ NS_SCRIPTABLE NS_IMETHOD GetMozPaddingEnd(nsAString & aMozPaddingEnd) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozPaddingEnd(const nsAString & aMozPaddingEnd) = 0; /* attribute DOMString MozPaddingStart; */ NS_SCRIPTABLE NS_IMETHOD GetMozPaddingStart(nsAString & aMozPaddingStart) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozPaddingStart(const nsAString & aMozPaddingStart) = 0; /* attribute DOMString MozUserFocus; */ NS_SCRIPTABLE NS_IMETHOD GetMozUserFocus(nsAString & aMozUserFocus) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozUserFocus(const nsAString & aMozUserFocus) = 0; /* attribute DOMString MozUserInput; */ NS_SCRIPTABLE NS_IMETHOD GetMozUserInput(nsAString & aMozUserInput) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozUserInput(const nsAString & aMozUserInput) = 0; /* attribute DOMString MozUserModify; */ NS_SCRIPTABLE NS_IMETHOD GetMozUserModify(nsAString & aMozUserModify) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozUserModify(const nsAString & aMozUserModify) = 0; /* attribute DOMString MozUserSelect; */ NS_SCRIPTABLE NS_IMETHOD GetMozUserSelect(nsAString & aMozUserSelect) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozUserSelect(const nsAString & aMozUserSelect) = 0; /* attribute DOMString opacity; */ NS_SCRIPTABLE NS_IMETHOD GetOpacity(nsAString & aOpacity) = 0; NS_SCRIPTABLE NS_IMETHOD SetOpacity(const nsAString & aOpacity) = 0; /* attribute DOMString outlineOffset; */ NS_SCRIPTABLE NS_IMETHOD GetOutlineOffset(nsAString & aOutlineOffset) = 0; NS_SCRIPTABLE NS_IMETHOD SetOutlineOffset(const nsAString & aOutlineOffset) = 0; /* attribute DOMString MozTextAlignLast; */ NS_SCRIPTABLE NS_IMETHOD GetMozTextAlignLast(nsAString & aMozTextAlignLast) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTextAlignLast(const nsAString & aMozTextAlignLast) = 0; /* attribute DOMString overflowX; */ NS_SCRIPTABLE NS_IMETHOD GetOverflowX(nsAString & aOverflowX) = 0; NS_SCRIPTABLE NS_IMETHOD SetOverflowX(const nsAString & aOverflowX) = 0; /* attribute DOMString overflowY; */ NS_SCRIPTABLE NS_IMETHOD GetOverflowY(nsAString & aOverflowY) = 0; NS_SCRIPTABLE NS_IMETHOD SetOverflowY(const nsAString & aOverflowY) = 0; /* attribute DOMString imeMode; */ NS_SCRIPTABLE NS_IMETHOD GetImeMode(nsAString & aImeMode) = 0; NS_SCRIPTABLE NS_IMETHOD SetImeMode(const nsAString & aImeMode) = 0; /* attribute DOMString MozBorderEnd; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEnd(nsAString & aMozBorderEnd) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderEnd(const nsAString & aMozBorderEnd) = 0; /* attribute DOMString MozBorderEndColor; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndColor(nsAString & aMozBorderEndColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndColor(const nsAString & aMozBorderEndColor) = 0; /* attribute DOMString MozBorderEndStyle; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndStyle(nsAString & aMozBorderEndStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndStyle(const nsAString & aMozBorderEndStyle) = 0; /* attribute DOMString MozBorderEndWidth; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndWidth(nsAString & aMozBorderEndWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndWidth(const nsAString & aMozBorderEndWidth) = 0; /* attribute DOMString MozBorderStart; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStart(nsAString & aMozBorderStart) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderStart(const nsAString & aMozBorderStart) = 0; /* attribute DOMString MozBorderStartColor; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartColor(nsAString & aMozBorderStartColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartColor(const nsAString & aMozBorderStartColor) = 0; /* attribute DOMString MozBorderStartStyle; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartStyle(nsAString & aMozBorderStartStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartStyle(const nsAString & aMozBorderStartStyle) = 0; /* attribute DOMString MozBorderStartWidth; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartWidth(nsAString & aMozBorderStartWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartWidth(const nsAString & aMozBorderStartWidth) = 0; /* attribute DOMString MozStackSizing; */ NS_SCRIPTABLE NS_IMETHOD GetMozStackSizing(nsAString & aMozStackSizing) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozStackSizing(const nsAString & aMozStackSizing) = 0; /* attribute DOMString borderImage; */ NS_SCRIPTABLE NS_IMETHOD GetBorderImage(nsAString & aBorderImage) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderImage(const nsAString & aBorderImage) = 0; /* attribute DOMString MozColumns; */ NS_SCRIPTABLE NS_IMETHOD GetMozColumns(nsAString & aMozColumns) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozColumns(const nsAString & aMozColumns) = 0; /* attribute DOMString MozColumnRule; */ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRule(nsAString & aMozColumnRule) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozColumnRule(const nsAString & aMozColumnRule) = 0; /* attribute DOMString MozColumnRuleWidth; */ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleWidth(nsAString & aMozColumnRuleWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleWidth(const nsAString & aMozColumnRuleWidth) = 0; /* attribute DOMString MozColumnRuleStyle; */ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleStyle(nsAString & aMozColumnRuleStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleStyle(const nsAString & aMozColumnRuleStyle) = 0; /* attribute DOMString MozColumnRuleColor; */ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleColor(nsAString & aMozColumnRuleColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleColor(const nsAString & aMozColumnRuleColor) = 0; /* attribute DOMString wordBreak; */ NS_SCRIPTABLE NS_IMETHOD GetWordBreak(nsAString & aWordBreak) = 0; NS_SCRIPTABLE NS_IMETHOD SetWordBreak(const nsAString & aWordBreak) = 0; /* attribute DOMString wordWrap; */ NS_SCRIPTABLE NS_IMETHOD GetWordWrap(nsAString & aWordWrap) = 0; NS_SCRIPTABLE NS_IMETHOD SetWordWrap(const nsAString & aWordWrap) = 0; /* attribute DOMString MozHyphens; */ NS_SCRIPTABLE NS_IMETHOD GetMozHyphens(nsAString & aMozHyphens) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozHyphens(const nsAString & aMozHyphens) = 0; /* attribute DOMString MozTransform; */ NS_SCRIPTABLE NS_IMETHOD GetMozTransform(nsAString & aMozTransform) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTransform(const nsAString & aMozTransform) = 0; /* attribute DOMString MozTransformOrigin; */ NS_SCRIPTABLE NS_IMETHOD GetMozTransformOrigin(nsAString & aMozTransformOrigin) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTransformOrigin(const nsAString & aMozTransformOrigin) = 0; /* attribute DOMString MozPerspective; */ NS_SCRIPTABLE NS_IMETHOD GetMozPerspective(nsAString & aMozPerspective) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozPerspective(const nsAString & aMozPerspective) = 0; /* attribute DOMString MozPerspectiveOrigin; */ NS_SCRIPTABLE NS_IMETHOD GetMozPerspectiveOrigin(nsAString & aMozPerspectiveOrigin) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozPerspectiveOrigin(const nsAString & aMozPerspectiveOrigin) = 0; /* attribute DOMString MozBackfaceVisibility; */ NS_SCRIPTABLE NS_IMETHOD GetMozBackfaceVisibility(nsAString & aMozBackfaceVisibility) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBackfaceVisibility(const nsAString & aMozBackfaceVisibility) = 0; /* attribute DOMString MozTransformStyle; */ NS_SCRIPTABLE NS_IMETHOD GetMozTransformStyle(nsAString & aMozTransformStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTransformStyle(const nsAString & aMozTransformStyle) = 0; /* attribute DOMString MozWindowShadow; */ NS_SCRIPTABLE NS_IMETHOD GetMozWindowShadow(nsAString & aMozWindowShadow) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozWindowShadow(const nsAString & aMozWindowShadow) = 0; /* attribute DOMString backgroundSize; */ NS_SCRIPTABLE NS_IMETHOD GetBackgroundSize(nsAString & aBackgroundSize) = 0; NS_SCRIPTABLE NS_IMETHOD SetBackgroundSize(const nsAString & aBackgroundSize) = 0; /* attribute DOMString MozTextBlink; */ NS_SCRIPTABLE NS_IMETHOD GetMozTextBlink(nsAString & aMozTextBlink) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTextBlink(const nsAString & aMozTextBlink) = 0; /* attribute DOMString MozTextDecorationColor; */ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationColor(nsAString & aMozTextDecorationColor) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationColor(const nsAString & aMozTextDecorationColor) = 0; /* attribute DOMString MozTextDecorationLine; */ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationLine(nsAString & aMozTextDecorationLine) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationLine(const nsAString & aMozTextDecorationLine) = 0; /* attribute DOMString MozTextDecorationStyle; */ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationStyle(nsAString & aMozTextDecorationStyle) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationStyle(const nsAString & aMozTextDecorationStyle) = 0; /* attribute DOMString MozTransitionProperty; */ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionProperty(nsAString & aMozTransitionProperty) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTransitionProperty(const nsAString & aMozTransitionProperty) = 0; /* attribute DOMString MozTransitionDuration; */ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionDuration(nsAString & aMozTransitionDuration) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTransitionDuration(const nsAString & aMozTransitionDuration) = 0; /* attribute DOMString MozTransitionDelay; */ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionDelay(nsAString & aMozTransitionDelay) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTransitionDelay(const nsAString & aMozTransitionDelay) = 0; /* attribute DOMString MozTransitionTimingFunction; */ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionTimingFunction(nsAString & aMozTransitionTimingFunction) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTransitionTimingFunction(const nsAString & aMozTransitionTimingFunction) = 0; /* attribute DOMString MozTransition; */ NS_SCRIPTABLE NS_IMETHOD GetMozTransition(nsAString & aMozTransition) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTransition(const nsAString & aMozTransition) = 0; /* attribute DOMString pointerEvents; */ NS_SCRIPTABLE NS_IMETHOD GetPointerEvents(nsAString & aPointerEvents) = 0; NS_SCRIPTABLE NS_IMETHOD SetPointerEvents(const nsAString & aPointerEvents) = 0; /* attribute DOMString MozTabSize; */ NS_SCRIPTABLE NS_IMETHOD GetMozTabSize(nsAString & aMozTabSize) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTabSize(const nsAString & aMozTabSize) = 0; /* attribute DOMString resize; */ NS_SCRIPTABLE NS_IMETHOD GetResize(nsAString & aResize) = 0; NS_SCRIPTABLE NS_IMETHOD SetResize(const nsAString & aResize) = 0; /* attribute DOMString MozAnimationName; */ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationName(nsAString & aMozAnimationName) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozAnimationName(const nsAString & aMozAnimationName) = 0; /* attribute DOMString MozAnimationDuration; */ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDuration(nsAString & aMozAnimationDuration) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDuration(const nsAString & aMozAnimationDuration) = 0; /* attribute DOMString MozAnimationDelay; */ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDelay(nsAString & aMozAnimationDelay) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDelay(const nsAString & aMozAnimationDelay) = 0; /* attribute DOMString MozAnimationTimingFunction; */ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationTimingFunction(nsAString & aMozAnimationTimingFunction) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozAnimationTimingFunction(const nsAString & aMozAnimationTimingFunction) = 0; /* attribute DOMString MozAnimationDirection; */ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDirection(nsAString & aMozAnimationDirection) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDirection(const nsAString & aMozAnimationDirection) = 0; /* attribute DOMString MozAnimationFillMode; */ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationFillMode(nsAString & aMozAnimationFillMode) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozAnimationFillMode(const nsAString & aMozAnimationFillMode) = 0; /* attribute DOMString MozAnimationIterationCount; */ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationIterationCount(nsAString & aMozAnimationIterationCount) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozAnimationIterationCount(const nsAString & aMozAnimationIterationCount) = 0; /* attribute DOMString MozAnimationPlayState; */ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationPlayState(nsAString & aMozAnimationPlayState) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozAnimationPlayState(const nsAString & aMozAnimationPlayState) = 0; /* attribute DOMString MozAnimation; */ NS_SCRIPTABLE NS_IMETHOD GetMozAnimation(nsAString & aMozAnimation) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozAnimation(const nsAString & aMozAnimation) = 0; /* attribute DOMString MozTextSizeAdjust; */ NS_SCRIPTABLE NS_IMETHOD GetMozTextSizeAdjust(nsAString & aMozTextSizeAdjust) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozTextSizeAdjust(const nsAString & aMozTextSizeAdjust) = 0; /* attribute DOMString borderImageSource; */ NS_SCRIPTABLE NS_IMETHOD GetBorderImageSource(nsAString & aBorderImageSource) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderImageSource(const nsAString & aBorderImageSource) = 0; /* attribute DOMString borderImageSlice; */ NS_SCRIPTABLE NS_IMETHOD GetBorderImageSlice(nsAString & aBorderImageSlice) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderImageSlice(const nsAString & aBorderImageSlice) = 0; /* attribute DOMString borderImageWidth; */ NS_SCRIPTABLE NS_IMETHOD GetBorderImageWidth(nsAString & aBorderImageWidth) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderImageWidth(const nsAString & aBorderImageWidth) = 0; /* attribute DOMString borderImageOutset; */ NS_SCRIPTABLE NS_IMETHOD GetBorderImageOutset(nsAString & aBorderImageOutset) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderImageOutset(const nsAString & aBorderImageOutset) = 0; /* attribute DOMString borderImageRepeat; */ NS_SCRIPTABLE NS_IMETHOD GetBorderImageRepeat(nsAString & aBorderImageRepeat) = 0; NS_SCRIPTABLE NS_IMETHOD SetBorderImageRepeat(const nsAString & aBorderImageRepeat) = 0; /* attribute DOMString MozBorderImage; */ NS_SCRIPTABLE NS_IMETHOD GetMozBorderImage(nsAString & aMozBorderImage) = 0; NS_SCRIPTABLE NS_IMETHOD SetMozBorderImage(const nsAString & aMozBorderImage) = 0; }; NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSS2Properties, NS_IDOMCSS2PROPERTIES_IID) /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIDOMCSS2PROPERTIES \ NS_SCRIPTABLE NS_IMETHOD GetBackground(nsAString & aBackground); \ NS_SCRIPTABLE NS_IMETHOD SetBackground(const nsAString & aBackground); \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundAttachment(nsAString & aBackgroundAttachment); \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundAttachment(const nsAString & aBackgroundAttachment); \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundColor(nsAString & aBackgroundColor); \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundColor(const nsAString & aBackgroundColor); \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundImage(nsAString & aBackgroundImage); \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundImage(const nsAString & aBackgroundImage); \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundPosition(nsAString & aBackgroundPosition); \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundPosition(const nsAString & aBackgroundPosition); \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundRepeat(nsAString & aBackgroundRepeat); \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundRepeat(const nsAString & aBackgroundRepeat); \ NS_SCRIPTABLE NS_IMETHOD GetBorder(nsAString & aBorder); \ NS_SCRIPTABLE NS_IMETHOD SetBorder(const nsAString & aBorder); \ NS_SCRIPTABLE NS_IMETHOD GetBorderCollapse(nsAString & aBorderCollapse); \ NS_SCRIPTABLE NS_IMETHOD SetBorderCollapse(const nsAString & aBorderCollapse); \ NS_SCRIPTABLE NS_IMETHOD GetBorderColor(nsAString & aBorderColor); \ NS_SCRIPTABLE NS_IMETHOD SetBorderColor(const nsAString & aBorderColor); \ NS_SCRIPTABLE NS_IMETHOD GetBorderSpacing(nsAString & aBorderSpacing); \ NS_SCRIPTABLE NS_IMETHOD SetBorderSpacing(const nsAString & aBorderSpacing); \ NS_SCRIPTABLE NS_IMETHOD GetBorderStyle(nsAString & aBorderStyle); \ NS_SCRIPTABLE NS_IMETHOD SetBorderStyle(const nsAString & aBorderStyle); \ NS_SCRIPTABLE NS_IMETHOD GetBorderTop(nsAString & aBorderTop); \ NS_SCRIPTABLE NS_IMETHOD SetBorderTop(const nsAString & aBorderTop); \ NS_SCRIPTABLE NS_IMETHOD GetBorderRight(nsAString & aBorderRight); \ NS_SCRIPTABLE NS_IMETHOD SetBorderRight(const nsAString & aBorderRight); \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottom(nsAString & aBorderBottom); \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottom(const nsAString & aBorderBottom); \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeft(nsAString & aBorderLeft); \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeft(const nsAString & aBorderLeft); \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopColor(nsAString & aBorderTopColor); \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopColor(const nsAString & aBorderTopColor); \ NS_SCRIPTABLE NS_IMETHOD GetBorderRightColor(nsAString & aBorderRightColor); \ NS_SCRIPTABLE NS_IMETHOD SetBorderRightColor(const nsAString & aBorderRightColor); \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomColor(nsAString & aBorderBottomColor); \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomColor(const nsAString & aBorderBottomColor); \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftColor(nsAString & aBorderLeftColor); \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeftColor(const nsAString & aBorderLeftColor); \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopStyle(nsAString & aBorderTopStyle); \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopStyle(const nsAString & aBorderTopStyle); \ NS_SCRIPTABLE NS_IMETHOD GetBorderRightStyle(nsAString & aBorderRightStyle); \ NS_SCRIPTABLE NS_IMETHOD SetBorderRightStyle(const nsAString & aBorderRightStyle); \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomStyle(nsAString & aBorderBottomStyle); \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomStyle(const nsAString & aBorderBottomStyle); \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftStyle(nsAString & aBorderLeftStyle); \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeftStyle(const nsAString & aBorderLeftStyle); \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopWidth(nsAString & aBorderTopWidth); \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopWidth(const nsAString & aBorderTopWidth); \ NS_SCRIPTABLE NS_IMETHOD GetBorderRightWidth(nsAString & aBorderRightWidth); \ NS_SCRIPTABLE NS_IMETHOD SetBorderRightWidth(const nsAString & aBorderRightWidth); \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomWidth(nsAString & aBorderBottomWidth); \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomWidth(const nsAString & aBorderBottomWidth); \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftWidth(nsAString & aBorderLeftWidth); \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeftWidth(const nsAString & aBorderLeftWidth); \ NS_SCRIPTABLE NS_IMETHOD GetBorderWidth(nsAString & aBorderWidth); \ NS_SCRIPTABLE NS_IMETHOD SetBorderWidth(const nsAString & aBorderWidth); \ NS_SCRIPTABLE NS_IMETHOD GetBorderRadius(nsAString & aBorderRadius); \ NS_SCRIPTABLE NS_IMETHOD SetBorderRadius(const nsAString & aBorderRadius); \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopLeftRadius(nsAString & aBorderTopLeftRadius); \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopLeftRadius(const nsAString & aBorderTopLeftRadius); \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopRightRadius(nsAString & aBorderTopRightRadius); \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopRightRadius(const nsAString & aBorderTopRightRadius); \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomLeftRadius(nsAString & aBorderBottomLeftRadius); \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomLeftRadius(const nsAString & aBorderBottomLeftRadius); \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomRightRadius(nsAString & aBorderBottomRightRadius); \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomRightRadius(const nsAString & aBorderBottomRightRadius); \ NS_SCRIPTABLE NS_IMETHOD GetBottom(nsAString & aBottom); \ NS_SCRIPTABLE NS_IMETHOD SetBottom(const nsAString & aBottom); \ NS_SCRIPTABLE NS_IMETHOD GetBoxShadow(nsAString & aBoxShadow); \ NS_SCRIPTABLE NS_IMETHOD SetBoxShadow(const nsAString & aBoxShadow); \ NS_SCRIPTABLE NS_IMETHOD GetCaptionSide(nsAString & aCaptionSide); \ NS_SCRIPTABLE NS_IMETHOD SetCaptionSide(const nsAString & aCaptionSide); \ NS_SCRIPTABLE NS_IMETHOD GetClear(nsAString & aClear); \ NS_SCRIPTABLE NS_IMETHOD SetClear(const nsAString & aClear); \ NS_SCRIPTABLE NS_IMETHOD GetClip(nsAString & aClip); \ NS_SCRIPTABLE NS_IMETHOD SetClip(const nsAString & aClip); \ NS_SCRIPTABLE NS_IMETHOD GetColor(nsAString & aColor); \ NS_SCRIPTABLE NS_IMETHOD SetColor(const nsAString & aColor); \ NS_SCRIPTABLE NS_IMETHOD GetContent(nsAString & aContent); \ NS_SCRIPTABLE NS_IMETHOD SetContent(const nsAString & aContent); \ NS_SCRIPTABLE NS_IMETHOD GetCounterIncrement(nsAString & aCounterIncrement); \ NS_SCRIPTABLE NS_IMETHOD SetCounterIncrement(const nsAString & aCounterIncrement); \ NS_SCRIPTABLE NS_IMETHOD GetCounterReset(nsAString & aCounterReset); \ NS_SCRIPTABLE NS_IMETHOD SetCounterReset(const nsAString & aCounterReset); \ NS_SCRIPTABLE NS_IMETHOD GetCursor(nsAString & aCursor); \ NS_SCRIPTABLE NS_IMETHOD SetCursor(const nsAString & aCursor); \ NS_SCRIPTABLE NS_IMETHOD GetDirection(nsAString & aDirection); \ NS_SCRIPTABLE NS_IMETHOD SetDirection(const nsAString & aDirection); \ NS_SCRIPTABLE NS_IMETHOD GetDisplay(nsAString & aDisplay); \ NS_SCRIPTABLE NS_IMETHOD SetDisplay(const nsAString & aDisplay); \ NS_SCRIPTABLE NS_IMETHOD GetEmptyCells(nsAString & aEmptyCells); \ NS_SCRIPTABLE NS_IMETHOD SetEmptyCells(const nsAString & aEmptyCells); \ NS_SCRIPTABLE NS_IMETHOD GetCssFloat(nsAString & aCssFloat); \ NS_SCRIPTABLE NS_IMETHOD SetCssFloat(const nsAString & aCssFloat); \ NS_SCRIPTABLE NS_IMETHOD GetFont(nsAString & aFont); \ NS_SCRIPTABLE NS_IMETHOD SetFont(const nsAString & aFont); \ NS_SCRIPTABLE NS_IMETHOD GetFontFamily(nsAString & aFontFamily); \ NS_SCRIPTABLE NS_IMETHOD SetFontFamily(const nsAString & aFontFamily); \ NS_SCRIPTABLE NS_IMETHOD GetFontSize(nsAString & aFontSize); \ NS_SCRIPTABLE NS_IMETHOD SetFontSize(const nsAString & aFontSize); \ NS_SCRIPTABLE NS_IMETHOD GetFontSizeAdjust(nsAString & aFontSizeAdjust); \ NS_SCRIPTABLE NS_IMETHOD SetFontSizeAdjust(const nsAString & aFontSizeAdjust); \ NS_SCRIPTABLE NS_IMETHOD GetFontStretch(nsAString & aFontStretch); \ NS_SCRIPTABLE NS_IMETHOD SetFontStretch(const nsAString & aFontStretch); \ NS_SCRIPTABLE NS_IMETHOD GetFontStyle(nsAString & aFontStyle); \ NS_SCRIPTABLE NS_IMETHOD SetFontStyle(const nsAString & aFontStyle); \ NS_SCRIPTABLE NS_IMETHOD GetFontVariant(nsAString & aFontVariant); \ NS_SCRIPTABLE NS_IMETHOD SetFontVariant(const nsAString & aFontVariant); \ NS_SCRIPTABLE NS_IMETHOD GetFontWeight(nsAString & aFontWeight); \ NS_SCRIPTABLE NS_IMETHOD SetFontWeight(const nsAString & aFontWeight); \ NS_SCRIPTABLE NS_IMETHOD GetHeight(nsAString & aHeight); \ NS_SCRIPTABLE NS_IMETHOD SetHeight(const nsAString & aHeight); \ NS_SCRIPTABLE NS_IMETHOD GetLeft(nsAString & aLeft); \ NS_SCRIPTABLE NS_IMETHOD SetLeft(const nsAString & aLeft); \ NS_SCRIPTABLE NS_IMETHOD GetLetterSpacing(nsAString & aLetterSpacing); \ NS_SCRIPTABLE NS_IMETHOD SetLetterSpacing(const nsAString & aLetterSpacing); \ NS_SCRIPTABLE NS_IMETHOD GetLineHeight(nsAString & aLineHeight); \ NS_SCRIPTABLE NS_IMETHOD SetLineHeight(const nsAString & aLineHeight); \ NS_SCRIPTABLE NS_IMETHOD GetListStyle(nsAString & aListStyle); \ NS_SCRIPTABLE NS_IMETHOD SetListStyle(const nsAString & aListStyle); \ NS_SCRIPTABLE NS_IMETHOD GetListStyleImage(nsAString & aListStyleImage); \ NS_SCRIPTABLE NS_IMETHOD SetListStyleImage(const nsAString & aListStyleImage); \ NS_SCRIPTABLE NS_IMETHOD GetListStylePosition(nsAString & aListStylePosition); \ NS_SCRIPTABLE NS_IMETHOD SetListStylePosition(const nsAString & aListStylePosition); \ NS_SCRIPTABLE NS_IMETHOD GetListStyleType(nsAString & aListStyleType); \ NS_SCRIPTABLE NS_IMETHOD SetListStyleType(const nsAString & aListStyleType); \ NS_SCRIPTABLE NS_IMETHOD GetMargin(nsAString & aMargin); \ NS_SCRIPTABLE NS_IMETHOD SetMargin(const nsAString & aMargin); \ NS_SCRIPTABLE NS_IMETHOD GetMarginTop(nsAString & aMarginTop); \ NS_SCRIPTABLE NS_IMETHOD SetMarginTop(const nsAString & aMarginTop); \ NS_SCRIPTABLE NS_IMETHOD GetMarginRight(nsAString & aMarginRight); \ NS_SCRIPTABLE NS_IMETHOD SetMarginRight(const nsAString & aMarginRight); \ NS_SCRIPTABLE NS_IMETHOD GetMarginBottom(nsAString & aMarginBottom); \ NS_SCRIPTABLE NS_IMETHOD SetMarginBottom(const nsAString & aMarginBottom); \ NS_SCRIPTABLE NS_IMETHOD GetMarginLeft(nsAString & aMarginLeft); \ NS_SCRIPTABLE NS_IMETHOD SetMarginLeft(const nsAString & aMarginLeft); \ NS_SCRIPTABLE NS_IMETHOD GetMarkerOffset(nsAString & aMarkerOffset); \ NS_SCRIPTABLE NS_IMETHOD SetMarkerOffset(const nsAString & aMarkerOffset); \ NS_SCRIPTABLE NS_IMETHOD GetMarks(nsAString & aMarks); \ NS_SCRIPTABLE NS_IMETHOD SetMarks(const nsAString & aMarks); \ NS_SCRIPTABLE NS_IMETHOD GetMaxHeight(nsAString & aMaxHeight); \ NS_SCRIPTABLE NS_IMETHOD SetMaxHeight(const nsAString & aMaxHeight); \ NS_SCRIPTABLE NS_IMETHOD GetMaxWidth(nsAString & aMaxWidth); \ NS_SCRIPTABLE NS_IMETHOD SetMaxWidth(const nsAString & aMaxWidth); \ NS_SCRIPTABLE NS_IMETHOD GetMinHeight(nsAString & aMinHeight); \ NS_SCRIPTABLE NS_IMETHOD SetMinHeight(const nsAString & aMinHeight); \ NS_SCRIPTABLE NS_IMETHOD GetMinWidth(nsAString & aMinWidth); \ NS_SCRIPTABLE NS_IMETHOD SetMinWidth(const nsAString & aMinWidth); \ NS_SCRIPTABLE NS_IMETHOD GetOrphans(nsAString & aOrphans); \ NS_SCRIPTABLE NS_IMETHOD SetOrphans(const nsAString & aOrphans); \ NS_SCRIPTABLE NS_IMETHOD GetOutline(nsAString & aOutline); \ NS_SCRIPTABLE NS_IMETHOD SetOutline(const nsAString & aOutline); \ NS_SCRIPTABLE NS_IMETHOD GetOutlineColor(nsAString & aOutlineColor); \ NS_SCRIPTABLE NS_IMETHOD SetOutlineColor(const nsAString & aOutlineColor); \ NS_SCRIPTABLE NS_IMETHOD GetOutlineStyle(nsAString & aOutlineStyle); \ NS_SCRIPTABLE NS_IMETHOD SetOutlineStyle(const nsAString & aOutlineStyle); \ NS_SCRIPTABLE NS_IMETHOD GetOutlineWidth(nsAString & aOutlineWidth); \ NS_SCRIPTABLE NS_IMETHOD SetOutlineWidth(const nsAString & aOutlineWidth); \ NS_SCRIPTABLE NS_IMETHOD GetOverflow(nsAString & aOverflow); \ NS_SCRIPTABLE NS_IMETHOD SetOverflow(const nsAString & aOverflow); \ NS_SCRIPTABLE NS_IMETHOD GetPadding(nsAString & aPadding); \ NS_SCRIPTABLE NS_IMETHOD SetPadding(const nsAString & aPadding); \ NS_SCRIPTABLE NS_IMETHOD GetPaddingTop(nsAString & aPaddingTop); \ NS_SCRIPTABLE NS_IMETHOD SetPaddingTop(const nsAString & aPaddingTop); \ NS_SCRIPTABLE NS_IMETHOD GetPaddingRight(nsAString & aPaddingRight); \ NS_SCRIPTABLE NS_IMETHOD SetPaddingRight(const nsAString & aPaddingRight); \ NS_SCRIPTABLE NS_IMETHOD GetPaddingBottom(nsAString & aPaddingBottom); \ NS_SCRIPTABLE NS_IMETHOD SetPaddingBottom(const nsAString & aPaddingBottom); \ NS_SCRIPTABLE NS_IMETHOD GetPaddingLeft(nsAString & aPaddingLeft); \ NS_SCRIPTABLE NS_IMETHOD SetPaddingLeft(const nsAString & aPaddingLeft); \ NS_SCRIPTABLE NS_IMETHOD GetPage(nsAString & aPage); \ NS_SCRIPTABLE NS_IMETHOD SetPage(const nsAString & aPage); \ NS_SCRIPTABLE NS_IMETHOD GetPageBreakAfter(nsAString & aPageBreakAfter); \ NS_SCRIPTABLE NS_IMETHOD SetPageBreakAfter(const nsAString & aPageBreakAfter); \ NS_SCRIPTABLE NS_IMETHOD GetPageBreakBefore(nsAString & aPageBreakBefore); \ NS_SCRIPTABLE NS_IMETHOD SetPageBreakBefore(const nsAString & aPageBreakBefore); \ NS_SCRIPTABLE NS_IMETHOD GetPageBreakInside(nsAString & aPageBreakInside); \ NS_SCRIPTABLE NS_IMETHOD SetPageBreakInside(const nsAString & aPageBreakInside); \ NS_SCRIPTABLE NS_IMETHOD GetPosition(nsAString & aPosition); \ NS_SCRIPTABLE NS_IMETHOD SetPosition(const nsAString & aPosition); \ NS_SCRIPTABLE NS_IMETHOD GetQuotes(nsAString & aQuotes); \ NS_SCRIPTABLE NS_IMETHOD SetQuotes(const nsAString & aQuotes); \ NS_SCRIPTABLE NS_IMETHOD GetRight(nsAString & aRight); \ NS_SCRIPTABLE NS_IMETHOD SetRight(const nsAString & aRight); \ NS_SCRIPTABLE NS_IMETHOD GetSize(nsAString & aSize); \ NS_SCRIPTABLE NS_IMETHOD SetSize(const nsAString & aSize); \ NS_SCRIPTABLE NS_IMETHOD GetTableLayout(nsAString & aTableLayout); \ NS_SCRIPTABLE NS_IMETHOD SetTableLayout(const nsAString & aTableLayout); \ NS_SCRIPTABLE NS_IMETHOD GetTextAlign(nsAString & aTextAlign); \ NS_SCRIPTABLE NS_IMETHOD SetTextAlign(const nsAString & aTextAlign); \ NS_SCRIPTABLE NS_IMETHOD GetTextDecoration(nsAString & aTextDecoration); \ NS_SCRIPTABLE NS_IMETHOD SetTextDecoration(const nsAString & aTextDecoration); \ NS_SCRIPTABLE NS_IMETHOD GetTextIndent(nsAString & aTextIndent); \ NS_SCRIPTABLE NS_IMETHOD SetTextIndent(const nsAString & aTextIndent); \ NS_SCRIPTABLE NS_IMETHOD GetTextOverflow(nsAString & aTextOverflow); \ NS_SCRIPTABLE NS_IMETHOD SetTextOverflow(const nsAString & aTextOverflow); \ NS_SCRIPTABLE NS_IMETHOD GetTextShadow(nsAString & aTextShadow); \ NS_SCRIPTABLE NS_IMETHOD SetTextShadow(const nsAString & aTextShadow); \ NS_SCRIPTABLE NS_IMETHOD GetTextTransform(nsAString & aTextTransform); \ NS_SCRIPTABLE NS_IMETHOD SetTextTransform(const nsAString & aTextTransform); \ NS_SCRIPTABLE NS_IMETHOD GetTop(nsAString & aTop); \ NS_SCRIPTABLE NS_IMETHOD SetTop(const nsAString & aTop); \ NS_SCRIPTABLE NS_IMETHOD GetUnicodeBidi(nsAString & aUnicodeBidi); \ NS_SCRIPTABLE NS_IMETHOD SetUnicodeBidi(const nsAString & aUnicodeBidi); \ NS_SCRIPTABLE NS_IMETHOD GetVerticalAlign(nsAString & aVerticalAlign); \ NS_SCRIPTABLE NS_IMETHOD SetVerticalAlign(const nsAString & aVerticalAlign); \ NS_SCRIPTABLE NS_IMETHOD GetVisibility(nsAString & aVisibility); \ NS_SCRIPTABLE NS_IMETHOD SetVisibility(const nsAString & aVisibility); \ NS_SCRIPTABLE NS_IMETHOD GetWhiteSpace(nsAString & aWhiteSpace); \ NS_SCRIPTABLE NS_IMETHOD SetWhiteSpace(const nsAString & aWhiteSpace); \ NS_SCRIPTABLE NS_IMETHOD GetWidows(nsAString & aWidows); \ NS_SCRIPTABLE NS_IMETHOD SetWidows(const nsAString & aWidows); \ NS_SCRIPTABLE NS_IMETHOD GetWidth(nsAString & aWidth); \ NS_SCRIPTABLE NS_IMETHOD SetWidth(const nsAString & aWidth); \ NS_SCRIPTABLE NS_IMETHOD GetWordSpacing(nsAString & aWordSpacing); \ NS_SCRIPTABLE NS_IMETHOD SetWordSpacing(const nsAString & aWordSpacing); \ NS_SCRIPTABLE NS_IMETHOD GetZIndex(nsAString & aZIndex); \ NS_SCRIPTABLE NS_IMETHOD SetZIndex(const nsAString & aZIndex); \ NS_SCRIPTABLE NS_IMETHOD GetClipPath(nsAString & aClipPath); \ NS_SCRIPTABLE NS_IMETHOD SetClipPath(const nsAString & aClipPath); \ NS_SCRIPTABLE NS_IMETHOD GetClipRule(nsAString & aClipRule); \ NS_SCRIPTABLE NS_IMETHOD SetClipRule(const nsAString & aClipRule); \ NS_SCRIPTABLE NS_IMETHOD GetColorInterpolation(nsAString & aColorInterpolation); \ NS_SCRIPTABLE NS_IMETHOD SetColorInterpolation(const nsAString & aColorInterpolation); \ NS_SCRIPTABLE NS_IMETHOD GetColorInterpolationFilters(nsAString & aColorInterpolationFilters); \ NS_SCRIPTABLE NS_IMETHOD SetColorInterpolationFilters(const nsAString & aColorInterpolationFilters); \ NS_SCRIPTABLE NS_IMETHOD GetDominantBaseline(nsAString & aDominantBaseline); \ NS_SCRIPTABLE NS_IMETHOD SetDominantBaseline(const nsAString & aDominantBaseline); \ NS_SCRIPTABLE NS_IMETHOD GetFill(nsAString & aFill); \ NS_SCRIPTABLE NS_IMETHOD SetFill(const nsAString & aFill); \ NS_SCRIPTABLE NS_IMETHOD GetFillOpacity(nsAString & aFillOpacity); \ NS_SCRIPTABLE NS_IMETHOD SetFillOpacity(const nsAString & aFillOpacity); \ NS_SCRIPTABLE NS_IMETHOD GetFillRule(nsAString & aFillRule); \ NS_SCRIPTABLE NS_IMETHOD SetFillRule(const nsAString & aFillRule); \ NS_SCRIPTABLE NS_IMETHOD GetFilter(nsAString & aFilter); \ NS_SCRIPTABLE NS_IMETHOD SetFilter(const nsAString & aFilter); \ NS_SCRIPTABLE NS_IMETHOD GetFloodColor(nsAString & aFloodColor); \ NS_SCRIPTABLE NS_IMETHOD SetFloodColor(const nsAString & aFloodColor); \ NS_SCRIPTABLE NS_IMETHOD GetFloodOpacity(nsAString & aFloodOpacity); \ NS_SCRIPTABLE NS_IMETHOD SetFloodOpacity(const nsAString & aFloodOpacity); \ NS_SCRIPTABLE NS_IMETHOD GetImageRendering(nsAString & aImageRendering); \ NS_SCRIPTABLE NS_IMETHOD SetImageRendering(const nsAString & aImageRendering); \ NS_SCRIPTABLE NS_IMETHOD GetLightingColor(nsAString & aLightingColor); \ NS_SCRIPTABLE NS_IMETHOD SetLightingColor(const nsAString & aLightingColor); \ NS_SCRIPTABLE NS_IMETHOD GetMarker(nsAString & aMarker); \ NS_SCRIPTABLE NS_IMETHOD SetMarker(const nsAString & aMarker); \ NS_SCRIPTABLE NS_IMETHOD GetMarkerEnd(nsAString & aMarkerEnd); \ NS_SCRIPTABLE NS_IMETHOD SetMarkerEnd(const nsAString & aMarkerEnd); \ NS_SCRIPTABLE NS_IMETHOD GetMarkerMid(nsAString & aMarkerMid); \ NS_SCRIPTABLE NS_IMETHOD SetMarkerMid(const nsAString & aMarkerMid); \ NS_SCRIPTABLE NS_IMETHOD GetMarkerStart(nsAString & aMarkerStart); \ NS_SCRIPTABLE NS_IMETHOD SetMarkerStart(const nsAString & aMarkerStart); \ NS_SCRIPTABLE NS_IMETHOD GetMask(nsAString & aMask); \ NS_SCRIPTABLE NS_IMETHOD SetMask(const nsAString & aMask); \ NS_SCRIPTABLE NS_IMETHOD GetShapeRendering(nsAString & aShapeRendering); \ NS_SCRIPTABLE NS_IMETHOD SetShapeRendering(const nsAString & aShapeRendering); \ NS_SCRIPTABLE NS_IMETHOD GetStopColor(nsAString & aStopColor); \ NS_SCRIPTABLE NS_IMETHOD SetStopColor(const nsAString & aStopColor); \ NS_SCRIPTABLE NS_IMETHOD GetStopOpacity(nsAString & aStopOpacity); \ NS_SCRIPTABLE NS_IMETHOD SetStopOpacity(const nsAString & aStopOpacity); \ NS_SCRIPTABLE NS_IMETHOD GetStroke(nsAString & aStroke); \ NS_SCRIPTABLE NS_IMETHOD SetStroke(const nsAString & aStroke); \ NS_SCRIPTABLE NS_IMETHOD GetStrokeDasharray(nsAString & aStrokeDasharray); \ NS_SCRIPTABLE NS_IMETHOD SetStrokeDasharray(const nsAString & aStrokeDasharray); \ NS_SCRIPTABLE NS_IMETHOD GetStrokeDashoffset(nsAString & aStrokeDashoffset); \ NS_SCRIPTABLE NS_IMETHOD SetStrokeDashoffset(const nsAString & aStrokeDashoffset); \ NS_SCRIPTABLE NS_IMETHOD GetStrokeLinecap(nsAString & aStrokeLinecap); \ NS_SCRIPTABLE NS_IMETHOD SetStrokeLinecap(const nsAString & aStrokeLinecap); \ NS_SCRIPTABLE NS_IMETHOD GetStrokeLinejoin(nsAString & aStrokeLinejoin); \ NS_SCRIPTABLE NS_IMETHOD SetStrokeLinejoin(const nsAString & aStrokeLinejoin); \ NS_SCRIPTABLE NS_IMETHOD GetStrokeMiterlimit(nsAString & aStrokeMiterlimit); \ NS_SCRIPTABLE NS_IMETHOD SetStrokeMiterlimit(const nsAString & aStrokeMiterlimit); \ NS_SCRIPTABLE NS_IMETHOD GetStrokeOpacity(nsAString & aStrokeOpacity); \ NS_SCRIPTABLE NS_IMETHOD SetStrokeOpacity(const nsAString & aStrokeOpacity); \ NS_SCRIPTABLE NS_IMETHOD GetStrokeWidth(nsAString & aStrokeWidth); \ NS_SCRIPTABLE NS_IMETHOD SetStrokeWidth(const nsAString & aStrokeWidth); \ NS_SCRIPTABLE NS_IMETHOD GetTextAnchor(nsAString & aTextAnchor); \ NS_SCRIPTABLE NS_IMETHOD SetTextAnchor(const nsAString & aTextAnchor); \ NS_SCRIPTABLE NS_IMETHOD GetTextRendering(nsAString & aTextRendering); \ NS_SCRIPTABLE NS_IMETHOD SetTextRendering(const nsAString & aTextRendering); \ NS_SCRIPTABLE NS_IMETHOD GetVectorEffect(nsAString & aVectorEffect); \ NS_SCRIPTABLE NS_IMETHOD SetVectorEffect(const nsAString & aVectorEffect); \ NS_SCRIPTABLE NS_IMETHOD GetMozAppearance(nsAString & aMozAppearance); \ NS_SCRIPTABLE NS_IMETHOD SetMozAppearance(const nsAString & aMozAppearance); \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundClip(nsAString & aBackgroundClip); \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundClip(const nsAString & aBackgroundClip); \ NS_SCRIPTABLE NS_IMETHOD GetMozBackgroundInlinePolicy(nsAString & aMozBackgroundInlinePolicy); \ NS_SCRIPTABLE NS_IMETHOD SetMozBackgroundInlinePolicy(const nsAString & aMozBackgroundInlinePolicy); \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundOrigin(nsAString & aBackgroundOrigin); \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundOrigin(const nsAString & aBackgroundOrigin); \ NS_SCRIPTABLE NS_IMETHOD GetMozBinding(nsAString & aMozBinding); \ NS_SCRIPTABLE NS_IMETHOD SetMozBinding(const nsAString & aMozBinding); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderBottomColors(nsAString & aMozBorderBottomColors); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderBottomColors(const nsAString & aMozBorderBottomColors); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderLeftColors(nsAString & aMozBorderLeftColors); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderLeftColors(const nsAString & aMozBorderLeftColors); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderRightColors(nsAString & aMozBorderRightColors); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderRightColors(const nsAString & aMozBorderRightColors); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderTopColors(nsAString & aMozBorderTopColors); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderTopColors(const nsAString & aMozBorderTopColors); \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxAlign(nsAString & aMozBoxAlign); \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxAlign(const nsAString & aMozBoxAlign); \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxDirection(nsAString & aMozBoxDirection); \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxDirection(const nsAString & aMozBoxDirection); \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxFlex(nsAString & aMozBoxFlex); \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxFlex(const nsAString & aMozBoxFlex); \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxOrient(nsAString & aMozBoxOrient); \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxOrient(const nsAString & aMozBoxOrient); \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxOrdinalGroup(nsAString & aMozBoxOrdinalGroup); \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxOrdinalGroup(const nsAString & aMozBoxOrdinalGroup); \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxPack(nsAString & aMozBoxPack); \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxPack(const nsAString & aMozBoxPack); \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxSizing(nsAString & aMozBoxSizing); \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxSizing(const nsAString & aMozBoxSizing); \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnCount(nsAString & aMozColumnCount); \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnCount(const nsAString & aMozColumnCount); \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnWidth(nsAString & aMozColumnWidth); \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnWidth(const nsAString & aMozColumnWidth); \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnGap(nsAString & aMozColumnGap); \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnGap(const nsAString & aMozColumnGap); \ NS_SCRIPTABLE NS_IMETHOD GetMozFloatEdge(nsAString & aMozFloatEdge); \ NS_SCRIPTABLE NS_IMETHOD SetMozFloatEdge(const nsAString & aMozFloatEdge); \ NS_SCRIPTABLE NS_IMETHOD GetMozFontFeatureSettings(nsAString & aMozFontFeatureSettings); \ NS_SCRIPTABLE NS_IMETHOD SetMozFontFeatureSettings(const nsAString & aMozFontFeatureSettings); \ NS_SCRIPTABLE NS_IMETHOD GetMozFontLanguageOverride(nsAString & aMozFontLanguageOverride); \ NS_SCRIPTABLE NS_IMETHOD SetMozFontLanguageOverride(const nsAString & aMozFontLanguageOverride); \ NS_SCRIPTABLE NS_IMETHOD GetMozForceBrokenImageIcon(nsAString & aMozForceBrokenImageIcon); \ NS_SCRIPTABLE NS_IMETHOD SetMozForceBrokenImageIcon(const nsAString & aMozForceBrokenImageIcon); \ NS_SCRIPTABLE NS_IMETHOD GetMozImageRegion(nsAString & aMozImageRegion); \ NS_SCRIPTABLE NS_IMETHOD SetMozImageRegion(const nsAString & aMozImageRegion); \ NS_SCRIPTABLE NS_IMETHOD GetMozMarginEnd(nsAString & aMozMarginEnd); \ NS_SCRIPTABLE NS_IMETHOD SetMozMarginEnd(const nsAString & aMozMarginEnd); \ NS_SCRIPTABLE NS_IMETHOD GetMozMarginStart(nsAString & aMozMarginStart); \ NS_SCRIPTABLE NS_IMETHOD SetMozMarginStart(const nsAString & aMozMarginStart); \ NS_SCRIPTABLE NS_IMETHOD GetMozOrient(nsAString & aMozOrient); \ NS_SCRIPTABLE NS_IMETHOD SetMozOrient(const nsAString & aMozOrient); \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadius(nsAString & aMozOutlineRadius); \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadius(const nsAString & aMozOutlineRadius); \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusTopleft(nsAString & aMozOutlineRadiusTopleft); \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusTopleft(const nsAString & aMozOutlineRadiusTopleft); \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusTopright(nsAString & aMozOutlineRadiusTopright); \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusTopright(const nsAString & aMozOutlineRadiusTopright); \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusBottomleft(nsAString & aMozOutlineRadiusBottomleft); \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusBottomleft(const nsAString & aMozOutlineRadiusBottomleft); \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusBottomright(nsAString & aMozOutlineRadiusBottomright); \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusBottomright(const nsAString & aMozOutlineRadiusBottomright); \ NS_SCRIPTABLE NS_IMETHOD GetMozPaddingEnd(nsAString & aMozPaddingEnd); \ NS_SCRIPTABLE NS_IMETHOD SetMozPaddingEnd(const nsAString & aMozPaddingEnd); \ NS_SCRIPTABLE NS_IMETHOD GetMozPaddingStart(nsAString & aMozPaddingStart); \ NS_SCRIPTABLE NS_IMETHOD SetMozPaddingStart(const nsAString & aMozPaddingStart); \ NS_SCRIPTABLE NS_IMETHOD GetMozUserFocus(nsAString & aMozUserFocus); \ NS_SCRIPTABLE NS_IMETHOD SetMozUserFocus(const nsAString & aMozUserFocus); \ NS_SCRIPTABLE NS_IMETHOD GetMozUserInput(nsAString & aMozUserInput); \ NS_SCRIPTABLE NS_IMETHOD SetMozUserInput(const nsAString & aMozUserInput); \ NS_SCRIPTABLE NS_IMETHOD GetMozUserModify(nsAString & aMozUserModify); \ NS_SCRIPTABLE NS_IMETHOD SetMozUserModify(const nsAString & aMozUserModify); \ NS_SCRIPTABLE NS_IMETHOD GetMozUserSelect(nsAString & aMozUserSelect); \ NS_SCRIPTABLE NS_IMETHOD SetMozUserSelect(const nsAString & aMozUserSelect); \ NS_SCRIPTABLE NS_IMETHOD GetOpacity(nsAString & aOpacity); \ NS_SCRIPTABLE NS_IMETHOD SetOpacity(const nsAString & aOpacity); \ NS_SCRIPTABLE NS_IMETHOD GetOutlineOffset(nsAString & aOutlineOffset); \ NS_SCRIPTABLE NS_IMETHOD SetOutlineOffset(const nsAString & aOutlineOffset); \ NS_SCRIPTABLE NS_IMETHOD GetMozTextAlignLast(nsAString & aMozTextAlignLast); \ NS_SCRIPTABLE NS_IMETHOD SetMozTextAlignLast(const nsAString & aMozTextAlignLast); \ NS_SCRIPTABLE NS_IMETHOD GetOverflowX(nsAString & aOverflowX); \ NS_SCRIPTABLE NS_IMETHOD SetOverflowX(const nsAString & aOverflowX); \ NS_SCRIPTABLE NS_IMETHOD GetOverflowY(nsAString & aOverflowY); \ NS_SCRIPTABLE NS_IMETHOD SetOverflowY(const nsAString & aOverflowY); \ NS_SCRIPTABLE NS_IMETHOD GetImeMode(nsAString & aImeMode); \ NS_SCRIPTABLE NS_IMETHOD SetImeMode(const nsAString & aImeMode); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEnd(nsAString & aMozBorderEnd); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEnd(const nsAString & aMozBorderEnd); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndColor(nsAString & aMozBorderEndColor); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndColor(const nsAString & aMozBorderEndColor); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndStyle(nsAString & aMozBorderEndStyle); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndStyle(const nsAString & aMozBorderEndStyle); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndWidth(nsAString & aMozBorderEndWidth); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndWidth(const nsAString & aMozBorderEndWidth); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStart(nsAString & aMozBorderStart); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStart(const nsAString & aMozBorderStart); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartColor(nsAString & aMozBorderStartColor); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartColor(const nsAString & aMozBorderStartColor); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartStyle(nsAString & aMozBorderStartStyle); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartStyle(const nsAString & aMozBorderStartStyle); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartWidth(nsAString & aMozBorderStartWidth); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartWidth(const nsAString & aMozBorderStartWidth); \ NS_SCRIPTABLE NS_IMETHOD GetMozStackSizing(nsAString & aMozStackSizing); \ NS_SCRIPTABLE NS_IMETHOD SetMozStackSizing(const nsAString & aMozStackSizing); \ NS_SCRIPTABLE NS_IMETHOD GetBorderImage(nsAString & aBorderImage); \ NS_SCRIPTABLE NS_IMETHOD SetBorderImage(const nsAString & aBorderImage); \ NS_SCRIPTABLE NS_IMETHOD GetMozColumns(nsAString & aMozColumns); \ NS_SCRIPTABLE NS_IMETHOD SetMozColumns(const nsAString & aMozColumns); \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRule(nsAString & aMozColumnRule); \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRule(const nsAString & aMozColumnRule); \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleWidth(nsAString & aMozColumnRuleWidth); \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleWidth(const nsAString & aMozColumnRuleWidth); \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleStyle(nsAString & aMozColumnRuleStyle); \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleStyle(const nsAString & aMozColumnRuleStyle); \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleColor(nsAString & aMozColumnRuleColor); \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleColor(const nsAString & aMozColumnRuleColor); \ NS_SCRIPTABLE NS_IMETHOD GetWordBreak(nsAString & aWordBreak); \ NS_SCRIPTABLE NS_IMETHOD SetWordBreak(const nsAString & aWordBreak); \ NS_SCRIPTABLE NS_IMETHOD GetWordWrap(nsAString & aWordWrap); \ NS_SCRIPTABLE NS_IMETHOD SetWordWrap(const nsAString & aWordWrap); \ NS_SCRIPTABLE NS_IMETHOD GetMozHyphens(nsAString & aMozHyphens); \ NS_SCRIPTABLE NS_IMETHOD SetMozHyphens(const nsAString & aMozHyphens); \ NS_SCRIPTABLE NS_IMETHOD GetMozTransform(nsAString & aMozTransform); \ NS_SCRIPTABLE NS_IMETHOD SetMozTransform(const nsAString & aMozTransform); \ NS_SCRIPTABLE NS_IMETHOD GetMozTransformOrigin(nsAString & aMozTransformOrigin); \ NS_SCRIPTABLE NS_IMETHOD SetMozTransformOrigin(const nsAString & aMozTransformOrigin); \ NS_SCRIPTABLE NS_IMETHOD GetMozPerspective(nsAString & aMozPerspective); \ NS_SCRIPTABLE NS_IMETHOD SetMozPerspective(const nsAString & aMozPerspective); \ NS_SCRIPTABLE NS_IMETHOD GetMozPerspectiveOrigin(nsAString & aMozPerspectiveOrigin); \ NS_SCRIPTABLE NS_IMETHOD SetMozPerspectiveOrigin(const nsAString & aMozPerspectiveOrigin); \ NS_SCRIPTABLE NS_IMETHOD GetMozBackfaceVisibility(nsAString & aMozBackfaceVisibility); \ NS_SCRIPTABLE NS_IMETHOD SetMozBackfaceVisibility(const nsAString & aMozBackfaceVisibility); \ NS_SCRIPTABLE NS_IMETHOD GetMozTransformStyle(nsAString & aMozTransformStyle); \ NS_SCRIPTABLE NS_IMETHOD SetMozTransformStyle(const nsAString & aMozTransformStyle); \ NS_SCRIPTABLE NS_IMETHOD GetMozWindowShadow(nsAString & aMozWindowShadow); \ NS_SCRIPTABLE NS_IMETHOD SetMozWindowShadow(const nsAString & aMozWindowShadow); \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundSize(nsAString & aBackgroundSize); \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundSize(const nsAString & aBackgroundSize); \ NS_SCRIPTABLE NS_IMETHOD GetMozTextBlink(nsAString & aMozTextBlink); \ NS_SCRIPTABLE NS_IMETHOD SetMozTextBlink(const nsAString & aMozTextBlink); \ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationColor(nsAString & aMozTextDecorationColor); \ NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationColor(const nsAString & aMozTextDecorationColor); \ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationLine(nsAString & aMozTextDecorationLine); \ NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationLine(const nsAString & aMozTextDecorationLine); \ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationStyle(nsAString & aMozTextDecorationStyle); \ NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationStyle(const nsAString & aMozTextDecorationStyle); \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionProperty(nsAString & aMozTransitionProperty); \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionProperty(const nsAString & aMozTransitionProperty); \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionDuration(nsAString & aMozTransitionDuration); \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionDuration(const nsAString & aMozTransitionDuration); \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionDelay(nsAString & aMozTransitionDelay); \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionDelay(const nsAString & aMozTransitionDelay); \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionTimingFunction(nsAString & aMozTransitionTimingFunction); \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionTimingFunction(const nsAString & aMozTransitionTimingFunction); \ NS_SCRIPTABLE NS_IMETHOD GetMozTransition(nsAString & aMozTransition); \ NS_SCRIPTABLE NS_IMETHOD SetMozTransition(const nsAString & aMozTransition); \ NS_SCRIPTABLE NS_IMETHOD GetPointerEvents(nsAString & aPointerEvents); \ NS_SCRIPTABLE NS_IMETHOD SetPointerEvents(const nsAString & aPointerEvents); \ NS_SCRIPTABLE NS_IMETHOD GetMozTabSize(nsAString & aMozTabSize); \ NS_SCRIPTABLE NS_IMETHOD SetMozTabSize(const nsAString & aMozTabSize); \ NS_SCRIPTABLE NS_IMETHOD GetResize(nsAString & aResize); \ NS_SCRIPTABLE NS_IMETHOD SetResize(const nsAString & aResize); \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationName(nsAString & aMozAnimationName); \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationName(const nsAString & aMozAnimationName); \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDuration(nsAString & aMozAnimationDuration); \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDuration(const nsAString & aMozAnimationDuration); \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDelay(nsAString & aMozAnimationDelay); \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDelay(const nsAString & aMozAnimationDelay); \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationTimingFunction(nsAString & aMozAnimationTimingFunction); \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationTimingFunction(const nsAString & aMozAnimationTimingFunction); \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDirection(nsAString & aMozAnimationDirection); \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDirection(const nsAString & aMozAnimationDirection); \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationFillMode(nsAString & aMozAnimationFillMode); \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationFillMode(const nsAString & aMozAnimationFillMode); \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationIterationCount(nsAString & aMozAnimationIterationCount); \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationIterationCount(const nsAString & aMozAnimationIterationCount); \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationPlayState(nsAString & aMozAnimationPlayState); \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationPlayState(const nsAString & aMozAnimationPlayState); \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimation(nsAString & aMozAnimation); \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimation(const nsAString & aMozAnimation); \ NS_SCRIPTABLE NS_IMETHOD GetMozTextSizeAdjust(nsAString & aMozTextSizeAdjust); \ NS_SCRIPTABLE NS_IMETHOD SetMozTextSizeAdjust(const nsAString & aMozTextSizeAdjust); \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageSource(nsAString & aBorderImageSource); \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageSource(const nsAString & aBorderImageSource); \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageSlice(nsAString & aBorderImageSlice); \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageSlice(const nsAString & aBorderImageSlice); \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageWidth(nsAString & aBorderImageWidth); \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageWidth(const nsAString & aBorderImageWidth); \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageOutset(nsAString & aBorderImageOutset); \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageOutset(const nsAString & aBorderImageOutset); \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageRepeat(nsAString & aBorderImageRepeat); \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageRepeat(const nsAString & aBorderImageRepeat); \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderImage(nsAString & aMozBorderImage); \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderImage(const nsAString & aMozBorderImage); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIDOMCSS2PROPERTIES(_to) \ NS_SCRIPTABLE NS_IMETHOD GetBackground(nsAString & aBackground) { return _to GetBackground(aBackground); } \ NS_SCRIPTABLE NS_IMETHOD SetBackground(const nsAString & aBackground) { return _to SetBackground(aBackground); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundAttachment(nsAString & aBackgroundAttachment) { return _to GetBackgroundAttachment(aBackgroundAttachment); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundAttachment(const nsAString & aBackgroundAttachment) { return _to SetBackgroundAttachment(aBackgroundAttachment); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundColor(nsAString & aBackgroundColor) { return _to GetBackgroundColor(aBackgroundColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundColor(const nsAString & aBackgroundColor) { return _to SetBackgroundColor(aBackgroundColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundImage(nsAString & aBackgroundImage) { return _to GetBackgroundImage(aBackgroundImage); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundImage(const nsAString & aBackgroundImage) { return _to SetBackgroundImage(aBackgroundImage); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundPosition(nsAString & aBackgroundPosition) { return _to GetBackgroundPosition(aBackgroundPosition); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundPosition(const nsAString & aBackgroundPosition) { return _to SetBackgroundPosition(aBackgroundPosition); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundRepeat(nsAString & aBackgroundRepeat) { return _to GetBackgroundRepeat(aBackgroundRepeat); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundRepeat(const nsAString & aBackgroundRepeat) { return _to SetBackgroundRepeat(aBackgroundRepeat); } \ NS_SCRIPTABLE NS_IMETHOD GetBorder(nsAString & aBorder) { return _to GetBorder(aBorder); } \ NS_SCRIPTABLE NS_IMETHOD SetBorder(const nsAString & aBorder) { return _to SetBorder(aBorder); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderCollapse(nsAString & aBorderCollapse) { return _to GetBorderCollapse(aBorderCollapse); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderCollapse(const nsAString & aBorderCollapse) { return _to SetBorderCollapse(aBorderCollapse); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderColor(nsAString & aBorderColor) { return _to GetBorderColor(aBorderColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderColor(const nsAString & aBorderColor) { return _to SetBorderColor(aBorderColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderSpacing(nsAString & aBorderSpacing) { return _to GetBorderSpacing(aBorderSpacing); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderSpacing(const nsAString & aBorderSpacing) { return _to SetBorderSpacing(aBorderSpacing); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderStyle(nsAString & aBorderStyle) { return _to GetBorderStyle(aBorderStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderStyle(const nsAString & aBorderStyle) { return _to SetBorderStyle(aBorderStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTop(nsAString & aBorderTop) { return _to GetBorderTop(aBorderTop); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTop(const nsAString & aBorderTop) { return _to SetBorderTop(aBorderTop); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderRight(nsAString & aBorderRight) { return _to GetBorderRight(aBorderRight); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderRight(const nsAString & aBorderRight) { return _to SetBorderRight(aBorderRight); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottom(nsAString & aBorderBottom) { return _to GetBorderBottom(aBorderBottom); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottom(const nsAString & aBorderBottom) { return _to SetBorderBottom(aBorderBottom); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeft(nsAString & aBorderLeft) { return _to GetBorderLeft(aBorderLeft); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeft(const nsAString & aBorderLeft) { return _to SetBorderLeft(aBorderLeft); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopColor(nsAString & aBorderTopColor) { return _to GetBorderTopColor(aBorderTopColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopColor(const nsAString & aBorderTopColor) { return _to SetBorderTopColor(aBorderTopColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderRightColor(nsAString & aBorderRightColor) { return _to GetBorderRightColor(aBorderRightColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderRightColor(const nsAString & aBorderRightColor) { return _to SetBorderRightColor(aBorderRightColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomColor(nsAString & aBorderBottomColor) { return _to GetBorderBottomColor(aBorderBottomColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomColor(const nsAString & aBorderBottomColor) { return _to SetBorderBottomColor(aBorderBottomColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftColor(nsAString & aBorderLeftColor) { return _to GetBorderLeftColor(aBorderLeftColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeftColor(const nsAString & aBorderLeftColor) { return _to SetBorderLeftColor(aBorderLeftColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopStyle(nsAString & aBorderTopStyle) { return _to GetBorderTopStyle(aBorderTopStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopStyle(const nsAString & aBorderTopStyle) { return _to SetBorderTopStyle(aBorderTopStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderRightStyle(nsAString & aBorderRightStyle) { return _to GetBorderRightStyle(aBorderRightStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderRightStyle(const nsAString & aBorderRightStyle) { return _to SetBorderRightStyle(aBorderRightStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomStyle(nsAString & aBorderBottomStyle) { return _to GetBorderBottomStyle(aBorderBottomStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomStyle(const nsAString & aBorderBottomStyle) { return _to SetBorderBottomStyle(aBorderBottomStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftStyle(nsAString & aBorderLeftStyle) { return _to GetBorderLeftStyle(aBorderLeftStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeftStyle(const nsAString & aBorderLeftStyle) { return _to SetBorderLeftStyle(aBorderLeftStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopWidth(nsAString & aBorderTopWidth) { return _to GetBorderTopWidth(aBorderTopWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopWidth(const nsAString & aBorderTopWidth) { return _to SetBorderTopWidth(aBorderTopWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderRightWidth(nsAString & aBorderRightWidth) { return _to GetBorderRightWidth(aBorderRightWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderRightWidth(const nsAString & aBorderRightWidth) { return _to SetBorderRightWidth(aBorderRightWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomWidth(nsAString & aBorderBottomWidth) { return _to GetBorderBottomWidth(aBorderBottomWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomWidth(const nsAString & aBorderBottomWidth) { return _to SetBorderBottomWidth(aBorderBottomWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftWidth(nsAString & aBorderLeftWidth) { return _to GetBorderLeftWidth(aBorderLeftWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeftWidth(const nsAString & aBorderLeftWidth) { return _to SetBorderLeftWidth(aBorderLeftWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderWidth(nsAString & aBorderWidth) { return _to GetBorderWidth(aBorderWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderWidth(const nsAString & aBorderWidth) { return _to SetBorderWidth(aBorderWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderRadius(nsAString & aBorderRadius) { return _to GetBorderRadius(aBorderRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderRadius(const nsAString & aBorderRadius) { return _to SetBorderRadius(aBorderRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopLeftRadius(nsAString & aBorderTopLeftRadius) { return _to GetBorderTopLeftRadius(aBorderTopLeftRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopLeftRadius(const nsAString & aBorderTopLeftRadius) { return _to SetBorderTopLeftRadius(aBorderTopLeftRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopRightRadius(nsAString & aBorderTopRightRadius) { return _to GetBorderTopRightRadius(aBorderTopRightRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopRightRadius(const nsAString & aBorderTopRightRadius) { return _to SetBorderTopRightRadius(aBorderTopRightRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomLeftRadius(nsAString & aBorderBottomLeftRadius) { return _to GetBorderBottomLeftRadius(aBorderBottomLeftRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomLeftRadius(const nsAString & aBorderBottomLeftRadius) { return _to SetBorderBottomLeftRadius(aBorderBottomLeftRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomRightRadius(nsAString & aBorderBottomRightRadius) { return _to GetBorderBottomRightRadius(aBorderBottomRightRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomRightRadius(const nsAString & aBorderBottomRightRadius) { return _to SetBorderBottomRightRadius(aBorderBottomRightRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetBottom(nsAString & aBottom) { return _to GetBottom(aBottom); } \ NS_SCRIPTABLE NS_IMETHOD SetBottom(const nsAString & aBottom) { return _to SetBottom(aBottom); } \ NS_SCRIPTABLE NS_IMETHOD GetBoxShadow(nsAString & aBoxShadow) { return _to GetBoxShadow(aBoxShadow); } \ NS_SCRIPTABLE NS_IMETHOD SetBoxShadow(const nsAString & aBoxShadow) { return _to SetBoxShadow(aBoxShadow); } \ NS_SCRIPTABLE NS_IMETHOD GetCaptionSide(nsAString & aCaptionSide) { return _to GetCaptionSide(aCaptionSide); } \ NS_SCRIPTABLE NS_IMETHOD SetCaptionSide(const nsAString & aCaptionSide) { return _to SetCaptionSide(aCaptionSide); } \ NS_SCRIPTABLE NS_IMETHOD GetClear(nsAString & aClear) { return _to GetClear(aClear); } \ NS_SCRIPTABLE NS_IMETHOD SetClear(const nsAString & aClear) { return _to SetClear(aClear); } \ NS_SCRIPTABLE NS_IMETHOD GetClip(nsAString & aClip) { return _to GetClip(aClip); } \ NS_SCRIPTABLE NS_IMETHOD SetClip(const nsAString & aClip) { return _to SetClip(aClip); } \ NS_SCRIPTABLE NS_IMETHOD GetColor(nsAString & aColor) { return _to GetColor(aColor); } \ NS_SCRIPTABLE NS_IMETHOD SetColor(const nsAString & aColor) { return _to SetColor(aColor); } \ NS_SCRIPTABLE NS_IMETHOD GetContent(nsAString & aContent) { return _to GetContent(aContent); } \ NS_SCRIPTABLE NS_IMETHOD SetContent(const nsAString & aContent) { return _to SetContent(aContent); } \ NS_SCRIPTABLE NS_IMETHOD GetCounterIncrement(nsAString & aCounterIncrement) { return _to GetCounterIncrement(aCounterIncrement); } \ NS_SCRIPTABLE NS_IMETHOD SetCounterIncrement(const nsAString & aCounterIncrement) { return _to SetCounterIncrement(aCounterIncrement); } \ NS_SCRIPTABLE NS_IMETHOD GetCounterReset(nsAString & aCounterReset) { return _to GetCounterReset(aCounterReset); } \ NS_SCRIPTABLE NS_IMETHOD SetCounterReset(const nsAString & aCounterReset) { return _to SetCounterReset(aCounterReset); } \ NS_SCRIPTABLE NS_IMETHOD GetCursor(nsAString & aCursor) { return _to GetCursor(aCursor); } \ NS_SCRIPTABLE NS_IMETHOD SetCursor(const nsAString & aCursor) { return _to SetCursor(aCursor); } \ NS_SCRIPTABLE NS_IMETHOD GetDirection(nsAString & aDirection) { return _to GetDirection(aDirection); } \ NS_SCRIPTABLE NS_IMETHOD SetDirection(const nsAString & aDirection) { return _to SetDirection(aDirection); } \ NS_SCRIPTABLE NS_IMETHOD GetDisplay(nsAString & aDisplay) { return _to GetDisplay(aDisplay); } \ NS_SCRIPTABLE NS_IMETHOD SetDisplay(const nsAString & aDisplay) { return _to SetDisplay(aDisplay); } \ NS_SCRIPTABLE NS_IMETHOD GetEmptyCells(nsAString & aEmptyCells) { return _to GetEmptyCells(aEmptyCells); } \ NS_SCRIPTABLE NS_IMETHOD SetEmptyCells(const nsAString & aEmptyCells) { return _to SetEmptyCells(aEmptyCells); } \ NS_SCRIPTABLE NS_IMETHOD GetCssFloat(nsAString & aCssFloat) { return _to GetCssFloat(aCssFloat); } \ NS_SCRIPTABLE NS_IMETHOD SetCssFloat(const nsAString & aCssFloat) { return _to SetCssFloat(aCssFloat); } \ NS_SCRIPTABLE NS_IMETHOD GetFont(nsAString & aFont) { return _to GetFont(aFont); } \ NS_SCRIPTABLE NS_IMETHOD SetFont(const nsAString & aFont) { return _to SetFont(aFont); } \ NS_SCRIPTABLE NS_IMETHOD GetFontFamily(nsAString & aFontFamily) { return _to GetFontFamily(aFontFamily); } \ NS_SCRIPTABLE NS_IMETHOD SetFontFamily(const nsAString & aFontFamily) { return _to SetFontFamily(aFontFamily); } \ NS_SCRIPTABLE NS_IMETHOD GetFontSize(nsAString & aFontSize) { return _to GetFontSize(aFontSize); } \ NS_SCRIPTABLE NS_IMETHOD SetFontSize(const nsAString & aFontSize) { return _to SetFontSize(aFontSize); } \ NS_SCRIPTABLE NS_IMETHOD GetFontSizeAdjust(nsAString & aFontSizeAdjust) { return _to GetFontSizeAdjust(aFontSizeAdjust); } \ NS_SCRIPTABLE NS_IMETHOD SetFontSizeAdjust(const nsAString & aFontSizeAdjust) { return _to SetFontSizeAdjust(aFontSizeAdjust); } \ NS_SCRIPTABLE NS_IMETHOD GetFontStretch(nsAString & aFontStretch) { return _to GetFontStretch(aFontStretch); } \ NS_SCRIPTABLE NS_IMETHOD SetFontStretch(const nsAString & aFontStretch) { return _to SetFontStretch(aFontStretch); } \ NS_SCRIPTABLE NS_IMETHOD GetFontStyle(nsAString & aFontStyle) { return _to GetFontStyle(aFontStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetFontStyle(const nsAString & aFontStyle) { return _to SetFontStyle(aFontStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetFontVariant(nsAString & aFontVariant) { return _to GetFontVariant(aFontVariant); } \ NS_SCRIPTABLE NS_IMETHOD SetFontVariant(const nsAString & aFontVariant) { return _to SetFontVariant(aFontVariant); } \ NS_SCRIPTABLE NS_IMETHOD GetFontWeight(nsAString & aFontWeight) { return _to GetFontWeight(aFontWeight); } \ NS_SCRIPTABLE NS_IMETHOD SetFontWeight(const nsAString & aFontWeight) { return _to SetFontWeight(aFontWeight); } \ NS_SCRIPTABLE NS_IMETHOD GetHeight(nsAString & aHeight) { return _to GetHeight(aHeight); } \ NS_SCRIPTABLE NS_IMETHOD SetHeight(const nsAString & aHeight) { return _to SetHeight(aHeight); } \ NS_SCRIPTABLE NS_IMETHOD GetLeft(nsAString & aLeft) { return _to GetLeft(aLeft); } \ NS_SCRIPTABLE NS_IMETHOD SetLeft(const nsAString & aLeft) { return _to SetLeft(aLeft); } \ NS_SCRIPTABLE NS_IMETHOD GetLetterSpacing(nsAString & aLetterSpacing) { return _to GetLetterSpacing(aLetterSpacing); } \ NS_SCRIPTABLE NS_IMETHOD SetLetterSpacing(const nsAString & aLetterSpacing) { return _to SetLetterSpacing(aLetterSpacing); } \ NS_SCRIPTABLE NS_IMETHOD GetLineHeight(nsAString & aLineHeight) { return _to GetLineHeight(aLineHeight); } \ NS_SCRIPTABLE NS_IMETHOD SetLineHeight(const nsAString & aLineHeight) { return _to SetLineHeight(aLineHeight); } \ NS_SCRIPTABLE NS_IMETHOD GetListStyle(nsAString & aListStyle) { return _to GetListStyle(aListStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetListStyle(const nsAString & aListStyle) { return _to SetListStyle(aListStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetListStyleImage(nsAString & aListStyleImage) { return _to GetListStyleImage(aListStyleImage); } \ NS_SCRIPTABLE NS_IMETHOD SetListStyleImage(const nsAString & aListStyleImage) { return _to SetListStyleImage(aListStyleImage); } \ NS_SCRIPTABLE NS_IMETHOD GetListStylePosition(nsAString & aListStylePosition) { return _to GetListStylePosition(aListStylePosition); } \ NS_SCRIPTABLE NS_IMETHOD SetListStylePosition(const nsAString & aListStylePosition) { return _to SetListStylePosition(aListStylePosition); } \ NS_SCRIPTABLE NS_IMETHOD GetListStyleType(nsAString & aListStyleType) { return _to GetListStyleType(aListStyleType); } \ NS_SCRIPTABLE NS_IMETHOD SetListStyleType(const nsAString & aListStyleType) { return _to SetListStyleType(aListStyleType); } \ NS_SCRIPTABLE NS_IMETHOD GetMargin(nsAString & aMargin) { return _to GetMargin(aMargin); } \ NS_SCRIPTABLE NS_IMETHOD SetMargin(const nsAString & aMargin) { return _to SetMargin(aMargin); } \ NS_SCRIPTABLE NS_IMETHOD GetMarginTop(nsAString & aMarginTop) { return _to GetMarginTop(aMarginTop); } \ NS_SCRIPTABLE NS_IMETHOD SetMarginTop(const nsAString & aMarginTop) { return _to SetMarginTop(aMarginTop); } \ NS_SCRIPTABLE NS_IMETHOD GetMarginRight(nsAString & aMarginRight) { return _to GetMarginRight(aMarginRight); } \ NS_SCRIPTABLE NS_IMETHOD SetMarginRight(const nsAString & aMarginRight) { return _to SetMarginRight(aMarginRight); } \ NS_SCRIPTABLE NS_IMETHOD GetMarginBottom(nsAString & aMarginBottom) { return _to GetMarginBottom(aMarginBottom); } \ NS_SCRIPTABLE NS_IMETHOD SetMarginBottom(const nsAString & aMarginBottom) { return _to SetMarginBottom(aMarginBottom); } \ NS_SCRIPTABLE NS_IMETHOD GetMarginLeft(nsAString & aMarginLeft) { return _to GetMarginLeft(aMarginLeft); } \ NS_SCRIPTABLE NS_IMETHOD SetMarginLeft(const nsAString & aMarginLeft) { return _to SetMarginLeft(aMarginLeft); } \ NS_SCRIPTABLE NS_IMETHOD GetMarkerOffset(nsAString & aMarkerOffset) { return _to GetMarkerOffset(aMarkerOffset); } \ NS_SCRIPTABLE NS_IMETHOD SetMarkerOffset(const nsAString & aMarkerOffset) { return _to SetMarkerOffset(aMarkerOffset); } \ NS_SCRIPTABLE NS_IMETHOD GetMarks(nsAString & aMarks) { return _to GetMarks(aMarks); } \ NS_SCRIPTABLE NS_IMETHOD SetMarks(const nsAString & aMarks) { return _to SetMarks(aMarks); } \ NS_SCRIPTABLE NS_IMETHOD GetMaxHeight(nsAString & aMaxHeight) { return _to GetMaxHeight(aMaxHeight); } \ NS_SCRIPTABLE NS_IMETHOD SetMaxHeight(const nsAString & aMaxHeight) { return _to SetMaxHeight(aMaxHeight); } \ NS_SCRIPTABLE NS_IMETHOD GetMaxWidth(nsAString & aMaxWidth) { return _to GetMaxWidth(aMaxWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMaxWidth(const nsAString & aMaxWidth) { return _to SetMaxWidth(aMaxWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetMinHeight(nsAString & aMinHeight) { return _to GetMinHeight(aMinHeight); } \ NS_SCRIPTABLE NS_IMETHOD SetMinHeight(const nsAString & aMinHeight) { return _to SetMinHeight(aMinHeight); } \ NS_SCRIPTABLE NS_IMETHOD GetMinWidth(nsAString & aMinWidth) { return _to GetMinWidth(aMinWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMinWidth(const nsAString & aMinWidth) { return _to SetMinWidth(aMinWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetOrphans(nsAString & aOrphans) { return _to GetOrphans(aOrphans); } \ NS_SCRIPTABLE NS_IMETHOD SetOrphans(const nsAString & aOrphans) { return _to SetOrphans(aOrphans); } \ NS_SCRIPTABLE NS_IMETHOD GetOutline(nsAString & aOutline) { return _to GetOutline(aOutline); } \ NS_SCRIPTABLE NS_IMETHOD SetOutline(const nsAString & aOutline) { return _to SetOutline(aOutline); } \ NS_SCRIPTABLE NS_IMETHOD GetOutlineColor(nsAString & aOutlineColor) { return _to GetOutlineColor(aOutlineColor); } \ NS_SCRIPTABLE NS_IMETHOD SetOutlineColor(const nsAString & aOutlineColor) { return _to SetOutlineColor(aOutlineColor); } \ NS_SCRIPTABLE NS_IMETHOD GetOutlineStyle(nsAString & aOutlineStyle) { return _to GetOutlineStyle(aOutlineStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetOutlineStyle(const nsAString & aOutlineStyle) { return _to SetOutlineStyle(aOutlineStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetOutlineWidth(nsAString & aOutlineWidth) { return _to GetOutlineWidth(aOutlineWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetOutlineWidth(const nsAString & aOutlineWidth) { return _to SetOutlineWidth(aOutlineWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetOverflow(nsAString & aOverflow) { return _to GetOverflow(aOverflow); } \ NS_SCRIPTABLE NS_IMETHOD SetOverflow(const nsAString & aOverflow) { return _to SetOverflow(aOverflow); } \ NS_SCRIPTABLE NS_IMETHOD GetPadding(nsAString & aPadding) { return _to GetPadding(aPadding); } \ NS_SCRIPTABLE NS_IMETHOD SetPadding(const nsAString & aPadding) { return _to SetPadding(aPadding); } \ NS_SCRIPTABLE NS_IMETHOD GetPaddingTop(nsAString & aPaddingTop) { return _to GetPaddingTop(aPaddingTop); } \ NS_SCRIPTABLE NS_IMETHOD SetPaddingTop(const nsAString & aPaddingTop) { return _to SetPaddingTop(aPaddingTop); } \ NS_SCRIPTABLE NS_IMETHOD GetPaddingRight(nsAString & aPaddingRight) { return _to GetPaddingRight(aPaddingRight); } \ NS_SCRIPTABLE NS_IMETHOD SetPaddingRight(const nsAString & aPaddingRight) { return _to SetPaddingRight(aPaddingRight); } \ NS_SCRIPTABLE NS_IMETHOD GetPaddingBottom(nsAString & aPaddingBottom) { return _to GetPaddingBottom(aPaddingBottom); } \ NS_SCRIPTABLE NS_IMETHOD SetPaddingBottom(const nsAString & aPaddingBottom) { return _to SetPaddingBottom(aPaddingBottom); } \ NS_SCRIPTABLE NS_IMETHOD GetPaddingLeft(nsAString & aPaddingLeft) { return _to GetPaddingLeft(aPaddingLeft); } \ NS_SCRIPTABLE NS_IMETHOD SetPaddingLeft(const nsAString & aPaddingLeft) { return _to SetPaddingLeft(aPaddingLeft); } \ NS_SCRIPTABLE NS_IMETHOD GetPage(nsAString & aPage) { return _to GetPage(aPage); } \ NS_SCRIPTABLE NS_IMETHOD SetPage(const nsAString & aPage) { return _to SetPage(aPage); } \ NS_SCRIPTABLE NS_IMETHOD GetPageBreakAfter(nsAString & aPageBreakAfter) { return _to GetPageBreakAfter(aPageBreakAfter); } \ NS_SCRIPTABLE NS_IMETHOD SetPageBreakAfter(const nsAString & aPageBreakAfter) { return _to SetPageBreakAfter(aPageBreakAfter); } \ NS_SCRIPTABLE NS_IMETHOD GetPageBreakBefore(nsAString & aPageBreakBefore) { return _to GetPageBreakBefore(aPageBreakBefore); } \ NS_SCRIPTABLE NS_IMETHOD SetPageBreakBefore(const nsAString & aPageBreakBefore) { return _to SetPageBreakBefore(aPageBreakBefore); } \ NS_SCRIPTABLE NS_IMETHOD GetPageBreakInside(nsAString & aPageBreakInside) { return _to GetPageBreakInside(aPageBreakInside); } \ NS_SCRIPTABLE NS_IMETHOD SetPageBreakInside(const nsAString & aPageBreakInside) { return _to SetPageBreakInside(aPageBreakInside); } \ NS_SCRIPTABLE NS_IMETHOD GetPosition(nsAString & aPosition) { return _to GetPosition(aPosition); } \ NS_SCRIPTABLE NS_IMETHOD SetPosition(const nsAString & aPosition) { return _to SetPosition(aPosition); } \ NS_SCRIPTABLE NS_IMETHOD GetQuotes(nsAString & aQuotes) { return _to GetQuotes(aQuotes); } \ NS_SCRIPTABLE NS_IMETHOD SetQuotes(const nsAString & aQuotes) { return _to SetQuotes(aQuotes); } \ NS_SCRIPTABLE NS_IMETHOD GetRight(nsAString & aRight) { return _to GetRight(aRight); } \ NS_SCRIPTABLE NS_IMETHOD SetRight(const nsAString & aRight) { return _to SetRight(aRight); } \ NS_SCRIPTABLE NS_IMETHOD GetSize(nsAString & aSize) { return _to GetSize(aSize); } \ NS_SCRIPTABLE NS_IMETHOD SetSize(const nsAString & aSize) { return _to SetSize(aSize); } \ NS_SCRIPTABLE NS_IMETHOD GetTableLayout(nsAString & aTableLayout) { return _to GetTableLayout(aTableLayout); } \ NS_SCRIPTABLE NS_IMETHOD SetTableLayout(const nsAString & aTableLayout) { return _to SetTableLayout(aTableLayout); } \ NS_SCRIPTABLE NS_IMETHOD GetTextAlign(nsAString & aTextAlign) { return _to GetTextAlign(aTextAlign); } \ NS_SCRIPTABLE NS_IMETHOD SetTextAlign(const nsAString & aTextAlign) { return _to SetTextAlign(aTextAlign); } \ NS_SCRIPTABLE NS_IMETHOD GetTextDecoration(nsAString & aTextDecoration) { return _to GetTextDecoration(aTextDecoration); } \ NS_SCRIPTABLE NS_IMETHOD SetTextDecoration(const nsAString & aTextDecoration) { return _to SetTextDecoration(aTextDecoration); } \ NS_SCRIPTABLE NS_IMETHOD GetTextIndent(nsAString & aTextIndent) { return _to GetTextIndent(aTextIndent); } \ NS_SCRIPTABLE NS_IMETHOD SetTextIndent(const nsAString & aTextIndent) { return _to SetTextIndent(aTextIndent); } \ NS_SCRIPTABLE NS_IMETHOD GetTextOverflow(nsAString & aTextOverflow) { return _to GetTextOverflow(aTextOverflow); } \ NS_SCRIPTABLE NS_IMETHOD SetTextOverflow(const nsAString & aTextOverflow) { return _to SetTextOverflow(aTextOverflow); } \ NS_SCRIPTABLE NS_IMETHOD GetTextShadow(nsAString & aTextShadow) { return _to GetTextShadow(aTextShadow); } \ NS_SCRIPTABLE NS_IMETHOD SetTextShadow(const nsAString & aTextShadow) { return _to SetTextShadow(aTextShadow); } \ NS_SCRIPTABLE NS_IMETHOD GetTextTransform(nsAString & aTextTransform) { return _to GetTextTransform(aTextTransform); } \ NS_SCRIPTABLE NS_IMETHOD SetTextTransform(const nsAString & aTextTransform) { return _to SetTextTransform(aTextTransform); } \ NS_SCRIPTABLE NS_IMETHOD GetTop(nsAString & aTop) { return _to GetTop(aTop); } \ NS_SCRIPTABLE NS_IMETHOD SetTop(const nsAString & aTop) { return _to SetTop(aTop); } \ NS_SCRIPTABLE NS_IMETHOD GetUnicodeBidi(nsAString & aUnicodeBidi) { return _to GetUnicodeBidi(aUnicodeBidi); } \ NS_SCRIPTABLE NS_IMETHOD SetUnicodeBidi(const nsAString & aUnicodeBidi) { return _to SetUnicodeBidi(aUnicodeBidi); } \ NS_SCRIPTABLE NS_IMETHOD GetVerticalAlign(nsAString & aVerticalAlign) { return _to GetVerticalAlign(aVerticalAlign); } \ NS_SCRIPTABLE NS_IMETHOD SetVerticalAlign(const nsAString & aVerticalAlign) { return _to SetVerticalAlign(aVerticalAlign); } \ NS_SCRIPTABLE NS_IMETHOD GetVisibility(nsAString & aVisibility) { return _to GetVisibility(aVisibility); } \ NS_SCRIPTABLE NS_IMETHOD SetVisibility(const nsAString & aVisibility) { return _to SetVisibility(aVisibility); } \ NS_SCRIPTABLE NS_IMETHOD GetWhiteSpace(nsAString & aWhiteSpace) { return _to GetWhiteSpace(aWhiteSpace); } \ NS_SCRIPTABLE NS_IMETHOD SetWhiteSpace(const nsAString & aWhiteSpace) { return _to SetWhiteSpace(aWhiteSpace); } \ NS_SCRIPTABLE NS_IMETHOD GetWidows(nsAString & aWidows) { return _to GetWidows(aWidows); } \ NS_SCRIPTABLE NS_IMETHOD SetWidows(const nsAString & aWidows) { return _to SetWidows(aWidows); } \ NS_SCRIPTABLE NS_IMETHOD GetWidth(nsAString & aWidth) { return _to GetWidth(aWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetWidth(const nsAString & aWidth) { return _to SetWidth(aWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetWordSpacing(nsAString & aWordSpacing) { return _to GetWordSpacing(aWordSpacing); } \ NS_SCRIPTABLE NS_IMETHOD SetWordSpacing(const nsAString & aWordSpacing) { return _to SetWordSpacing(aWordSpacing); } \ NS_SCRIPTABLE NS_IMETHOD GetZIndex(nsAString & aZIndex) { return _to GetZIndex(aZIndex); } \ NS_SCRIPTABLE NS_IMETHOD SetZIndex(const nsAString & aZIndex) { return _to SetZIndex(aZIndex); } \ NS_SCRIPTABLE NS_IMETHOD GetClipPath(nsAString & aClipPath) { return _to GetClipPath(aClipPath); } \ NS_SCRIPTABLE NS_IMETHOD SetClipPath(const nsAString & aClipPath) { return _to SetClipPath(aClipPath); } \ NS_SCRIPTABLE NS_IMETHOD GetClipRule(nsAString & aClipRule) { return _to GetClipRule(aClipRule); } \ NS_SCRIPTABLE NS_IMETHOD SetClipRule(const nsAString & aClipRule) { return _to SetClipRule(aClipRule); } \ NS_SCRIPTABLE NS_IMETHOD GetColorInterpolation(nsAString & aColorInterpolation) { return _to GetColorInterpolation(aColorInterpolation); } \ NS_SCRIPTABLE NS_IMETHOD SetColorInterpolation(const nsAString & aColorInterpolation) { return _to SetColorInterpolation(aColorInterpolation); } \ NS_SCRIPTABLE NS_IMETHOD GetColorInterpolationFilters(nsAString & aColorInterpolationFilters) { return _to GetColorInterpolationFilters(aColorInterpolationFilters); } \ NS_SCRIPTABLE NS_IMETHOD SetColorInterpolationFilters(const nsAString & aColorInterpolationFilters) { return _to SetColorInterpolationFilters(aColorInterpolationFilters); } \ NS_SCRIPTABLE NS_IMETHOD GetDominantBaseline(nsAString & aDominantBaseline) { return _to GetDominantBaseline(aDominantBaseline); } \ NS_SCRIPTABLE NS_IMETHOD SetDominantBaseline(const nsAString & aDominantBaseline) { return _to SetDominantBaseline(aDominantBaseline); } \ NS_SCRIPTABLE NS_IMETHOD GetFill(nsAString & aFill) { return _to GetFill(aFill); } \ NS_SCRIPTABLE NS_IMETHOD SetFill(const nsAString & aFill) { return _to SetFill(aFill); } \ NS_SCRIPTABLE NS_IMETHOD GetFillOpacity(nsAString & aFillOpacity) { return _to GetFillOpacity(aFillOpacity); } \ NS_SCRIPTABLE NS_IMETHOD SetFillOpacity(const nsAString & aFillOpacity) { return _to SetFillOpacity(aFillOpacity); } \ NS_SCRIPTABLE NS_IMETHOD GetFillRule(nsAString & aFillRule) { return _to GetFillRule(aFillRule); } \ NS_SCRIPTABLE NS_IMETHOD SetFillRule(const nsAString & aFillRule) { return _to SetFillRule(aFillRule); } \ NS_SCRIPTABLE NS_IMETHOD GetFilter(nsAString & aFilter) { return _to GetFilter(aFilter); } \ NS_SCRIPTABLE NS_IMETHOD SetFilter(const nsAString & aFilter) { return _to SetFilter(aFilter); } \ NS_SCRIPTABLE NS_IMETHOD GetFloodColor(nsAString & aFloodColor) { return _to GetFloodColor(aFloodColor); } \ NS_SCRIPTABLE NS_IMETHOD SetFloodColor(const nsAString & aFloodColor) { return _to SetFloodColor(aFloodColor); } \ NS_SCRIPTABLE NS_IMETHOD GetFloodOpacity(nsAString & aFloodOpacity) { return _to GetFloodOpacity(aFloodOpacity); } \ NS_SCRIPTABLE NS_IMETHOD SetFloodOpacity(const nsAString & aFloodOpacity) { return _to SetFloodOpacity(aFloodOpacity); } \ NS_SCRIPTABLE NS_IMETHOD GetImageRendering(nsAString & aImageRendering) { return _to GetImageRendering(aImageRendering); } \ NS_SCRIPTABLE NS_IMETHOD SetImageRendering(const nsAString & aImageRendering) { return _to SetImageRendering(aImageRendering); } \ NS_SCRIPTABLE NS_IMETHOD GetLightingColor(nsAString & aLightingColor) { return _to GetLightingColor(aLightingColor); } \ NS_SCRIPTABLE NS_IMETHOD SetLightingColor(const nsAString & aLightingColor) { return _to SetLightingColor(aLightingColor); } \ NS_SCRIPTABLE NS_IMETHOD GetMarker(nsAString & aMarker) { return _to GetMarker(aMarker); } \ NS_SCRIPTABLE NS_IMETHOD SetMarker(const nsAString & aMarker) { return _to SetMarker(aMarker); } \ NS_SCRIPTABLE NS_IMETHOD GetMarkerEnd(nsAString & aMarkerEnd) { return _to GetMarkerEnd(aMarkerEnd); } \ NS_SCRIPTABLE NS_IMETHOD SetMarkerEnd(const nsAString & aMarkerEnd) { return _to SetMarkerEnd(aMarkerEnd); } \ NS_SCRIPTABLE NS_IMETHOD GetMarkerMid(nsAString & aMarkerMid) { return _to GetMarkerMid(aMarkerMid); } \ NS_SCRIPTABLE NS_IMETHOD SetMarkerMid(const nsAString & aMarkerMid) { return _to SetMarkerMid(aMarkerMid); } \ NS_SCRIPTABLE NS_IMETHOD GetMarkerStart(nsAString & aMarkerStart) { return _to GetMarkerStart(aMarkerStart); } \ NS_SCRIPTABLE NS_IMETHOD SetMarkerStart(const nsAString & aMarkerStart) { return _to SetMarkerStart(aMarkerStart); } \ NS_SCRIPTABLE NS_IMETHOD GetMask(nsAString & aMask) { return _to GetMask(aMask); } \ NS_SCRIPTABLE NS_IMETHOD SetMask(const nsAString & aMask) { return _to SetMask(aMask); } \ NS_SCRIPTABLE NS_IMETHOD GetShapeRendering(nsAString & aShapeRendering) { return _to GetShapeRendering(aShapeRendering); } \ NS_SCRIPTABLE NS_IMETHOD SetShapeRendering(const nsAString & aShapeRendering) { return _to SetShapeRendering(aShapeRendering); } \ NS_SCRIPTABLE NS_IMETHOD GetStopColor(nsAString & aStopColor) { return _to GetStopColor(aStopColor); } \ NS_SCRIPTABLE NS_IMETHOD SetStopColor(const nsAString & aStopColor) { return _to SetStopColor(aStopColor); } \ NS_SCRIPTABLE NS_IMETHOD GetStopOpacity(nsAString & aStopOpacity) { return _to GetStopOpacity(aStopOpacity); } \ NS_SCRIPTABLE NS_IMETHOD SetStopOpacity(const nsAString & aStopOpacity) { return _to SetStopOpacity(aStopOpacity); } \ NS_SCRIPTABLE NS_IMETHOD GetStroke(nsAString & aStroke) { return _to GetStroke(aStroke); } \ NS_SCRIPTABLE NS_IMETHOD SetStroke(const nsAString & aStroke) { return _to SetStroke(aStroke); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeDasharray(nsAString & aStrokeDasharray) { return _to GetStrokeDasharray(aStrokeDasharray); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeDasharray(const nsAString & aStrokeDasharray) { return _to SetStrokeDasharray(aStrokeDasharray); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeDashoffset(nsAString & aStrokeDashoffset) { return _to GetStrokeDashoffset(aStrokeDashoffset); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeDashoffset(const nsAString & aStrokeDashoffset) { return _to SetStrokeDashoffset(aStrokeDashoffset); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeLinecap(nsAString & aStrokeLinecap) { return _to GetStrokeLinecap(aStrokeLinecap); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeLinecap(const nsAString & aStrokeLinecap) { return _to SetStrokeLinecap(aStrokeLinecap); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeLinejoin(nsAString & aStrokeLinejoin) { return _to GetStrokeLinejoin(aStrokeLinejoin); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeLinejoin(const nsAString & aStrokeLinejoin) { return _to SetStrokeLinejoin(aStrokeLinejoin); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeMiterlimit(nsAString & aStrokeMiterlimit) { return _to GetStrokeMiterlimit(aStrokeMiterlimit); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeMiterlimit(const nsAString & aStrokeMiterlimit) { return _to SetStrokeMiterlimit(aStrokeMiterlimit); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeOpacity(nsAString & aStrokeOpacity) { return _to GetStrokeOpacity(aStrokeOpacity); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeOpacity(const nsAString & aStrokeOpacity) { return _to SetStrokeOpacity(aStrokeOpacity); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeWidth(nsAString & aStrokeWidth) { return _to GetStrokeWidth(aStrokeWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeWidth(const nsAString & aStrokeWidth) { return _to SetStrokeWidth(aStrokeWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetTextAnchor(nsAString & aTextAnchor) { return _to GetTextAnchor(aTextAnchor); } \ NS_SCRIPTABLE NS_IMETHOD SetTextAnchor(const nsAString & aTextAnchor) { return _to SetTextAnchor(aTextAnchor); } \ NS_SCRIPTABLE NS_IMETHOD GetTextRendering(nsAString & aTextRendering) { return _to GetTextRendering(aTextRendering); } \ NS_SCRIPTABLE NS_IMETHOD SetTextRendering(const nsAString & aTextRendering) { return _to SetTextRendering(aTextRendering); } \ NS_SCRIPTABLE NS_IMETHOD GetVectorEffect(nsAString & aVectorEffect) { return _to GetVectorEffect(aVectorEffect); } \ NS_SCRIPTABLE NS_IMETHOD SetVectorEffect(const nsAString & aVectorEffect) { return _to SetVectorEffect(aVectorEffect); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAppearance(nsAString & aMozAppearance) { return _to GetMozAppearance(aMozAppearance); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAppearance(const nsAString & aMozAppearance) { return _to SetMozAppearance(aMozAppearance); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundClip(nsAString & aBackgroundClip) { return _to GetBackgroundClip(aBackgroundClip); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundClip(const nsAString & aBackgroundClip) { return _to SetBackgroundClip(aBackgroundClip); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBackgroundInlinePolicy(nsAString & aMozBackgroundInlinePolicy) { return _to GetMozBackgroundInlinePolicy(aMozBackgroundInlinePolicy); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBackgroundInlinePolicy(const nsAString & aMozBackgroundInlinePolicy) { return _to SetMozBackgroundInlinePolicy(aMozBackgroundInlinePolicy); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundOrigin(nsAString & aBackgroundOrigin) { return _to GetBackgroundOrigin(aBackgroundOrigin); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundOrigin(const nsAString & aBackgroundOrigin) { return _to SetBackgroundOrigin(aBackgroundOrigin); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBinding(nsAString & aMozBinding) { return _to GetMozBinding(aMozBinding); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBinding(const nsAString & aMozBinding) { return _to SetMozBinding(aMozBinding); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderBottomColors(nsAString & aMozBorderBottomColors) { return _to GetMozBorderBottomColors(aMozBorderBottomColors); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderBottomColors(const nsAString & aMozBorderBottomColors) { return _to SetMozBorderBottomColors(aMozBorderBottomColors); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderLeftColors(nsAString & aMozBorderLeftColors) { return _to GetMozBorderLeftColors(aMozBorderLeftColors); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderLeftColors(const nsAString & aMozBorderLeftColors) { return _to SetMozBorderLeftColors(aMozBorderLeftColors); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderRightColors(nsAString & aMozBorderRightColors) { return _to GetMozBorderRightColors(aMozBorderRightColors); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderRightColors(const nsAString & aMozBorderRightColors) { return _to SetMozBorderRightColors(aMozBorderRightColors); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderTopColors(nsAString & aMozBorderTopColors) { return _to GetMozBorderTopColors(aMozBorderTopColors); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderTopColors(const nsAString & aMozBorderTopColors) { return _to SetMozBorderTopColors(aMozBorderTopColors); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxAlign(nsAString & aMozBoxAlign) { return _to GetMozBoxAlign(aMozBoxAlign); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxAlign(const nsAString & aMozBoxAlign) { return _to SetMozBoxAlign(aMozBoxAlign); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxDirection(nsAString & aMozBoxDirection) { return _to GetMozBoxDirection(aMozBoxDirection); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxDirection(const nsAString & aMozBoxDirection) { return _to SetMozBoxDirection(aMozBoxDirection); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxFlex(nsAString & aMozBoxFlex) { return _to GetMozBoxFlex(aMozBoxFlex); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxFlex(const nsAString & aMozBoxFlex) { return _to SetMozBoxFlex(aMozBoxFlex); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxOrient(nsAString & aMozBoxOrient) { return _to GetMozBoxOrient(aMozBoxOrient); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxOrient(const nsAString & aMozBoxOrient) { return _to SetMozBoxOrient(aMozBoxOrient); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxOrdinalGroup(nsAString & aMozBoxOrdinalGroup) { return _to GetMozBoxOrdinalGroup(aMozBoxOrdinalGroup); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxOrdinalGroup(const nsAString & aMozBoxOrdinalGroup) { return _to SetMozBoxOrdinalGroup(aMozBoxOrdinalGroup); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxPack(nsAString & aMozBoxPack) { return _to GetMozBoxPack(aMozBoxPack); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxPack(const nsAString & aMozBoxPack) { return _to SetMozBoxPack(aMozBoxPack); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxSizing(nsAString & aMozBoxSizing) { return _to GetMozBoxSizing(aMozBoxSizing); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxSizing(const nsAString & aMozBoxSizing) { return _to SetMozBoxSizing(aMozBoxSizing); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnCount(nsAString & aMozColumnCount) { return _to GetMozColumnCount(aMozColumnCount); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnCount(const nsAString & aMozColumnCount) { return _to SetMozColumnCount(aMozColumnCount); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnWidth(nsAString & aMozColumnWidth) { return _to GetMozColumnWidth(aMozColumnWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnWidth(const nsAString & aMozColumnWidth) { return _to SetMozColumnWidth(aMozColumnWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnGap(nsAString & aMozColumnGap) { return _to GetMozColumnGap(aMozColumnGap); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnGap(const nsAString & aMozColumnGap) { return _to SetMozColumnGap(aMozColumnGap); } \ NS_SCRIPTABLE NS_IMETHOD GetMozFloatEdge(nsAString & aMozFloatEdge) { return _to GetMozFloatEdge(aMozFloatEdge); } \ NS_SCRIPTABLE NS_IMETHOD SetMozFloatEdge(const nsAString & aMozFloatEdge) { return _to SetMozFloatEdge(aMozFloatEdge); } \ NS_SCRIPTABLE NS_IMETHOD GetMozFontFeatureSettings(nsAString & aMozFontFeatureSettings) { return _to GetMozFontFeatureSettings(aMozFontFeatureSettings); } \ NS_SCRIPTABLE NS_IMETHOD SetMozFontFeatureSettings(const nsAString & aMozFontFeatureSettings) { return _to SetMozFontFeatureSettings(aMozFontFeatureSettings); } \ NS_SCRIPTABLE NS_IMETHOD GetMozFontLanguageOverride(nsAString & aMozFontLanguageOverride) { return _to GetMozFontLanguageOverride(aMozFontLanguageOverride); } \ NS_SCRIPTABLE NS_IMETHOD SetMozFontLanguageOverride(const nsAString & aMozFontLanguageOverride) { return _to SetMozFontLanguageOverride(aMozFontLanguageOverride); } \ NS_SCRIPTABLE NS_IMETHOD GetMozForceBrokenImageIcon(nsAString & aMozForceBrokenImageIcon) { return _to GetMozForceBrokenImageIcon(aMozForceBrokenImageIcon); } \ NS_SCRIPTABLE NS_IMETHOD SetMozForceBrokenImageIcon(const nsAString & aMozForceBrokenImageIcon) { return _to SetMozForceBrokenImageIcon(aMozForceBrokenImageIcon); } \ NS_SCRIPTABLE NS_IMETHOD GetMozImageRegion(nsAString & aMozImageRegion) { return _to GetMozImageRegion(aMozImageRegion); } \ NS_SCRIPTABLE NS_IMETHOD SetMozImageRegion(const nsAString & aMozImageRegion) { return _to SetMozImageRegion(aMozImageRegion); } \ NS_SCRIPTABLE NS_IMETHOD GetMozMarginEnd(nsAString & aMozMarginEnd) { return _to GetMozMarginEnd(aMozMarginEnd); } \ NS_SCRIPTABLE NS_IMETHOD SetMozMarginEnd(const nsAString & aMozMarginEnd) { return _to SetMozMarginEnd(aMozMarginEnd); } \ NS_SCRIPTABLE NS_IMETHOD GetMozMarginStart(nsAString & aMozMarginStart) { return _to GetMozMarginStart(aMozMarginStart); } \ NS_SCRIPTABLE NS_IMETHOD SetMozMarginStart(const nsAString & aMozMarginStart) { return _to SetMozMarginStart(aMozMarginStart); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOrient(nsAString & aMozOrient) { return _to GetMozOrient(aMozOrient); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOrient(const nsAString & aMozOrient) { return _to SetMozOrient(aMozOrient); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadius(nsAString & aMozOutlineRadius) { return _to GetMozOutlineRadius(aMozOutlineRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadius(const nsAString & aMozOutlineRadius) { return _to SetMozOutlineRadius(aMozOutlineRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusTopleft(nsAString & aMozOutlineRadiusTopleft) { return _to GetMozOutlineRadiusTopleft(aMozOutlineRadiusTopleft); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusTopleft(const nsAString & aMozOutlineRadiusTopleft) { return _to SetMozOutlineRadiusTopleft(aMozOutlineRadiusTopleft); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusTopright(nsAString & aMozOutlineRadiusTopright) { return _to GetMozOutlineRadiusTopright(aMozOutlineRadiusTopright); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusTopright(const nsAString & aMozOutlineRadiusTopright) { return _to SetMozOutlineRadiusTopright(aMozOutlineRadiusTopright); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusBottomleft(nsAString & aMozOutlineRadiusBottomleft) { return _to GetMozOutlineRadiusBottomleft(aMozOutlineRadiusBottomleft); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusBottomleft(const nsAString & aMozOutlineRadiusBottomleft) { return _to SetMozOutlineRadiusBottomleft(aMozOutlineRadiusBottomleft); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusBottomright(nsAString & aMozOutlineRadiusBottomright) { return _to GetMozOutlineRadiusBottomright(aMozOutlineRadiusBottomright); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusBottomright(const nsAString & aMozOutlineRadiusBottomright) { return _to SetMozOutlineRadiusBottomright(aMozOutlineRadiusBottomright); } \ NS_SCRIPTABLE NS_IMETHOD GetMozPaddingEnd(nsAString & aMozPaddingEnd) { return _to GetMozPaddingEnd(aMozPaddingEnd); } \ NS_SCRIPTABLE NS_IMETHOD SetMozPaddingEnd(const nsAString & aMozPaddingEnd) { return _to SetMozPaddingEnd(aMozPaddingEnd); } \ NS_SCRIPTABLE NS_IMETHOD GetMozPaddingStart(nsAString & aMozPaddingStart) { return _to GetMozPaddingStart(aMozPaddingStart); } \ NS_SCRIPTABLE NS_IMETHOD SetMozPaddingStart(const nsAString & aMozPaddingStart) { return _to SetMozPaddingStart(aMozPaddingStart); } \ NS_SCRIPTABLE NS_IMETHOD GetMozUserFocus(nsAString & aMozUserFocus) { return _to GetMozUserFocus(aMozUserFocus); } \ NS_SCRIPTABLE NS_IMETHOD SetMozUserFocus(const nsAString & aMozUserFocus) { return _to SetMozUserFocus(aMozUserFocus); } \ NS_SCRIPTABLE NS_IMETHOD GetMozUserInput(nsAString & aMozUserInput) { return _to GetMozUserInput(aMozUserInput); } \ NS_SCRIPTABLE NS_IMETHOD SetMozUserInput(const nsAString & aMozUserInput) { return _to SetMozUserInput(aMozUserInput); } \ NS_SCRIPTABLE NS_IMETHOD GetMozUserModify(nsAString & aMozUserModify) { return _to GetMozUserModify(aMozUserModify); } \ NS_SCRIPTABLE NS_IMETHOD SetMozUserModify(const nsAString & aMozUserModify) { return _to SetMozUserModify(aMozUserModify); } \ NS_SCRIPTABLE NS_IMETHOD GetMozUserSelect(nsAString & aMozUserSelect) { return _to GetMozUserSelect(aMozUserSelect); } \ NS_SCRIPTABLE NS_IMETHOD SetMozUserSelect(const nsAString & aMozUserSelect) { return _to SetMozUserSelect(aMozUserSelect); } \ NS_SCRIPTABLE NS_IMETHOD GetOpacity(nsAString & aOpacity) { return _to GetOpacity(aOpacity); } \ NS_SCRIPTABLE NS_IMETHOD SetOpacity(const nsAString & aOpacity) { return _to SetOpacity(aOpacity); } \ NS_SCRIPTABLE NS_IMETHOD GetOutlineOffset(nsAString & aOutlineOffset) { return _to GetOutlineOffset(aOutlineOffset); } \ NS_SCRIPTABLE NS_IMETHOD SetOutlineOffset(const nsAString & aOutlineOffset) { return _to SetOutlineOffset(aOutlineOffset); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextAlignLast(nsAString & aMozTextAlignLast) { return _to GetMozTextAlignLast(aMozTextAlignLast); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextAlignLast(const nsAString & aMozTextAlignLast) { return _to SetMozTextAlignLast(aMozTextAlignLast); } \ NS_SCRIPTABLE NS_IMETHOD GetOverflowX(nsAString & aOverflowX) { return _to GetOverflowX(aOverflowX); } \ NS_SCRIPTABLE NS_IMETHOD SetOverflowX(const nsAString & aOverflowX) { return _to SetOverflowX(aOverflowX); } \ NS_SCRIPTABLE NS_IMETHOD GetOverflowY(nsAString & aOverflowY) { return _to GetOverflowY(aOverflowY); } \ NS_SCRIPTABLE NS_IMETHOD SetOverflowY(const nsAString & aOverflowY) { return _to SetOverflowY(aOverflowY); } \ NS_SCRIPTABLE NS_IMETHOD GetImeMode(nsAString & aImeMode) { return _to GetImeMode(aImeMode); } \ NS_SCRIPTABLE NS_IMETHOD SetImeMode(const nsAString & aImeMode) { return _to SetImeMode(aImeMode); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEnd(nsAString & aMozBorderEnd) { return _to GetMozBorderEnd(aMozBorderEnd); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEnd(const nsAString & aMozBorderEnd) { return _to SetMozBorderEnd(aMozBorderEnd); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndColor(nsAString & aMozBorderEndColor) { return _to GetMozBorderEndColor(aMozBorderEndColor); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndColor(const nsAString & aMozBorderEndColor) { return _to SetMozBorderEndColor(aMozBorderEndColor); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndStyle(nsAString & aMozBorderEndStyle) { return _to GetMozBorderEndStyle(aMozBorderEndStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndStyle(const nsAString & aMozBorderEndStyle) { return _to SetMozBorderEndStyle(aMozBorderEndStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndWidth(nsAString & aMozBorderEndWidth) { return _to GetMozBorderEndWidth(aMozBorderEndWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndWidth(const nsAString & aMozBorderEndWidth) { return _to SetMozBorderEndWidth(aMozBorderEndWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStart(nsAString & aMozBorderStart) { return _to GetMozBorderStart(aMozBorderStart); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStart(const nsAString & aMozBorderStart) { return _to SetMozBorderStart(aMozBorderStart); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartColor(nsAString & aMozBorderStartColor) { return _to GetMozBorderStartColor(aMozBorderStartColor); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartColor(const nsAString & aMozBorderStartColor) { return _to SetMozBorderStartColor(aMozBorderStartColor); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartStyle(nsAString & aMozBorderStartStyle) { return _to GetMozBorderStartStyle(aMozBorderStartStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartStyle(const nsAString & aMozBorderStartStyle) { return _to SetMozBorderStartStyle(aMozBorderStartStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartWidth(nsAString & aMozBorderStartWidth) { return _to GetMozBorderStartWidth(aMozBorderStartWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartWidth(const nsAString & aMozBorderStartWidth) { return _to SetMozBorderStartWidth(aMozBorderStartWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetMozStackSizing(nsAString & aMozStackSizing) { return _to GetMozStackSizing(aMozStackSizing); } \ NS_SCRIPTABLE NS_IMETHOD SetMozStackSizing(const nsAString & aMozStackSizing) { return _to SetMozStackSizing(aMozStackSizing); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImage(nsAString & aBorderImage) { return _to GetBorderImage(aBorderImage); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImage(const nsAString & aBorderImage) { return _to SetBorderImage(aBorderImage); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumns(nsAString & aMozColumns) { return _to GetMozColumns(aMozColumns); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumns(const nsAString & aMozColumns) { return _to SetMozColumns(aMozColumns); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRule(nsAString & aMozColumnRule) { return _to GetMozColumnRule(aMozColumnRule); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRule(const nsAString & aMozColumnRule) { return _to SetMozColumnRule(aMozColumnRule); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleWidth(nsAString & aMozColumnRuleWidth) { return _to GetMozColumnRuleWidth(aMozColumnRuleWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleWidth(const nsAString & aMozColumnRuleWidth) { return _to SetMozColumnRuleWidth(aMozColumnRuleWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleStyle(nsAString & aMozColumnRuleStyle) { return _to GetMozColumnRuleStyle(aMozColumnRuleStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleStyle(const nsAString & aMozColumnRuleStyle) { return _to SetMozColumnRuleStyle(aMozColumnRuleStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleColor(nsAString & aMozColumnRuleColor) { return _to GetMozColumnRuleColor(aMozColumnRuleColor); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleColor(const nsAString & aMozColumnRuleColor) { return _to SetMozColumnRuleColor(aMozColumnRuleColor); } \ NS_SCRIPTABLE NS_IMETHOD GetWordBreak(nsAString & aWordBreak) { return _to GetWordBreak(aWordBreak); } \ NS_SCRIPTABLE NS_IMETHOD SetWordBreak(const nsAString & aWordBreak) { return _to SetWordBreak(aWordBreak); } \ NS_SCRIPTABLE NS_IMETHOD GetWordWrap(nsAString & aWordWrap) { return _to GetWordWrap(aWordWrap); } \ NS_SCRIPTABLE NS_IMETHOD SetWordWrap(const nsAString & aWordWrap) { return _to SetWordWrap(aWordWrap); } \ NS_SCRIPTABLE NS_IMETHOD GetMozHyphens(nsAString & aMozHyphens) { return _to GetMozHyphens(aMozHyphens); } \ NS_SCRIPTABLE NS_IMETHOD SetMozHyphens(const nsAString & aMozHyphens) { return _to SetMozHyphens(aMozHyphens); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransform(nsAString & aMozTransform) { return _to GetMozTransform(aMozTransform); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransform(const nsAString & aMozTransform) { return _to SetMozTransform(aMozTransform); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransformOrigin(nsAString & aMozTransformOrigin) { return _to GetMozTransformOrigin(aMozTransformOrigin); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransformOrigin(const nsAString & aMozTransformOrigin) { return _to SetMozTransformOrigin(aMozTransformOrigin); } \ NS_SCRIPTABLE NS_IMETHOD GetMozPerspective(nsAString & aMozPerspective) { return _to GetMozPerspective(aMozPerspective); } \ NS_SCRIPTABLE NS_IMETHOD SetMozPerspective(const nsAString & aMozPerspective) { return _to SetMozPerspective(aMozPerspective); } \ NS_SCRIPTABLE NS_IMETHOD GetMozPerspectiveOrigin(nsAString & aMozPerspectiveOrigin) { return _to GetMozPerspectiveOrigin(aMozPerspectiveOrigin); } \ NS_SCRIPTABLE NS_IMETHOD SetMozPerspectiveOrigin(const nsAString & aMozPerspectiveOrigin) { return _to SetMozPerspectiveOrigin(aMozPerspectiveOrigin); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBackfaceVisibility(nsAString & aMozBackfaceVisibility) { return _to GetMozBackfaceVisibility(aMozBackfaceVisibility); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBackfaceVisibility(const nsAString & aMozBackfaceVisibility) { return _to SetMozBackfaceVisibility(aMozBackfaceVisibility); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransformStyle(nsAString & aMozTransformStyle) { return _to GetMozTransformStyle(aMozTransformStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransformStyle(const nsAString & aMozTransformStyle) { return _to SetMozTransformStyle(aMozTransformStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetMozWindowShadow(nsAString & aMozWindowShadow) { return _to GetMozWindowShadow(aMozWindowShadow); } \ NS_SCRIPTABLE NS_IMETHOD SetMozWindowShadow(const nsAString & aMozWindowShadow) { return _to SetMozWindowShadow(aMozWindowShadow); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundSize(nsAString & aBackgroundSize) { return _to GetBackgroundSize(aBackgroundSize); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundSize(const nsAString & aBackgroundSize) { return _to SetBackgroundSize(aBackgroundSize); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextBlink(nsAString & aMozTextBlink) { return _to GetMozTextBlink(aMozTextBlink); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextBlink(const nsAString & aMozTextBlink) { return _to SetMozTextBlink(aMozTextBlink); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationColor(nsAString & aMozTextDecorationColor) { return _to GetMozTextDecorationColor(aMozTextDecorationColor); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationColor(const nsAString & aMozTextDecorationColor) { return _to SetMozTextDecorationColor(aMozTextDecorationColor); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationLine(nsAString & aMozTextDecorationLine) { return _to GetMozTextDecorationLine(aMozTextDecorationLine); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationLine(const nsAString & aMozTextDecorationLine) { return _to SetMozTextDecorationLine(aMozTextDecorationLine); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationStyle(nsAString & aMozTextDecorationStyle) { return _to GetMozTextDecorationStyle(aMozTextDecorationStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationStyle(const nsAString & aMozTextDecorationStyle) { return _to SetMozTextDecorationStyle(aMozTextDecorationStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionProperty(nsAString & aMozTransitionProperty) { return _to GetMozTransitionProperty(aMozTransitionProperty); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionProperty(const nsAString & aMozTransitionProperty) { return _to SetMozTransitionProperty(aMozTransitionProperty); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionDuration(nsAString & aMozTransitionDuration) { return _to GetMozTransitionDuration(aMozTransitionDuration); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionDuration(const nsAString & aMozTransitionDuration) { return _to SetMozTransitionDuration(aMozTransitionDuration); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionDelay(nsAString & aMozTransitionDelay) { return _to GetMozTransitionDelay(aMozTransitionDelay); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionDelay(const nsAString & aMozTransitionDelay) { return _to SetMozTransitionDelay(aMozTransitionDelay); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionTimingFunction(nsAString & aMozTransitionTimingFunction) { return _to GetMozTransitionTimingFunction(aMozTransitionTimingFunction); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionTimingFunction(const nsAString & aMozTransitionTimingFunction) { return _to SetMozTransitionTimingFunction(aMozTransitionTimingFunction); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransition(nsAString & aMozTransition) { return _to GetMozTransition(aMozTransition); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransition(const nsAString & aMozTransition) { return _to SetMozTransition(aMozTransition); } \ NS_SCRIPTABLE NS_IMETHOD GetPointerEvents(nsAString & aPointerEvents) { return _to GetPointerEvents(aPointerEvents); } \ NS_SCRIPTABLE NS_IMETHOD SetPointerEvents(const nsAString & aPointerEvents) { return _to SetPointerEvents(aPointerEvents); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTabSize(nsAString & aMozTabSize) { return _to GetMozTabSize(aMozTabSize); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTabSize(const nsAString & aMozTabSize) { return _to SetMozTabSize(aMozTabSize); } \ NS_SCRIPTABLE NS_IMETHOD GetResize(nsAString & aResize) { return _to GetResize(aResize); } \ NS_SCRIPTABLE NS_IMETHOD SetResize(const nsAString & aResize) { return _to SetResize(aResize); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationName(nsAString & aMozAnimationName) { return _to GetMozAnimationName(aMozAnimationName); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationName(const nsAString & aMozAnimationName) { return _to SetMozAnimationName(aMozAnimationName); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDuration(nsAString & aMozAnimationDuration) { return _to GetMozAnimationDuration(aMozAnimationDuration); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDuration(const nsAString & aMozAnimationDuration) { return _to SetMozAnimationDuration(aMozAnimationDuration); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDelay(nsAString & aMozAnimationDelay) { return _to GetMozAnimationDelay(aMozAnimationDelay); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDelay(const nsAString & aMozAnimationDelay) { return _to SetMozAnimationDelay(aMozAnimationDelay); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationTimingFunction(nsAString & aMozAnimationTimingFunction) { return _to GetMozAnimationTimingFunction(aMozAnimationTimingFunction); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationTimingFunction(const nsAString & aMozAnimationTimingFunction) { return _to SetMozAnimationTimingFunction(aMozAnimationTimingFunction); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDirection(nsAString & aMozAnimationDirection) { return _to GetMozAnimationDirection(aMozAnimationDirection); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDirection(const nsAString & aMozAnimationDirection) { return _to SetMozAnimationDirection(aMozAnimationDirection); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationFillMode(nsAString & aMozAnimationFillMode) { return _to GetMozAnimationFillMode(aMozAnimationFillMode); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationFillMode(const nsAString & aMozAnimationFillMode) { return _to SetMozAnimationFillMode(aMozAnimationFillMode); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationIterationCount(nsAString & aMozAnimationIterationCount) { return _to GetMozAnimationIterationCount(aMozAnimationIterationCount); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationIterationCount(const nsAString & aMozAnimationIterationCount) { return _to SetMozAnimationIterationCount(aMozAnimationIterationCount); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationPlayState(nsAString & aMozAnimationPlayState) { return _to GetMozAnimationPlayState(aMozAnimationPlayState); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationPlayState(const nsAString & aMozAnimationPlayState) { return _to SetMozAnimationPlayState(aMozAnimationPlayState); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimation(nsAString & aMozAnimation) { return _to GetMozAnimation(aMozAnimation); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimation(const nsAString & aMozAnimation) { return _to SetMozAnimation(aMozAnimation); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextSizeAdjust(nsAString & aMozTextSizeAdjust) { return _to GetMozTextSizeAdjust(aMozTextSizeAdjust); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextSizeAdjust(const nsAString & aMozTextSizeAdjust) { return _to SetMozTextSizeAdjust(aMozTextSizeAdjust); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageSource(nsAString & aBorderImageSource) { return _to GetBorderImageSource(aBorderImageSource); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageSource(const nsAString & aBorderImageSource) { return _to SetBorderImageSource(aBorderImageSource); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageSlice(nsAString & aBorderImageSlice) { return _to GetBorderImageSlice(aBorderImageSlice); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageSlice(const nsAString & aBorderImageSlice) { return _to SetBorderImageSlice(aBorderImageSlice); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageWidth(nsAString & aBorderImageWidth) { return _to GetBorderImageWidth(aBorderImageWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageWidth(const nsAString & aBorderImageWidth) { return _to SetBorderImageWidth(aBorderImageWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageOutset(nsAString & aBorderImageOutset) { return _to GetBorderImageOutset(aBorderImageOutset); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageOutset(const nsAString & aBorderImageOutset) { return _to SetBorderImageOutset(aBorderImageOutset); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageRepeat(nsAString & aBorderImageRepeat) { return _to GetBorderImageRepeat(aBorderImageRepeat); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageRepeat(const nsAString & aBorderImageRepeat) { return _to SetBorderImageRepeat(aBorderImageRepeat); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderImage(nsAString & aMozBorderImage) { return _to GetMozBorderImage(aMozBorderImage); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderImage(const nsAString & aMozBorderImage) { return _to SetMozBorderImage(aMozBorderImage); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIDOMCSS2PROPERTIES(_to) \ NS_SCRIPTABLE NS_IMETHOD GetBackground(nsAString & aBackground) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackground(aBackground); } \ NS_SCRIPTABLE NS_IMETHOD SetBackground(const nsAString & aBackground) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackground(aBackground); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundAttachment(nsAString & aBackgroundAttachment) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundAttachment(aBackgroundAttachment); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundAttachment(const nsAString & aBackgroundAttachment) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackgroundAttachment(aBackgroundAttachment); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundColor(nsAString & aBackgroundColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundColor(aBackgroundColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundColor(const nsAString & aBackgroundColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackgroundColor(aBackgroundColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundImage(nsAString & aBackgroundImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundImage(aBackgroundImage); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundImage(const nsAString & aBackgroundImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackgroundImage(aBackgroundImage); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundPosition(nsAString & aBackgroundPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundPosition(aBackgroundPosition); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundPosition(const nsAString & aBackgroundPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackgroundPosition(aBackgroundPosition); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundRepeat(nsAString & aBackgroundRepeat) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundRepeat(aBackgroundRepeat); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundRepeat(const nsAString & aBackgroundRepeat) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackgroundRepeat(aBackgroundRepeat); } \ NS_SCRIPTABLE NS_IMETHOD GetBorder(nsAString & aBorder) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorder(aBorder); } \ NS_SCRIPTABLE NS_IMETHOD SetBorder(const nsAString & aBorder) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorder(aBorder); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderCollapse(nsAString & aBorderCollapse) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderCollapse(aBorderCollapse); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderCollapse(const nsAString & aBorderCollapse) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderCollapse(aBorderCollapse); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderColor(nsAString & aBorderColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderColor(aBorderColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderColor(const nsAString & aBorderColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderColor(aBorderColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderSpacing(nsAString & aBorderSpacing) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderSpacing(aBorderSpacing); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderSpacing(const nsAString & aBorderSpacing) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderSpacing(aBorderSpacing); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderStyle(nsAString & aBorderStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderStyle(aBorderStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderStyle(const nsAString & aBorderStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderStyle(aBorderStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTop(nsAString & aBorderTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderTop(aBorderTop); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTop(const nsAString & aBorderTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderTop(aBorderTop); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderRight(nsAString & aBorderRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderRight(aBorderRight); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderRight(const nsAString & aBorderRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderRight(aBorderRight); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottom(nsAString & aBorderBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderBottom(aBorderBottom); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottom(const nsAString & aBorderBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderBottom(aBorderBottom); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeft(nsAString & aBorderLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderLeft(aBorderLeft); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeft(const nsAString & aBorderLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderLeft(aBorderLeft); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopColor(nsAString & aBorderTopColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderTopColor(aBorderTopColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopColor(const nsAString & aBorderTopColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderTopColor(aBorderTopColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderRightColor(nsAString & aBorderRightColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderRightColor(aBorderRightColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderRightColor(const nsAString & aBorderRightColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderRightColor(aBorderRightColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomColor(nsAString & aBorderBottomColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderBottomColor(aBorderBottomColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomColor(const nsAString & aBorderBottomColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderBottomColor(aBorderBottomColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftColor(nsAString & aBorderLeftColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderLeftColor(aBorderLeftColor); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeftColor(const nsAString & aBorderLeftColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderLeftColor(aBorderLeftColor); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopStyle(nsAString & aBorderTopStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderTopStyle(aBorderTopStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopStyle(const nsAString & aBorderTopStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderTopStyle(aBorderTopStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderRightStyle(nsAString & aBorderRightStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderRightStyle(aBorderRightStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderRightStyle(const nsAString & aBorderRightStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderRightStyle(aBorderRightStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomStyle(nsAString & aBorderBottomStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderBottomStyle(aBorderBottomStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomStyle(const nsAString & aBorderBottomStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderBottomStyle(aBorderBottomStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftStyle(nsAString & aBorderLeftStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderLeftStyle(aBorderLeftStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeftStyle(const nsAString & aBorderLeftStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderLeftStyle(aBorderLeftStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopWidth(nsAString & aBorderTopWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderTopWidth(aBorderTopWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopWidth(const nsAString & aBorderTopWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderTopWidth(aBorderTopWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderRightWidth(nsAString & aBorderRightWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderRightWidth(aBorderRightWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderRightWidth(const nsAString & aBorderRightWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderRightWidth(aBorderRightWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomWidth(nsAString & aBorderBottomWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderBottomWidth(aBorderBottomWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomWidth(const nsAString & aBorderBottomWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderBottomWidth(aBorderBottomWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderLeftWidth(nsAString & aBorderLeftWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderLeftWidth(aBorderLeftWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderLeftWidth(const nsAString & aBorderLeftWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderLeftWidth(aBorderLeftWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderWidth(nsAString & aBorderWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderWidth(aBorderWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderWidth(const nsAString & aBorderWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderWidth(aBorderWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderRadius(nsAString & aBorderRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderRadius(aBorderRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderRadius(const nsAString & aBorderRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderRadius(aBorderRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopLeftRadius(nsAString & aBorderTopLeftRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderTopLeftRadius(aBorderTopLeftRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopLeftRadius(const nsAString & aBorderTopLeftRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderTopLeftRadius(aBorderTopLeftRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderTopRightRadius(nsAString & aBorderTopRightRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderTopRightRadius(aBorderTopRightRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderTopRightRadius(const nsAString & aBorderTopRightRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderTopRightRadius(aBorderTopRightRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomLeftRadius(nsAString & aBorderBottomLeftRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderBottomLeftRadius(aBorderBottomLeftRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomLeftRadius(const nsAString & aBorderBottomLeftRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderBottomLeftRadius(aBorderBottomLeftRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderBottomRightRadius(nsAString & aBorderBottomRightRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderBottomRightRadius(aBorderBottomRightRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderBottomRightRadius(const nsAString & aBorderBottomRightRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderBottomRightRadius(aBorderBottomRightRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetBottom(nsAString & aBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBottom(aBottom); } \ NS_SCRIPTABLE NS_IMETHOD SetBottom(const nsAString & aBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBottom(aBottom); } \ NS_SCRIPTABLE NS_IMETHOD GetBoxShadow(nsAString & aBoxShadow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoxShadow(aBoxShadow); } \ NS_SCRIPTABLE NS_IMETHOD SetBoxShadow(const nsAString & aBoxShadow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBoxShadow(aBoxShadow); } \ NS_SCRIPTABLE NS_IMETHOD GetCaptionSide(nsAString & aCaptionSide) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaptionSide(aCaptionSide); } \ NS_SCRIPTABLE NS_IMETHOD SetCaptionSide(const nsAString & aCaptionSide) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCaptionSide(aCaptionSide); } \ NS_SCRIPTABLE NS_IMETHOD GetClear(nsAString & aClear) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClear(aClear); } \ NS_SCRIPTABLE NS_IMETHOD SetClear(const nsAString & aClear) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClear(aClear); } \ NS_SCRIPTABLE NS_IMETHOD GetClip(nsAString & aClip) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClip(aClip); } \ NS_SCRIPTABLE NS_IMETHOD SetClip(const nsAString & aClip) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClip(aClip); } \ NS_SCRIPTABLE NS_IMETHOD GetColor(nsAString & aColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColor(aColor); } \ NS_SCRIPTABLE NS_IMETHOD SetColor(const nsAString & aColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetColor(aColor); } \ NS_SCRIPTABLE NS_IMETHOD GetContent(nsAString & aContent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContent(aContent); } \ NS_SCRIPTABLE NS_IMETHOD SetContent(const nsAString & aContent) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContent(aContent); } \ NS_SCRIPTABLE NS_IMETHOD GetCounterIncrement(nsAString & aCounterIncrement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCounterIncrement(aCounterIncrement); } \ NS_SCRIPTABLE NS_IMETHOD SetCounterIncrement(const nsAString & aCounterIncrement) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCounterIncrement(aCounterIncrement); } \ NS_SCRIPTABLE NS_IMETHOD GetCounterReset(nsAString & aCounterReset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCounterReset(aCounterReset); } \ NS_SCRIPTABLE NS_IMETHOD SetCounterReset(const nsAString & aCounterReset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCounterReset(aCounterReset); } \ NS_SCRIPTABLE NS_IMETHOD GetCursor(nsAString & aCursor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCursor(aCursor); } \ NS_SCRIPTABLE NS_IMETHOD SetCursor(const nsAString & aCursor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCursor(aCursor); } \ NS_SCRIPTABLE NS_IMETHOD GetDirection(nsAString & aDirection) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirection(aDirection); } \ NS_SCRIPTABLE NS_IMETHOD SetDirection(const nsAString & aDirection) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDirection(aDirection); } \ NS_SCRIPTABLE NS_IMETHOD GetDisplay(nsAString & aDisplay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplay(aDisplay); } \ NS_SCRIPTABLE NS_IMETHOD SetDisplay(const nsAString & aDisplay) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplay(aDisplay); } \ NS_SCRIPTABLE NS_IMETHOD GetEmptyCells(nsAString & aEmptyCells) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEmptyCells(aEmptyCells); } \ NS_SCRIPTABLE NS_IMETHOD SetEmptyCells(const nsAString & aEmptyCells) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEmptyCells(aEmptyCells); } \ NS_SCRIPTABLE NS_IMETHOD GetCssFloat(nsAString & aCssFloat) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssFloat(aCssFloat); } \ NS_SCRIPTABLE NS_IMETHOD SetCssFloat(const nsAString & aCssFloat) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssFloat(aCssFloat); } \ NS_SCRIPTABLE NS_IMETHOD GetFont(nsAString & aFont) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFont(aFont); } \ NS_SCRIPTABLE NS_IMETHOD SetFont(const nsAString & aFont) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFont(aFont); } \ NS_SCRIPTABLE NS_IMETHOD GetFontFamily(nsAString & aFontFamily) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontFamily(aFontFamily); } \ NS_SCRIPTABLE NS_IMETHOD SetFontFamily(const nsAString & aFontFamily) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFontFamily(aFontFamily); } \ NS_SCRIPTABLE NS_IMETHOD GetFontSize(nsAString & aFontSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontSize(aFontSize); } \ NS_SCRIPTABLE NS_IMETHOD SetFontSize(const nsAString & aFontSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFontSize(aFontSize); } \ NS_SCRIPTABLE NS_IMETHOD GetFontSizeAdjust(nsAString & aFontSizeAdjust) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontSizeAdjust(aFontSizeAdjust); } \ NS_SCRIPTABLE NS_IMETHOD SetFontSizeAdjust(const nsAString & aFontSizeAdjust) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFontSizeAdjust(aFontSizeAdjust); } \ NS_SCRIPTABLE NS_IMETHOD GetFontStretch(nsAString & aFontStretch) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontStretch(aFontStretch); } \ NS_SCRIPTABLE NS_IMETHOD SetFontStretch(const nsAString & aFontStretch) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFontStretch(aFontStretch); } \ NS_SCRIPTABLE NS_IMETHOD GetFontStyle(nsAString & aFontStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontStyle(aFontStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetFontStyle(const nsAString & aFontStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFontStyle(aFontStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetFontVariant(nsAString & aFontVariant) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontVariant(aFontVariant); } \ NS_SCRIPTABLE NS_IMETHOD SetFontVariant(const nsAString & aFontVariant) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFontVariant(aFontVariant); } \ NS_SCRIPTABLE NS_IMETHOD GetFontWeight(nsAString & aFontWeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFontWeight(aFontWeight); } \ NS_SCRIPTABLE NS_IMETHOD SetFontWeight(const nsAString & aFontWeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFontWeight(aFontWeight); } \ NS_SCRIPTABLE NS_IMETHOD GetHeight(nsAString & aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \ NS_SCRIPTABLE NS_IMETHOD SetHeight(const nsAString & aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeight(aHeight); } \ NS_SCRIPTABLE NS_IMETHOD GetLeft(nsAString & aLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLeft(aLeft); } \ NS_SCRIPTABLE NS_IMETHOD SetLeft(const nsAString & aLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLeft(aLeft); } \ NS_SCRIPTABLE NS_IMETHOD GetLetterSpacing(nsAString & aLetterSpacing) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLetterSpacing(aLetterSpacing); } \ NS_SCRIPTABLE NS_IMETHOD SetLetterSpacing(const nsAString & aLetterSpacing) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLetterSpacing(aLetterSpacing); } \ NS_SCRIPTABLE NS_IMETHOD GetLineHeight(nsAString & aLineHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineHeight(aLineHeight); } \ NS_SCRIPTABLE NS_IMETHOD SetLineHeight(const nsAString & aLineHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLineHeight(aLineHeight); } \ NS_SCRIPTABLE NS_IMETHOD GetListStyle(nsAString & aListStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListStyle(aListStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetListStyle(const nsAString & aListStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListStyle(aListStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetListStyleImage(nsAString & aListStyleImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListStyleImage(aListStyleImage); } \ NS_SCRIPTABLE NS_IMETHOD SetListStyleImage(const nsAString & aListStyleImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListStyleImage(aListStyleImage); } \ NS_SCRIPTABLE NS_IMETHOD GetListStylePosition(nsAString & aListStylePosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListStylePosition(aListStylePosition); } \ NS_SCRIPTABLE NS_IMETHOD SetListStylePosition(const nsAString & aListStylePosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListStylePosition(aListStylePosition); } \ NS_SCRIPTABLE NS_IMETHOD GetListStyleType(nsAString & aListStyleType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListStyleType(aListStyleType); } \ NS_SCRIPTABLE NS_IMETHOD SetListStyleType(const nsAString & aListStyleType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListStyleType(aListStyleType); } \ NS_SCRIPTABLE NS_IMETHOD GetMargin(nsAString & aMargin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMargin(aMargin); } \ NS_SCRIPTABLE NS_IMETHOD SetMargin(const nsAString & aMargin) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMargin(aMargin); } \ NS_SCRIPTABLE NS_IMETHOD GetMarginTop(nsAString & aMarginTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginTop(aMarginTop); } \ NS_SCRIPTABLE NS_IMETHOD SetMarginTop(const nsAString & aMarginTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginTop(aMarginTop); } \ NS_SCRIPTABLE NS_IMETHOD GetMarginRight(nsAString & aMarginRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginRight(aMarginRight); } \ NS_SCRIPTABLE NS_IMETHOD SetMarginRight(const nsAString & aMarginRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginRight(aMarginRight); } \ NS_SCRIPTABLE NS_IMETHOD GetMarginBottom(nsAString & aMarginBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginBottom(aMarginBottom); } \ NS_SCRIPTABLE NS_IMETHOD SetMarginBottom(const nsAString & aMarginBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginBottom(aMarginBottom); } \ NS_SCRIPTABLE NS_IMETHOD GetMarginLeft(nsAString & aMarginLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginLeft(aMarginLeft); } \ NS_SCRIPTABLE NS_IMETHOD SetMarginLeft(const nsAString & aMarginLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginLeft(aMarginLeft); } \ NS_SCRIPTABLE NS_IMETHOD GetMarkerOffset(nsAString & aMarkerOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarkerOffset(aMarkerOffset); } \ NS_SCRIPTABLE NS_IMETHOD SetMarkerOffset(const nsAString & aMarkerOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarkerOffset(aMarkerOffset); } \ NS_SCRIPTABLE NS_IMETHOD GetMarks(nsAString & aMarks) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarks(aMarks); } \ NS_SCRIPTABLE NS_IMETHOD SetMarks(const nsAString & aMarks) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarks(aMarks); } \ NS_SCRIPTABLE NS_IMETHOD GetMaxHeight(nsAString & aMaxHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxHeight(aMaxHeight); } \ NS_SCRIPTABLE NS_IMETHOD SetMaxHeight(const nsAString & aMaxHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxHeight(aMaxHeight); } \ NS_SCRIPTABLE NS_IMETHOD GetMaxWidth(nsAString & aMaxWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxWidth(aMaxWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMaxWidth(const nsAString & aMaxWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxWidth(aMaxWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetMinHeight(nsAString & aMinHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinHeight(aMinHeight); } \ NS_SCRIPTABLE NS_IMETHOD SetMinHeight(const nsAString & aMinHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMinHeight(aMinHeight); } \ NS_SCRIPTABLE NS_IMETHOD GetMinWidth(nsAString & aMinWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinWidth(aMinWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMinWidth(const nsAString & aMinWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMinWidth(aMinWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetOrphans(nsAString & aOrphans) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrphans(aOrphans); } \ NS_SCRIPTABLE NS_IMETHOD SetOrphans(const nsAString & aOrphans) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOrphans(aOrphans); } \ NS_SCRIPTABLE NS_IMETHOD GetOutline(nsAString & aOutline) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOutline(aOutline); } \ NS_SCRIPTABLE NS_IMETHOD SetOutline(const nsAString & aOutline) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOutline(aOutline); } \ NS_SCRIPTABLE NS_IMETHOD GetOutlineColor(nsAString & aOutlineColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOutlineColor(aOutlineColor); } \ NS_SCRIPTABLE NS_IMETHOD SetOutlineColor(const nsAString & aOutlineColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOutlineColor(aOutlineColor); } \ NS_SCRIPTABLE NS_IMETHOD GetOutlineStyle(nsAString & aOutlineStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOutlineStyle(aOutlineStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetOutlineStyle(const nsAString & aOutlineStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOutlineStyle(aOutlineStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetOutlineWidth(nsAString & aOutlineWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOutlineWidth(aOutlineWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetOutlineWidth(const nsAString & aOutlineWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOutlineWidth(aOutlineWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetOverflow(nsAString & aOverflow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOverflow(aOverflow); } \ NS_SCRIPTABLE NS_IMETHOD SetOverflow(const nsAString & aOverflow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOverflow(aOverflow); } \ NS_SCRIPTABLE NS_IMETHOD GetPadding(nsAString & aPadding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPadding(aPadding); } \ NS_SCRIPTABLE NS_IMETHOD SetPadding(const nsAString & aPadding) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPadding(aPadding); } \ NS_SCRIPTABLE NS_IMETHOD GetPaddingTop(nsAString & aPaddingTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaddingTop(aPaddingTop); } \ NS_SCRIPTABLE NS_IMETHOD SetPaddingTop(const nsAString & aPaddingTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaddingTop(aPaddingTop); } \ NS_SCRIPTABLE NS_IMETHOD GetPaddingRight(nsAString & aPaddingRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaddingRight(aPaddingRight); } \ NS_SCRIPTABLE NS_IMETHOD SetPaddingRight(const nsAString & aPaddingRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaddingRight(aPaddingRight); } \ NS_SCRIPTABLE NS_IMETHOD GetPaddingBottom(nsAString & aPaddingBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaddingBottom(aPaddingBottom); } \ NS_SCRIPTABLE NS_IMETHOD SetPaddingBottom(const nsAString & aPaddingBottom) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaddingBottom(aPaddingBottom); } \ NS_SCRIPTABLE NS_IMETHOD GetPaddingLeft(nsAString & aPaddingLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaddingLeft(aPaddingLeft); } \ NS_SCRIPTABLE NS_IMETHOD SetPaddingLeft(const nsAString & aPaddingLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaddingLeft(aPaddingLeft); } \ NS_SCRIPTABLE NS_IMETHOD GetPage(nsAString & aPage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPage(aPage); } \ NS_SCRIPTABLE NS_IMETHOD SetPage(const nsAString & aPage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPage(aPage); } \ NS_SCRIPTABLE NS_IMETHOD GetPageBreakAfter(nsAString & aPageBreakAfter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageBreakAfter(aPageBreakAfter); } \ NS_SCRIPTABLE NS_IMETHOD SetPageBreakAfter(const nsAString & aPageBreakAfter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPageBreakAfter(aPageBreakAfter); } \ NS_SCRIPTABLE NS_IMETHOD GetPageBreakBefore(nsAString & aPageBreakBefore) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageBreakBefore(aPageBreakBefore); } \ NS_SCRIPTABLE NS_IMETHOD SetPageBreakBefore(const nsAString & aPageBreakBefore) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPageBreakBefore(aPageBreakBefore); } \ NS_SCRIPTABLE NS_IMETHOD GetPageBreakInside(nsAString & aPageBreakInside) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageBreakInside(aPageBreakInside); } \ NS_SCRIPTABLE NS_IMETHOD SetPageBreakInside(const nsAString & aPageBreakInside) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPageBreakInside(aPageBreakInside); } \ NS_SCRIPTABLE NS_IMETHOD GetPosition(nsAString & aPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPosition(aPosition); } \ NS_SCRIPTABLE NS_IMETHOD SetPosition(const nsAString & aPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPosition(aPosition); } \ NS_SCRIPTABLE NS_IMETHOD GetQuotes(nsAString & aQuotes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQuotes(aQuotes); } \ NS_SCRIPTABLE NS_IMETHOD SetQuotes(const nsAString & aQuotes) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetQuotes(aQuotes); } \ NS_SCRIPTABLE NS_IMETHOD GetRight(nsAString & aRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRight(aRight); } \ NS_SCRIPTABLE NS_IMETHOD SetRight(const nsAString & aRight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRight(aRight); } \ NS_SCRIPTABLE NS_IMETHOD GetSize(nsAString & aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(aSize); } \ NS_SCRIPTABLE NS_IMETHOD SetSize(const nsAString & aSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(aSize); } \ NS_SCRIPTABLE NS_IMETHOD GetTableLayout(nsAString & aTableLayout) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTableLayout(aTableLayout); } \ NS_SCRIPTABLE NS_IMETHOD SetTableLayout(const nsAString & aTableLayout) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTableLayout(aTableLayout); } \ NS_SCRIPTABLE NS_IMETHOD GetTextAlign(nsAString & aTextAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextAlign(aTextAlign); } \ NS_SCRIPTABLE NS_IMETHOD SetTextAlign(const nsAString & aTextAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextAlign(aTextAlign); } \ NS_SCRIPTABLE NS_IMETHOD GetTextDecoration(nsAString & aTextDecoration) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextDecoration(aTextDecoration); } \ NS_SCRIPTABLE NS_IMETHOD SetTextDecoration(const nsAString & aTextDecoration) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextDecoration(aTextDecoration); } \ NS_SCRIPTABLE NS_IMETHOD GetTextIndent(nsAString & aTextIndent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextIndent(aTextIndent); } \ NS_SCRIPTABLE NS_IMETHOD SetTextIndent(const nsAString & aTextIndent) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextIndent(aTextIndent); } \ NS_SCRIPTABLE NS_IMETHOD GetTextOverflow(nsAString & aTextOverflow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextOverflow(aTextOverflow); } \ NS_SCRIPTABLE NS_IMETHOD SetTextOverflow(const nsAString & aTextOverflow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextOverflow(aTextOverflow); } \ NS_SCRIPTABLE NS_IMETHOD GetTextShadow(nsAString & aTextShadow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextShadow(aTextShadow); } \ NS_SCRIPTABLE NS_IMETHOD SetTextShadow(const nsAString & aTextShadow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextShadow(aTextShadow); } \ NS_SCRIPTABLE NS_IMETHOD GetTextTransform(nsAString & aTextTransform) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextTransform(aTextTransform); } \ NS_SCRIPTABLE NS_IMETHOD SetTextTransform(const nsAString & aTextTransform) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextTransform(aTextTransform); } \ NS_SCRIPTABLE NS_IMETHOD GetTop(nsAString & aTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTop(aTop); } \ NS_SCRIPTABLE NS_IMETHOD SetTop(const nsAString & aTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTop(aTop); } \ NS_SCRIPTABLE NS_IMETHOD GetUnicodeBidi(nsAString & aUnicodeBidi) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnicodeBidi(aUnicodeBidi); } \ NS_SCRIPTABLE NS_IMETHOD SetUnicodeBidi(const nsAString & aUnicodeBidi) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUnicodeBidi(aUnicodeBidi); } \ NS_SCRIPTABLE NS_IMETHOD GetVerticalAlign(nsAString & aVerticalAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVerticalAlign(aVerticalAlign); } \ NS_SCRIPTABLE NS_IMETHOD SetVerticalAlign(const nsAString & aVerticalAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVerticalAlign(aVerticalAlign); } \ NS_SCRIPTABLE NS_IMETHOD GetVisibility(nsAString & aVisibility) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisibility(aVisibility); } \ NS_SCRIPTABLE NS_IMETHOD SetVisibility(const nsAString & aVisibility) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVisibility(aVisibility); } \ NS_SCRIPTABLE NS_IMETHOD GetWhiteSpace(nsAString & aWhiteSpace) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWhiteSpace(aWhiteSpace); } \ NS_SCRIPTABLE NS_IMETHOD SetWhiteSpace(const nsAString & aWhiteSpace) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWhiteSpace(aWhiteSpace); } \ NS_SCRIPTABLE NS_IMETHOD GetWidows(nsAString & aWidows) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidows(aWidows); } \ NS_SCRIPTABLE NS_IMETHOD SetWidows(const nsAString & aWidows) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWidows(aWidows); } \ NS_SCRIPTABLE NS_IMETHOD GetWidth(nsAString & aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetWidth(const nsAString & aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWidth(aWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetWordSpacing(nsAString & aWordSpacing) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWordSpacing(aWordSpacing); } \ NS_SCRIPTABLE NS_IMETHOD SetWordSpacing(const nsAString & aWordSpacing) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWordSpacing(aWordSpacing); } \ NS_SCRIPTABLE NS_IMETHOD GetZIndex(nsAString & aZIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetZIndex(aZIndex); } \ NS_SCRIPTABLE NS_IMETHOD SetZIndex(const nsAString & aZIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetZIndex(aZIndex); } \ NS_SCRIPTABLE NS_IMETHOD GetClipPath(nsAString & aClipPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClipPath(aClipPath); } \ NS_SCRIPTABLE NS_IMETHOD SetClipPath(const nsAString & aClipPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClipPath(aClipPath); } \ NS_SCRIPTABLE NS_IMETHOD GetClipRule(nsAString & aClipRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClipRule(aClipRule); } \ NS_SCRIPTABLE NS_IMETHOD SetClipRule(const nsAString & aClipRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClipRule(aClipRule); } \ NS_SCRIPTABLE NS_IMETHOD GetColorInterpolation(nsAString & aColorInterpolation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColorInterpolation(aColorInterpolation); } \ NS_SCRIPTABLE NS_IMETHOD SetColorInterpolation(const nsAString & aColorInterpolation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetColorInterpolation(aColorInterpolation); } \ NS_SCRIPTABLE NS_IMETHOD GetColorInterpolationFilters(nsAString & aColorInterpolationFilters) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColorInterpolationFilters(aColorInterpolationFilters); } \ NS_SCRIPTABLE NS_IMETHOD SetColorInterpolationFilters(const nsAString & aColorInterpolationFilters) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetColorInterpolationFilters(aColorInterpolationFilters); } \ NS_SCRIPTABLE NS_IMETHOD GetDominantBaseline(nsAString & aDominantBaseline) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDominantBaseline(aDominantBaseline); } \ NS_SCRIPTABLE NS_IMETHOD SetDominantBaseline(const nsAString & aDominantBaseline) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDominantBaseline(aDominantBaseline); } \ NS_SCRIPTABLE NS_IMETHOD GetFill(nsAString & aFill) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFill(aFill); } \ NS_SCRIPTABLE NS_IMETHOD SetFill(const nsAString & aFill) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFill(aFill); } \ NS_SCRIPTABLE NS_IMETHOD GetFillOpacity(nsAString & aFillOpacity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFillOpacity(aFillOpacity); } \ NS_SCRIPTABLE NS_IMETHOD SetFillOpacity(const nsAString & aFillOpacity) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFillOpacity(aFillOpacity); } \ NS_SCRIPTABLE NS_IMETHOD GetFillRule(nsAString & aFillRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFillRule(aFillRule); } \ NS_SCRIPTABLE NS_IMETHOD SetFillRule(const nsAString & aFillRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFillRule(aFillRule); } \ NS_SCRIPTABLE NS_IMETHOD GetFilter(nsAString & aFilter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilter(aFilter); } \ NS_SCRIPTABLE NS_IMETHOD SetFilter(const nsAString & aFilter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFilter(aFilter); } \ NS_SCRIPTABLE NS_IMETHOD GetFloodColor(nsAString & aFloodColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloodColor(aFloodColor); } \ NS_SCRIPTABLE NS_IMETHOD SetFloodColor(const nsAString & aFloodColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFloodColor(aFloodColor); } \ NS_SCRIPTABLE NS_IMETHOD GetFloodOpacity(nsAString & aFloodOpacity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFloodOpacity(aFloodOpacity); } \ NS_SCRIPTABLE NS_IMETHOD SetFloodOpacity(const nsAString & aFloodOpacity) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFloodOpacity(aFloodOpacity); } \ NS_SCRIPTABLE NS_IMETHOD GetImageRendering(nsAString & aImageRendering) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageRendering(aImageRendering); } \ NS_SCRIPTABLE NS_IMETHOD SetImageRendering(const nsAString & aImageRendering) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetImageRendering(aImageRendering); } \ NS_SCRIPTABLE NS_IMETHOD GetLightingColor(nsAString & aLightingColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLightingColor(aLightingColor); } \ NS_SCRIPTABLE NS_IMETHOD SetLightingColor(const nsAString & aLightingColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLightingColor(aLightingColor); } \ NS_SCRIPTABLE NS_IMETHOD GetMarker(nsAString & aMarker) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarker(aMarker); } \ NS_SCRIPTABLE NS_IMETHOD SetMarker(const nsAString & aMarker) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarker(aMarker); } \ NS_SCRIPTABLE NS_IMETHOD GetMarkerEnd(nsAString & aMarkerEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarkerEnd(aMarkerEnd); } \ NS_SCRIPTABLE NS_IMETHOD SetMarkerEnd(const nsAString & aMarkerEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarkerEnd(aMarkerEnd); } \ NS_SCRIPTABLE NS_IMETHOD GetMarkerMid(nsAString & aMarkerMid) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarkerMid(aMarkerMid); } \ NS_SCRIPTABLE NS_IMETHOD SetMarkerMid(const nsAString & aMarkerMid) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarkerMid(aMarkerMid); } \ NS_SCRIPTABLE NS_IMETHOD GetMarkerStart(nsAString & aMarkerStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarkerStart(aMarkerStart); } \ NS_SCRIPTABLE NS_IMETHOD SetMarkerStart(const nsAString & aMarkerStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarkerStart(aMarkerStart); } \ NS_SCRIPTABLE NS_IMETHOD GetMask(nsAString & aMask) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMask(aMask); } \ NS_SCRIPTABLE NS_IMETHOD SetMask(const nsAString & aMask) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMask(aMask); } \ NS_SCRIPTABLE NS_IMETHOD GetShapeRendering(nsAString & aShapeRendering) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShapeRendering(aShapeRendering); } \ NS_SCRIPTABLE NS_IMETHOD SetShapeRendering(const nsAString & aShapeRendering) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShapeRendering(aShapeRendering); } \ NS_SCRIPTABLE NS_IMETHOD GetStopColor(nsAString & aStopColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStopColor(aStopColor); } \ NS_SCRIPTABLE NS_IMETHOD SetStopColor(const nsAString & aStopColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStopColor(aStopColor); } \ NS_SCRIPTABLE NS_IMETHOD GetStopOpacity(nsAString & aStopOpacity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStopOpacity(aStopOpacity); } \ NS_SCRIPTABLE NS_IMETHOD SetStopOpacity(const nsAString & aStopOpacity) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStopOpacity(aStopOpacity); } \ NS_SCRIPTABLE NS_IMETHOD GetStroke(nsAString & aStroke) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStroke(aStroke); } \ NS_SCRIPTABLE NS_IMETHOD SetStroke(const nsAString & aStroke) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStroke(aStroke); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeDasharray(nsAString & aStrokeDasharray) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrokeDasharray(aStrokeDasharray); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeDasharray(const nsAString & aStrokeDasharray) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrokeDasharray(aStrokeDasharray); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeDashoffset(nsAString & aStrokeDashoffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrokeDashoffset(aStrokeDashoffset); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeDashoffset(const nsAString & aStrokeDashoffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrokeDashoffset(aStrokeDashoffset); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeLinecap(nsAString & aStrokeLinecap) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrokeLinecap(aStrokeLinecap); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeLinecap(const nsAString & aStrokeLinecap) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrokeLinecap(aStrokeLinecap); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeLinejoin(nsAString & aStrokeLinejoin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrokeLinejoin(aStrokeLinejoin); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeLinejoin(const nsAString & aStrokeLinejoin) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrokeLinejoin(aStrokeLinejoin); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeMiterlimit(nsAString & aStrokeMiterlimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrokeMiterlimit(aStrokeMiterlimit); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeMiterlimit(const nsAString & aStrokeMiterlimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrokeMiterlimit(aStrokeMiterlimit); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeOpacity(nsAString & aStrokeOpacity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrokeOpacity(aStrokeOpacity); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeOpacity(const nsAString & aStrokeOpacity) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrokeOpacity(aStrokeOpacity); } \ NS_SCRIPTABLE NS_IMETHOD GetStrokeWidth(nsAString & aStrokeWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrokeWidth(aStrokeWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetStrokeWidth(const nsAString & aStrokeWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrokeWidth(aStrokeWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetTextAnchor(nsAString & aTextAnchor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextAnchor(aTextAnchor); } \ NS_SCRIPTABLE NS_IMETHOD SetTextAnchor(const nsAString & aTextAnchor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextAnchor(aTextAnchor); } \ NS_SCRIPTABLE NS_IMETHOD GetTextRendering(nsAString & aTextRendering) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextRendering(aTextRendering); } \ NS_SCRIPTABLE NS_IMETHOD SetTextRendering(const nsAString & aTextRendering) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextRendering(aTextRendering); } \ NS_SCRIPTABLE NS_IMETHOD GetVectorEffect(nsAString & aVectorEffect) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVectorEffect(aVectorEffect); } \ NS_SCRIPTABLE NS_IMETHOD SetVectorEffect(const nsAString & aVectorEffect) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVectorEffect(aVectorEffect); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAppearance(nsAString & aMozAppearance) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAppearance(aMozAppearance); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAppearance(const nsAString & aMozAppearance) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozAppearance(aMozAppearance); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundClip(nsAString & aBackgroundClip) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundClip(aBackgroundClip); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundClip(const nsAString & aBackgroundClip) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackgroundClip(aBackgroundClip); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBackgroundInlinePolicy(nsAString & aMozBackgroundInlinePolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBackgroundInlinePolicy(aMozBackgroundInlinePolicy); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBackgroundInlinePolicy(const nsAString & aMozBackgroundInlinePolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBackgroundInlinePolicy(aMozBackgroundInlinePolicy); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundOrigin(nsAString & aBackgroundOrigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundOrigin(aBackgroundOrigin); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundOrigin(const nsAString & aBackgroundOrigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackgroundOrigin(aBackgroundOrigin); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBinding(nsAString & aMozBinding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBinding(aMozBinding); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBinding(const nsAString & aMozBinding) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBinding(aMozBinding); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderBottomColors(nsAString & aMozBorderBottomColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderBottomColors(aMozBorderBottomColors); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderBottomColors(const nsAString & aMozBorderBottomColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderBottomColors(aMozBorderBottomColors); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderLeftColors(nsAString & aMozBorderLeftColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderLeftColors(aMozBorderLeftColors); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderLeftColors(const nsAString & aMozBorderLeftColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderLeftColors(aMozBorderLeftColors); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderRightColors(nsAString & aMozBorderRightColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderRightColors(aMozBorderRightColors); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderRightColors(const nsAString & aMozBorderRightColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderRightColors(aMozBorderRightColors); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderTopColors(nsAString & aMozBorderTopColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderTopColors(aMozBorderTopColors); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderTopColors(const nsAString & aMozBorderTopColors) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderTopColors(aMozBorderTopColors); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxAlign(nsAString & aMozBoxAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBoxAlign(aMozBoxAlign); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxAlign(const nsAString & aMozBoxAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBoxAlign(aMozBoxAlign); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxDirection(nsAString & aMozBoxDirection) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBoxDirection(aMozBoxDirection); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxDirection(const nsAString & aMozBoxDirection) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBoxDirection(aMozBoxDirection); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxFlex(nsAString & aMozBoxFlex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBoxFlex(aMozBoxFlex); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxFlex(const nsAString & aMozBoxFlex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBoxFlex(aMozBoxFlex); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxOrient(nsAString & aMozBoxOrient) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBoxOrient(aMozBoxOrient); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxOrient(const nsAString & aMozBoxOrient) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBoxOrient(aMozBoxOrient); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxOrdinalGroup(nsAString & aMozBoxOrdinalGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBoxOrdinalGroup(aMozBoxOrdinalGroup); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxOrdinalGroup(const nsAString & aMozBoxOrdinalGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBoxOrdinalGroup(aMozBoxOrdinalGroup); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxPack(nsAString & aMozBoxPack) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBoxPack(aMozBoxPack); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxPack(const nsAString & aMozBoxPack) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBoxPack(aMozBoxPack); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBoxSizing(nsAString & aMozBoxSizing) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBoxSizing(aMozBoxSizing); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBoxSizing(const nsAString & aMozBoxSizing) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBoxSizing(aMozBoxSizing); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnCount(nsAString & aMozColumnCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozColumnCount(aMozColumnCount); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnCount(const nsAString & aMozColumnCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozColumnCount(aMozColumnCount); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnWidth(nsAString & aMozColumnWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozColumnWidth(aMozColumnWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnWidth(const nsAString & aMozColumnWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozColumnWidth(aMozColumnWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnGap(nsAString & aMozColumnGap) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozColumnGap(aMozColumnGap); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnGap(const nsAString & aMozColumnGap) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozColumnGap(aMozColumnGap); } \ NS_SCRIPTABLE NS_IMETHOD GetMozFloatEdge(nsAString & aMozFloatEdge) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozFloatEdge(aMozFloatEdge); } \ NS_SCRIPTABLE NS_IMETHOD SetMozFloatEdge(const nsAString & aMozFloatEdge) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozFloatEdge(aMozFloatEdge); } \ NS_SCRIPTABLE NS_IMETHOD GetMozFontFeatureSettings(nsAString & aMozFontFeatureSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozFontFeatureSettings(aMozFontFeatureSettings); } \ NS_SCRIPTABLE NS_IMETHOD SetMozFontFeatureSettings(const nsAString & aMozFontFeatureSettings) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozFontFeatureSettings(aMozFontFeatureSettings); } \ NS_SCRIPTABLE NS_IMETHOD GetMozFontLanguageOverride(nsAString & aMozFontLanguageOverride) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozFontLanguageOverride(aMozFontLanguageOverride); } \ NS_SCRIPTABLE NS_IMETHOD SetMozFontLanguageOverride(const nsAString & aMozFontLanguageOverride) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozFontLanguageOverride(aMozFontLanguageOverride); } \ NS_SCRIPTABLE NS_IMETHOD GetMozForceBrokenImageIcon(nsAString & aMozForceBrokenImageIcon) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozForceBrokenImageIcon(aMozForceBrokenImageIcon); } \ NS_SCRIPTABLE NS_IMETHOD SetMozForceBrokenImageIcon(const nsAString & aMozForceBrokenImageIcon) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozForceBrokenImageIcon(aMozForceBrokenImageIcon); } \ NS_SCRIPTABLE NS_IMETHOD GetMozImageRegion(nsAString & aMozImageRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozImageRegion(aMozImageRegion); } \ NS_SCRIPTABLE NS_IMETHOD SetMozImageRegion(const nsAString & aMozImageRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozImageRegion(aMozImageRegion); } \ NS_SCRIPTABLE NS_IMETHOD GetMozMarginEnd(nsAString & aMozMarginEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozMarginEnd(aMozMarginEnd); } \ NS_SCRIPTABLE NS_IMETHOD SetMozMarginEnd(const nsAString & aMozMarginEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozMarginEnd(aMozMarginEnd); } \ NS_SCRIPTABLE NS_IMETHOD GetMozMarginStart(nsAString & aMozMarginStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozMarginStart(aMozMarginStart); } \ NS_SCRIPTABLE NS_IMETHOD SetMozMarginStart(const nsAString & aMozMarginStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozMarginStart(aMozMarginStart); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOrient(nsAString & aMozOrient) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozOrient(aMozOrient); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOrient(const nsAString & aMozOrient) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozOrient(aMozOrient); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadius(nsAString & aMozOutlineRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozOutlineRadius(aMozOutlineRadius); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadius(const nsAString & aMozOutlineRadius) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozOutlineRadius(aMozOutlineRadius); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusTopleft(nsAString & aMozOutlineRadiusTopleft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozOutlineRadiusTopleft(aMozOutlineRadiusTopleft); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusTopleft(const nsAString & aMozOutlineRadiusTopleft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozOutlineRadiusTopleft(aMozOutlineRadiusTopleft); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusTopright(nsAString & aMozOutlineRadiusTopright) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozOutlineRadiusTopright(aMozOutlineRadiusTopright); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusTopright(const nsAString & aMozOutlineRadiusTopright) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozOutlineRadiusTopright(aMozOutlineRadiusTopright); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusBottomleft(nsAString & aMozOutlineRadiusBottomleft) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozOutlineRadiusBottomleft(aMozOutlineRadiusBottomleft); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusBottomleft(const nsAString & aMozOutlineRadiusBottomleft) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozOutlineRadiusBottomleft(aMozOutlineRadiusBottomleft); } \ NS_SCRIPTABLE NS_IMETHOD GetMozOutlineRadiusBottomright(nsAString & aMozOutlineRadiusBottomright) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozOutlineRadiusBottomright(aMozOutlineRadiusBottomright); } \ NS_SCRIPTABLE NS_IMETHOD SetMozOutlineRadiusBottomright(const nsAString & aMozOutlineRadiusBottomright) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozOutlineRadiusBottomright(aMozOutlineRadiusBottomright); } \ NS_SCRIPTABLE NS_IMETHOD GetMozPaddingEnd(nsAString & aMozPaddingEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozPaddingEnd(aMozPaddingEnd); } \ NS_SCRIPTABLE NS_IMETHOD SetMozPaddingEnd(const nsAString & aMozPaddingEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozPaddingEnd(aMozPaddingEnd); } \ NS_SCRIPTABLE NS_IMETHOD GetMozPaddingStart(nsAString & aMozPaddingStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozPaddingStart(aMozPaddingStart); } \ NS_SCRIPTABLE NS_IMETHOD SetMozPaddingStart(const nsAString & aMozPaddingStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozPaddingStart(aMozPaddingStart); } \ NS_SCRIPTABLE NS_IMETHOD GetMozUserFocus(nsAString & aMozUserFocus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozUserFocus(aMozUserFocus); } \ NS_SCRIPTABLE NS_IMETHOD SetMozUserFocus(const nsAString & aMozUserFocus) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozUserFocus(aMozUserFocus); } \ NS_SCRIPTABLE NS_IMETHOD GetMozUserInput(nsAString & aMozUserInput) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozUserInput(aMozUserInput); } \ NS_SCRIPTABLE NS_IMETHOD SetMozUserInput(const nsAString & aMozUserInput) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozUserInput(aMozUserInput); } \ NS_SCRIPTABLE NS_IMETHOD GetMozUserModify(nsAString & aMozUserModify) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozUserModify(aMozUserModify); } \ NS_SCRIPTABLE NS_IMETHOD SetMozUserModify(const nsAString & aMozUserModify) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozUserModify(aMozUserModify); } \ NS_SCRIPTABLE NS_IMETHOD GetMozUserSelect(nsAString & aMozUserSelect) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozUserSelect(aMozUserSelect); } \ NS_SCRIPTABLE NS_IMETHOD SetMozUserSelect(const nsAString & aMozUserSelect) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozUserSelect(aMozUserSelect); } \ NS_SCRIPTABLE NS_IMETHOD GetOpacity(nsAString & aOpacity) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOpacity(aOpacity); } \ NS_SCRIPTABLE NS_IMETHOD SetOpacity(const nsAString & aOpacity) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOpacity(aOpacity); } \ NS_SCRIPTABLE NS_IMETHOD GetOutlineOffset(nsAString & aOutlineOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOutlineOffset(aOutlineOffset); } \ NS_SCRIPTABLE NS_IMETHOD SetOutlineOffset(const nsAString & aOutlineOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOutlineOffset(aOutlineOffset); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextAlignLast(nsAString & aMozTextAlignLast) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTextAlignLast(aMozTextAlignLast); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextAlignLast(const nsAString & aMozTextAlignLast) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTextAlignLast(aMozTextAlignLast); } \ NS_SCRIPTABLE NS_IMETHOD GetOverflowX(nsAString & aOverflowX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOverflowX(aOverflowX); } \ NS_SCRIPTABLE NS_IMETHOD SetOverflowX(const nsAString & aOverflowX) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOverflowX(aOverflowX); } \ NS_SCRIPTABLE NS_IMETHOD GetOverflowY(nsAString & aOverflowY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOverflowY(aOverflowY); } \ NS_SCRIPTABLE NS_IMETHOD SetOverflowY(const nsAString & aOverflowY) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOverflowY(aOverflowY); } \ NS_SCRIPTABLE NS_IMETHOD GetImeMode(nsAString & aImeMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImeMode(aImeMode); } \ NS_SCRIPTABLE NS_IMETHOD SetImeMode(const nsAString & aImeMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetImeMode(aImeMode); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEnd(nsAString & aMozBorderEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderEnd(aMozBorderEnd); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEnd(const nsAString & aMozBorderEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderEnd(aMozBorderEnd); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndColor(nsAString & aMozBorderEndColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderEndColor(aMozBorderEndColor); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndColor(const nsAString & aMozBorderEndColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderEndColor(aMozBorderEndColor); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndStyle(nsAString & aMozBorderEndStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderEndStyle(aMozBorderEndStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndStyle(const nsAString & aMozBorderEndStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderEndStyle(aMozBorderEndStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderEndWidth(nsAString & aMozBorderEndWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderEndWidth(aMozBorderEndWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderEndWidth(const nsAString & aMozBorderEndWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderEndWidth(aMozBorderEndWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStart(nsAString & aMozBorderStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderStart(aMozBorderStart); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStart(const nsAString & aMozBorderStart) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderStart(aMozBorderStart); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartColor(nsAString & aMozBorderStartColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderStartColor(aMozBorderStartColor); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartColor(const nsAString & aMozBorderStartColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderStartColor(aMozBorderStartColor); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartStyle(nsAString & aMozBorderStartStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderStartStyle(aMozBorderStartStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartStyle(const nsAString & aMozBorderStartStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderStartStyle(aMozBorderStartStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderStartWidth(nsAString & aMozBorderStartWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderStartWidth(aMozBorderStartWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderStartWidth(const nsAString & aMozBorderStartWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderStartWidth(aMozBorderStartWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetMozStackSizing(nsAString & aMozStackSizing) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozStackSizing(aMozStackSizing); } \ NS_SCRIPTABLE NS_IMETHOD SetMozStackSizing(const nsAString & aMozStackSizing) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozStackSizing(aMozStackSizing); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImage(nsAString & aBorderImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderImage(aBorderImage); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImage(const nsAString & aBorderImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderImage(aBorderImage); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumns(nsAString & aMozColumns) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozColumns(aMozColumns); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumns(const nsAString & aMozColumns) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozColumns(aMozColumns); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRule(nsAString & aMozColumnRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozColumnRule(aMozColumnRule); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRule(const nsAString & aMozColumnRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozColumnRule(aMozColumnRule); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleWidth(nsAString & aMozColumnRuleWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozColumnRuleWidth(aMozColumnRuleWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleWidth(const nsAString & aMozColumnRuleWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozColumnRuleWidth(aMozColumnRuleWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleStyle(nsAString & aMozColumnRuleStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozColumnRuleStyle(aMozColumnRuleStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleStyle(const nsAString & aMozColumnRuleStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozColumnRuleStyle(aMozColumnRuleStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetMozColumnRuleColor(nsAString & aMozColumnRuleColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozColumnRuleColor(aMozColumnRuleColor); } \ NS_SCRIPTABLE NS_IMETHOD SetMozColumnRuleColor(const nsAString & aMozColumnRuleColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozColumnRuleColor(aMozColumnRuleColor); } \ NS_SCRIPTABLE NS_IMETHOD GetWordBreak(nsAString & aWordBreak) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWordBreak(aWordBreak); } \ NS_SCRIPTABLE NS_IMETHOD SetWordBreak(const nsAString & aWordBreak) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWordBreak(aWordBreak); } \ NS_SCRIPTABLE NS_IMETHOD GetWordWrap(nsAString & aWordWrap) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWordWrap(aWordWrap); } \ NS_SCRIPTABLE NS_IMETHOD SetWordWrap(const nsAString & aWordWrap) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWordWrap(aWordWrap); } \ NS_SCRIPTABLE NS_IMETHOD GetMozHyphens(nsAString & aMozHyphens) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozHyphens(aMozHyphens); } \ NS_SCRIPTABLE NS_IMETHOD SetMozHyphens(const nsAString & aMozHyphens) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozHyphens(aMozHyphens); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransform(nsAString & aMozTransform) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTransform(aMozTransform); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransform(const nsAString & aMozTransform) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTransform(aMozTransform); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransformOrigin(nsAString & aMozTransformOrigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTransformOrigin(aMozTransformOrigin); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransformOrigin(const nsAString & aMozTransformOrigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTransformOrigin(aMozTransformOrigin); } \ NS_SCRIPTABLE NS_IMETHOD GetMozPerspective(nsAString & aMozPerspective) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozPerspective(aMozPerspective); } \ NS_SCRIPTABLE NS_IMETHOD SetMozPerspective(const nsAString & aMozPerspective) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozPerspective(aMozPerspective); } \ NS_SCRIPTABLE NS_IMETHOD GetMozPerspectiveOrigin(nsAString & aMozPerspectiveOrigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozPerspectiveOrigin(aMozPerspectiveOrigin); } \ NS_SCRIPTABLE NS_IMETHOD SetMozPerspectiveOrigin(const nsAString & aMozPerspectiveOrigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozPerspectiveOrigin(aMozPerspectiveOrigin); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBackfaceVisibility(nsAString & aMozBackfaceVisibility) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBackfaceVisibility(aMozBackfaceVisibility); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBackfaceVisibility(const nsAString & aMozBackfaceVisibility) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBackfaceVisibility(aMozBackfaceVisibility); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransformStyle(nsAString & aMozTransformStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTransformStyle(aMozTransformStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransformStyle(const nsAString & aMozTransformStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTransformStyle(aMozTransformStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetMozWindowShadow(nsAString & aMozWindowShadow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozWindowShadow(aMozWindowShadow); } \ NS_SCRIPTABLE NS_IMETHOD SetMozWindowShadow(const nsAString & aMozWindowShadow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozWindowShadow(aMozWindowShadow); } \ NS_SCRIPTABLE NS_IMETHOD GetBackgroundSize(nsAString & aBackgroundSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackgroundSize(aBackgroundSize); } \ NS_SCRIPTABLE NS_IMETHOD SetBackgroundSize(const nsAString & aBackgroundSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackgroundSize(aBackgroundSize); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextBlink(nsAString & aMozTextBlink) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTextBlink(aMozTextBlink); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextBlink(const nsAString & aMozTextBlink) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTextBlink(aMozTextBlink); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationColor(nsAString & aMozTextDecorationColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTextDecorationColor(aMozTextDecorationColor); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationColor(const nsAString & aMozTextDecorationColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTextDecorationColor(aMozTextDecorationColor); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationLine(nsAString & aMozTextDecorationLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTextDecorationLine(aMozTextDecorationLine); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationLine(const nsAString & aMozTextDecorationLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTextDecorationLine(aMozTextDecorationLine); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextDecorationStyle(nsAString & aMozTextDecorationStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTextDecorationStyle(aMozTextDecorationStyle); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextDecorationStyle(const nsAString & aMozTextDecorationStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTextDecorationStyle(aMozTextDecorationStyle); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionProperty(nsAString & aMozTransitionProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTransitionProperty(aMozTransitionProperty); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionProperty(const nsAString & aMozTransitionProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTransitionProperty(aMozTransitionProperty); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionDuration(nsAString & aMozTransitionDuration) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTransitionDuration(aMozTransitionDuration); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionDuration(const nsAString & aMozTransitionDuration) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTransitionDuration(aMozTransitionDuration); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionDelay(nsAString & aMozTransitionDelay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTransitionDelay(aMozTransitionDelay); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionDelay(const nsAString & aMozTransitionDelay) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTransitionDelay(aMozTransitionDelay); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransitionTimingFunction(nsAString & aMozTransitionTimingFunction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTransitionTimingFunction(aMozTransitionTimingFunction); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransitionTimingFunction(const nsAString & aMozTransitionTimingFunction) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTransitionTimingFunction(aMozTransitionTimingFunction); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTransition(nsAString & aMozTransition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTransition(aMozTransition); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTransition(const nsAString & aMozTransition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTransition(aMozTransition); } \ NS_SCRIPTABLE NS_IMETHOD GetPointerEvents(nsAString & aPointerEvents) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPointerEvents(aPointerEvents); } \ NS_SCRIPTABLE NS_IMETHOD SetPointerEvents(const nsAString & aPointerEvents) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPointerEvents(aPointerEvents); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTabSize(nsAString & aMozTabSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTabSize(aMozTabSize); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTabSize(const nsAString & aMozTabSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTabSize(aMozTabSize); } \ NS_SCRIPTABLE NS_IMETHOD GetResize(nsAString & aResize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResize(aResize); } \ NS_SCRIPTABLE NS_IMETHOD SetResize(const nsAString & aResize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResize(aResize); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationName(nsAString & aMozAnimationName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAnimationName(aMozAnimationName); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationName(const nsAString & aMozAnimationName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozAnimationName(aMozAnimationName); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDuration(nsAString & aMozAnimationDuration) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAnimationDuration(aMozAnimationDuration); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDuration(const nsAString & aMozAnimationDuration) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozAnimationDuration(aMozAnimationDuration); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDelay(nsAString & aMozAnimationDelay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAnimationDelay(aMozAnimationDelay); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDelay(const nsAString & aMozAnimationDelay) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozAnimationDelay(aMozAnimationDelay); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationTimingFunction(nsAString & aMozAnimationTimingFunction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAnimationTimingFunction(aMozAnimationTimingFunction); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationTimingFunction(const nsAString & aMozAnimationTimingFunction) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozAnimationTimingFunction(aMozAnimationTimingFunction); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationDirection(nsAString & aMozAnimationDirection) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAnimationDirection(aMozAnimationDirection); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationDirection(const nsAString & aMozAnimationDirection) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozAnimationDirection(aMozAnimationDirection); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationFillMode(nsAString & aMozAnimationFillMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAnimationFillMode(aMozAnimationFillMode); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationFillMode(const nsAString & aMozAnimationFillMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozAnimationFillMode(aMozAnimationFillMode); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationIterationCount(nsAString & aMozAnimationIterationCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAnimationIterationCount(aMozAnimationIterationCount); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationIterationCount(const nsAString & aMozAnimationIterationCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozAnimationIterationCount(aMozAnimationIterationCount); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimationPlayState(nsAString & aMozAnimationPlayState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAnimationPlayState(aMozAnimationPlayState); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimationPlayState(const nsAString & aMozAnimationPlayState) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozAnimationPlayState(aMozAnimationPlayState); } \ NS_SCRIPTABLE NS_IMETHOD GetMozAnimation(nsAString & aMozAnimation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAnimation(aMozAnimation); } \ NS_SCRIPTABLE NS_IMETHOD SetMozAnimation(const nsAString & aMozAnimation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozAnimation(aMozAnimation); } \ NS_SCRIPTABLE NS_IMETHOD GetMozTextSizeAdjust(nsAString & aMozTextSizeAdjust) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozTextSizeAdjust(aMozTextSizeAdjust); } \ NS_SCRIPTABLE NS_IMETHOD SetMozTextSizeAdjust(const nsAString & aMozTextSizeAdjust) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozTextSizeAdjust(aMozTextSizeAdjust); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageSource(nsAString & aBorderImageSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderImageSource(aBorderImageSource); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageSource(const nsAString & aBorderImageSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderImageSource(aBorderImageSource); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageSlice(nsAString & aBorderImageSlice) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderImageSlice(aBorderImageSlice); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageSlice(const nsAString & aBorderImageSlice) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderImageSlice(aBorderImageSlice); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageWidth(nsAString & aBorderImageWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderImageWidth(aBorderImageWidth); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageWidth(const nsAString & aBorderImageWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderImageWidth(aBorderImageWidth); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageOutset(nsAString & aBorderImageOutset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderImageOutset(aBorderImageOutset); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageOutset(const nsAString & aBorderImageOutset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderImageOutset(aBorderImageOutset); } \ NS_SCRIPTABLE NS_IMETHOD GetBorderImageRepeat(nsAString & aBorderImageRepeat) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBorderImageRepeat(aBorderImageRepeat); } \ NS_SCRIPTABLE NS_IMETHOD SetBorderImageRepeat(const nsAString & aBorderImageRepeat) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBorderImageRepeat(aBorderImageRepeat); } \ NS_SCRIPTABLE NS_IMETHOD GetMozBorderImage(nsAString & aMozBorderImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozBorderImage(aMozBorderImage); } \ NS_SCRIPTABLE NS_IMETHOD SetMozBorderImage(const nsAString & aMozBorderImage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozBorderImage(aMozBorderImage); } #if 0 /* Use the code below as a template for the implementation class for this interface. */ /* Header file */ class nsDOMCSS2Properties : public nsIDOMCSS2Properties { public: NS_DECL_ISUPPORTS NS_DECL_NSIDOMCSS2PROPERTIES nsDOMCSS2Properties(); private: ~nsDOMCSS2Properties(); protected: /* additional members */ }; /* Implementation file */ NS_IMPL_ISUPPORTS1(nsDOMCSS2Properties, nsIDOMCSS2Properties) nsDOMCSS2Properties::nsDOMCSS2Properties() { /* member initializers and constructor code */ } nsDOMCSS2Properties::~nsDOMCSS2Properties() { /* destructor code */ } /* attribute DOMString background; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBackground(nsAString & aBackground) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBackground(const nsAString & aBackground) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString backgroundAttachment; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBackgroundAttachment(nsAString & aBackgroundAttachment) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBackgroundAttachment(const nsAString & aBackgroundAttachment) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString backgroundColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBackgroundColor(nsAString & aBackgroundColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBackgroundColor(const nsAString & aBackgroundColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString backgroundImage; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBackgroundImage(nsAString & aBackgroundImage) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBackgroundImage(const nsAString & aBackgroundImage) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString backgroundPosition; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBackgroundPosition(nsAString & aBackgroundPosition) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBackgroundPosition(const nsAString & aBackgroundPosition) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString backgroundRepeat; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBackgroundRepeat(nsAString & aBackgroundRepeat) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBackgroundRepeat(const nsAString & aBackgroundRepeat) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString border; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorder(nsAString & aBorder) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorder(const nsAString & aBorder) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderCollapse; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderCollapse(nsAString & aBorderCollapse) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderCollapse(const nsAString & aBorderCollapse) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderColor(nsAString & aBorderColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderColor(const nsAString & aBorderColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderSpacing; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderSpacing(nsAString & aBorderSpacing) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderSpacing(const nsAString & aBorderSpacing) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderStyle(nsAString & aBorderStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderStyle(const nsAString & aBorderStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderTop; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderTop(nsAString & aBorderTop) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderTop(const nsAString & aBorderTop) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderRight; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderRight(nsAString & aBorderRight) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderRight(const nsAString & aBorderRight) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderBottom; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderBottom(nsAString & aBorderBottom) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderBottom(const nsAString & aBorderBottom) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderLeft; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderLeft(nsAString & aBorderLeft) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderLeft(const nsAString & aBorderLeft) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderTopColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderTopColor(nsAString & aBorderTopColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderTopColor(const nsAString & aBorderTopColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderRightColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderRightColor(nsAString & aBorderRightColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderRightColor(const nsAString & aBorderRightColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderBottomColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderBottomColor(nsAString & aBorderBottomColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderBottomColor(const nsAString & aBorderBottomColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderLeftColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderLeftColor(nsAString & aBorderLeftColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderLeftColor(const nsAString & aBorderLeftColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderTopStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderTopStyle(nsAString & aBorderTopStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderTopStyle(const nsAString & aBorderTopStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderRightStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderRightStyle(nsAString & aBorderRightStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderRightStyle(const nsAString & aBorderRightStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderBottomStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderBottomStyle(nsAString & aBorderBottomStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderBottomStyle(const nsAString & aBorderBottomStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderLeftStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderLeftStyle(nsAString & aBorderLeftStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderLeftStyle(const nsAString & aBorderLeftStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderTopWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderTopWidth(nsAString & aBorderTopWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderTopWidth(const nsAString & aBorderTopWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderRightWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderRightWidth(nsAString & aBorderRightWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderRightWidth(const nsAString & aBorderRightWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderBottomWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderBottomWidth(nsAString & aBorderBottomWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderBottomWidth(const nsAString & aBorderBottomWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderLeftWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderLeftWidth(nsAString & aBorderLeftWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderLeftWidth(const nsAString & aBorderLeftWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderWidth(nsAString & aBorderWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderWidth(const nsAString & aBorderWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderRadius; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderRadius(nsAString & aBorderRadius) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderRadius(const nsAString & aBorderRadius) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderTopLeftRadius; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderTopLeftRadius(nsAString & aBorderTopLeftRadius) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderTopLeftRadius(const nsAString & aBorderTopLeftRadius) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderTopRightRadius; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderTopRightRadius(nsAString & aBorderTopRightRadius) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderTopRightRadius(const nsAString & aBorderTopRightRadius) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderBottomLeftRadius; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderBottomLeftRadius(nsAString & aBorderBottomLeftRadius) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderBottomLeftRadius(const nsAString & aBorderBottomLeftRadius) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderBottomRightRadius; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderBottomRightRadius(nsAString & aBorderBottomRightRadius) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderBottomRightRadius(const nsAString & aBorderBottomRightRadius) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString bottom; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBottom(nsAString & aBottom) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBottom(const nsAString & aBottom) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString boxShadow; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBoxShadow(nsAString & aBoxShadow) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBoxShadow(const nsAString & aBoxShadow) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString captionSide; */ NS_IMETHODIMP nsDOMCSS2Properties::GetCaptionSide(nsAString & aCaptionSide) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetCaptionSide(const nsAString & aCaptionSide) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString clear; */ NS_IMETHODIMP nsDOMCSS2Properties::GetClear(nsAString & aClear) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetClear(const nsAString & aClear) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString clip; */ NS_IMETHODIMP nsDOMCSS2Properties::GetClip(nsAString & aClip) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetClip(const nsAString & aClip) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString color; */ NS_IMETHODIMP nsDOMCSS2Properties::GetColor(nsAString & aColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetColor(const nsAString & aColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString content; */ NS_IMETHODIMP nsDOMCSS2Properties::GetContent(nsAString & aContent) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetContent(const nsAString & aContent) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString counterIncrement; */ NS_IMETHODIMP nsDOMCSS2Properties::GetCounterIncrement(nsAString & aCounterIncrement) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetCounterIncrement(const nsAString & aCounterIncrement) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString counterReset; */ NS_IMETHODIMP nsDOMCSS2Properties::GetCounterReset(nsAString & aCounterReset) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetCounterReset(const nsAString & aCounterReset) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString cursor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetCursor(nsAString & aCursor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetCursor(const nsAString & aCursor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString direction; */ NS_IMETHODIMP nsDOMCSS2Properties::GetDirection(nsAString & aDirection) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetDirection(const nsAString & aDirection) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString display; */ NS_IMETHODIMP nsDOMCSS2Properties::GetDisplay(nsAString & aDisplay) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetDisplay(const nsAString & aDisplay) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString emptyCells; */ NS_IMETHODIMP nsDOMCSS2Properties::GetEmptyCells(nsAString & aEmptyCells) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetEmptyCells(const nsAString & aEmptyCells) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString cssFloat; */ NS_IMETHODIMP nsDOMCSS2Properties::GetCssFloat(nsAString & aCssFloat) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetCssFloat(const nsAString & aCssFloat) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString font; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFont(nsAString & aFont) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFont(const nsAString & aFont) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString fontFamily; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFontFamily(nsAString & aFontFamily) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFontFamily(const nsAString & aFontFamily) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString fontSize; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFontSize(nsAString & aFontSize) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFontSize(const nsAString & aFontSize) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString fontSizeAdjust; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFontSizeAdjust(nsAString & aFontSizeAdjust) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFontSizeAdjust(const nsAString & aFontSizeAdjust) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString fontStretch; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFontStretch(nsAString & aFontStretch) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFontStretch(const nsAString & aFontStretch) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString fontStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFontStyle(nsAString & aFontStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFontStyle(const nsAString & aFontStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString fontVariant; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFontVariant(nsAString & aFontVariant) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFontVariant(const nsAString & aFontVariant) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString fontWeight; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFontWeight(nsAString & aFontWeight) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFontWeight(const nsAString & aFontWeight) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString height; */ NS_IMETHODIMP nsDOMCSS2Properties::GetHeight(nsAString & aHeight) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetHeight(const nsAString & aHeight) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString left; */ NS_IMETHODIMP nsDOMCSS2Properties::GetLeft(nsAString & aLeft) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetLeft(const nsAString & aLeft) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString letterSpacing; */ NS_IMETHODIMP nsDOMCSS2Properties::GetLetterSpacing(nsAString & aLetterSpacing) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetLetterSpacing(const nsAString & aLetterSpacing) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString lineHeight; */ NS_IMETHODIMP nsDOMCSS2Properties::GetLineHeight(nsAString & aLineHeight) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetLineHeight(const nsAString & aLineHeight) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString listStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetListStyle(nsAString & aListStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetListStyle(const nsAString & aListStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString listStyleImage; */ NS_IMETHODIMP nsDOMCSS2Properties::GetListStyleImage(nsAString & aListStyleImage) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetListStyleImage(const nsAString & aListStyleImage) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString listStylePosition; */ NS_IMETHODIMP nsDOMCSS2Properties::GetListStylePosition(nsAString & aListStylePosition) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetListStylePosition(const nsAString & aListStylePosition) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString listStyleType; */ NS_IMETHODIMP nsDOMCSS2Properties::GetListStyleType(nsAString & aListStyleType) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetListStyleType(const nsAString & aListStyleType) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString margin; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMargin(nsAString & aMargin) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMargin(const nsAString & aMargin) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString marginTop; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMarginTop(nsAString & aMarginTop) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMarginTop(const nsAString & aMarginTop) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString marginRight; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMarginRight(nsAString & aMarginRight) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMarginRight(const nsAString & aMarginRight) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString marginBottom; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMarginBottom(nsAString & aMarginBottom) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMarginBottom(const nsAString & aMarginBottom) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString marginLeft; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMarginLeft(nsAString & aMarginLeft) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMarginLeft(const nsAString & aMarginLeft) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString markerOffset; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMarkerOffset(nsAString & aMarkerOffset) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMarkerOffset(const nsAString & aMarkerOffset) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString marks; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMarks(nsAString & aMarks) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMarks(const nsAString & aMarks) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString maxHeight; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMaxHeight(nsAString & aMaxHeight) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMaxHeight(const nsAString & aMaxHeight) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString maxWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMaxWidth(nsAString & aMaxWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMaxWidth(const nsAString & aMaxWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString minHeight; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMinHeight(nsAString & aMinHeight) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMinHeight(const nsAString & aMinHeight) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString minWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMinWidth(nsAString & aMinWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMinWidth(const nsAString & aMinWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString orphans; */ NS_IMETHODIMP nsDOMCSS2Properties::GetOrphans(nsAString & aOrphans) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetOrphans(const nsAString & aOrphans) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString outline; */ NS_IMETHODIMP nsDOMCSS2Properties::GetOutline(nsAString & aOutline) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetOutline(const nsAString & aOutline) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString outlineColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetOutlineColor(nsAString & aOutlineColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetOutlineColor(const nsAString & aOutlineColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString outlineStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetOutlineStyle(nsAString & aOutlineStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetOutlineStyle(const nsAString & aOutlineStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString outlineWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetOutlineWidth(nsAString & aOutlineWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetOutlineWidth(const nsAString & aOutlineWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString overflow; */ NS_IMETHODIMP nsDOMCSS2Properties::GetOverflow(nsAString & aOverflow) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetOverflow(const nsAString & aOverflow) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString padding; */ NS_IMETHODIMP nsDOMCSS2Properties::GetPadding(nsAString & aPadding) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetPadding(const nsAString & aPadding) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString paddingTop; */ NS_IMETHODIMP nsDOMCSS2Properties::GetPaddingTop(nsAString & aPaddingTop) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetPaddingTop(const nsAString & aPaddingTop) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString paddingRight; */ NS_IMETHODIMP nsDOMCSS2Properties::GetPaddingRight(nsAString & aPaddingRight) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetPaddingRight(const nsAString & aPaddingRight) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString paddingBottom; */ NS_IMETHODIMP nsDOMCSS2Properties::GetPaddingBottom(nsAString & aPaddingBottom) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetPaddingBottom(const nsAString & aPaddingBottom) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString paddingLeft; */ NS_IMETHODIMP nsDOMCSS2Properties::GetPaddingLeft(nsAString & aPaddingLeft) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetPaddingLeft(const nsAString & aPaddingLeft) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString page; */ NS_IMETHODIMP nsDOMCSS2Properties::GetPage(nsAString & aPage) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetPage(const nsAString & aPage) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString pageBreakAfter; */ NS_IMETHODIMP nsDOMCSS2Properties::GetPageBreakAfter(nsAString & aPageBreakAfter) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetPageBreakAfter(const nsAString & aPageBreakAfter) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString pageBreakBefore; */ NS_IMETHODIMP nsDOMCSS2Properties::GetPageBreakBefore(nsAString & aPageBreakBefore) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetPageBreakBefore(const nsAString & aPageBreakBefore) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString pageBreakInside; */ NS_IMETHODIMP nsDOMCSS2Properties::GetPageBreakInside(nsAString & aPageBreakInside) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetPageBreakInside(const nsAString & aPageBreakInside) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString position; */ NS_IMETHODIMP nsDOMCSS2Properties::GetPosition(nsAString & aPosition) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetPosition(const nsAString & aPosition) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString quotes; */ NS_IMETHODIMP nsDOMCSS2Properties::GetQuotes(nsAString & aQuotes) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetQuotes(const nsAString & aQuotes) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString right; */ NS_IMETHODIMP nsDOMCSS2Properties::GetRight(nsAString & aRight) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetRight(const nsAString & aRight) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString size; */ NS_IMETHODIMP nsDOMCSS2Properties::GetSize(nsAString & aSize) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetSize(const nsAString & aSize) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString tableLayout; */ NS_IMETHODIMP nsDOMCSS2Properties::GetTableLayout(nsAString & aTableLayout) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetTableLayout(const nsAString & aTableLayout) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString textAlign; */ NS_IMETHODIMP nsDOMCSS2Properties::GetTextAlign(nsAString & aTextAlign) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetTextAlign(const nsAString & aTextAlign) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString textDecoration; */ NS_IMETHODIMP nsDOMCSS2Properties::GetTextDecoration(nsAString & aTextDecoration) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetTextDecoration(const nsAString & aTextDecoration) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString textIndent; */ NS_IMETHODIMP nsDOMCSS2Properties::GetTextIndent(nsAString & aTextIndent) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetTextIndent(const nsAString & aTextIndent) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString textOverflow; */ NS_IMETHODIMP nsDOMCSS2Properties::GetTextOverflow(nsAString & aTextOverflow) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetTextOverflow(const nsAString & aTextOverflow) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString textShadow; */ NS_IMETHODIMP nsDOMCSS2Properties::GetTextShadow(nsAString & aTextShadow) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetTextShadow(const nsAString & aTextShadow) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString textTransform; */ NS_IMETHODIMP nsDOMCSS2Properties::GetTextTransform(nsAString & aTextTransform) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetTextTransform(const nsAString & aTextTransform) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString top; */ NS_IMETHODIMP nsDOMCSS2Properties::GetTop(nsAString & aTop) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetTop(const nsAString & aTop) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString unicodeBidi; */ NS_IMETHODIMP nsDOMCSS2Properties::GetUnicodeBidi(nsAString & aUnicodeBidi) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetUnicodeBidi(const nsAString & aUnicodeBidi) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString verticalAlign; */ NS_IMETHODIMP nsDOMCSS2Properties::GetVerticalAlign(nsAString & aVerticalAlign) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetVerticalAlign(const nsAString & aVerticalAlign) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString visibility; */ NS_IMETHODIMP nsDOMCSS2Properties::GetVisibility(nsAString & aVisibility) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetVisibility(const nsAString & aVisibility) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString whiteSpace; */ NS_IMETHODIMP nsDOMCSS2Properties::GetWhiteSpace(nsAString & aWhiteSpace) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetWhiteSpace(const nsAString & aWhiteSpace) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString widows; */ NS_IMETHODIMP nsDOMCSS2Properties::GetWidows(nsAString & aWidows) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetWidows(const nsAString & aWidows) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString width; */ NS_IMETHODIMP nsDOMCSS2Properties::GetWidth(nsAString & aWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetWidth(const nsAString & aWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString wordSpacing; */ NS_IMETHODIMP nsDOMCSS2Properties::GetWordSpacing(nsAString & aWordSpacing) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetWordSpacing(const nsAString & aWordSpacing) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString zIndex; */ NS_IMETHODIMP nsDOMCSS2Properties::GetZIndex(nsAString & aZIndex) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetZIndex(const nsAString & aZIndex) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString clipPath; */ NS_IMETHODIMP nsDOMCSS2Properties::GetClipPath(nsAString & aClipPath) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetClipPath(const nsAString & aClipPath) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString clipRule; */ NS_IMETHODIMP nsDOMCSS2Properties::GetClipRule(nsAString & aClipRule) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetClipRule(const nsAString & aClipRule) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString colorInterpolation; */ NS_IMETHODIMP nsDOMCSS2Properties::GetColorInterpolation(nsAString & aColorInterpolation) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetColorInterpolation(const nsAString & aColorInterpolation) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString colorInterpolationFilters; */ NS_IMETHODIMP nsDOMCSS2Properties::GetColorInterpolationFilters(nsAString & aColorInterpolationFilters) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetColorInterpolationFilters(const nsAString & aColorInterpolationFilters) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString dominantBaseline; */ NS_IMETHODIMP nsDOMCSS2Properties::GetDominantBaseline(nsAString & aDominantBaseline) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetDominantBaseline(const nsAString & aDominantBaseline) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString fill; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFill(nsAString & aFill) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFill(const nsAString & aFill) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString fillOpacity; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFillOpacity(nsAString & aFillOpacity) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFillOpacity(const nsAString & aFillOpacity) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString fillRule; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFillRule(nsAString & aFillRule) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFillRule(const nsAString & aFillRule) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString filter; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFilter(nsAString & aFilter) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFilter(const nsAString & aFilter) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString floodColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFloodColor(nsAString & aFloodColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFloodColor(const nsAString & aFloodColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString floodOpacity; */ NS_IMETHODIMP nsDOMCSS2Properties::GetFloodOpacity(nsAString & aFloodOpacity) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetFloodOpacity(const nsAString & aFloodOpacity) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString imageRendering; */ NS_IMETHODIMP nsDOMCSS2Properties::GetImageRendering(nsAString & aImageRendering) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetImageRendering(const nsAString & aImageRendering) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString lightingColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetLightingColor(nsAString & aLightingColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetLightingColor(const nsAString & aLightingColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString marker; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMarker(nsAString & aMarker) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMarker(const nsAString & aMarker) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString markerEnd; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMarkerEnd(nsAString & aMarkerEnd) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMarkerEnd(const nsAString & aMarkerEnd) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString markerMid; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMarkerMid(nsAString & aMarkerMid) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMarkerMid(const nsAString & aMarkerMid) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString markerStart; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMarkerStart(nsAString & aMarkerStart) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMarkerStart(const nsAString & aMarkerStart) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString mask; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMask(nsAString & aMask) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMask(const nsAString & aMask) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString shapeRendering; */ NS_IMETHODIMP nsDOMCSS2Properties::GetShapeRendering(nsAString & aShapeRendering) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetShapeRendering(const nsAString & aShapeRendering) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString stopColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetStopColor(nsAString & aStopColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetStopColor(const nsAString & aStopColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString stopOpacity; */ NS_IMETHODIMP nsDOMCSS2Properties::GetStopOpacity(nsAString & aStopOpacity) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetStopOpacity(const nsAString & aStopOpacity) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString stroke; */ NS_IMETHODIMP nsDOMCSS2Properties::GetStroke(nsAString & aStroke) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetStroke(const nsAString & aStroke) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString strokeDasharray; */ NS_IMETHODIMP nsDOMCSS2Properties::GetStrokeDasharray(nsAString & aStrokeDasharray) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetStrokeDasharray(const nsAString & aStrokeDasharray) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString strokeDashoffset; */ NS_IMETHODIMP nsDOMCSS2Properties::GetStrokeDashoffset(nsAString & aStrokeDashoffset) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetStrokeDashoffset(const nsAString & aStrokeDashoffset) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString strokeLinecap; */ NS_IMETHODIMP nsDOMCSS2Properties::GetStrokeLinecap(nsAString & aStrokeLinecap) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetStrokeLinecap(const nsAString & aStrokeLinecap) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString strokeLinejoin; */ NS_IMETHODIMP nsDOMCSS2Properties::GetStrokeLinejoin(nsAString & aStrokeLinejoin) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetStrokeLinejoin(const nsAString & aStrokeLinejoin) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString strokeMiterlimit; */ NS_IMETHODIMP nsDOMCSS2Properties::GetStrokeMiterlimit(nsAString & aStrokeMiterlimit) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetStrokeMiterlimit(const nsAString & aStrokeMiterlimit) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString strokeOpacity; */ NS_IMETHODIMP nsDOMCSS2Properties::GetStrokeOpacity(nsAString & aStrokeOpacity) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetStrokeOpacity(const nsAString & aStrokeOpacity) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString strokeWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetStrokeWidth(nsAString & aStrokeWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetStrokeWidth(const nsAString & aStrokeWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString textAnchor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetTextAnchor(nsAString & aTextAnchor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetTextAnchor(const nsAString & aTextAnchor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString textRendering; */ NS_IMETHODIMP nsDOMCSS2Properties::GetTextRendering(nsAString & aTextRendering) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetTextRendering(const nsAString & aTextRendering) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString vectorEffect; */ NS_IMETHODIMP nsDOMCSS2Properties::GetVectorEffect(nsAString & aVectorEffect) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetVectorEffect(const nsAString & aVectorEffect) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozAppearance; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozAppearance(nsAString & aMozAppearance) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozAppearance(const nsAString & aMozAppearance) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString backgroundClip; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBackgroundClip(nsAString & aBackgroundClip) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBackgroundClip(const nsAString & aBackgroundClip) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBackgroundInlinePolicy; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBackgroundInlinePolicy(nsAString & aMozBackgroundInlinePolicy) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBackgroundInlinePolicy(const nsAString & aMozBackgroundInlinePolicy) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString backgroundOrigin; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBackgroundOrigin(nsAString & aBackgroundOrigin) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBackgroundOrigin(const nsAString & aBackgroundOrigin) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBinding; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBinding(nsAString & aMozBinding) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBinding(const nsAString & aMozBinding) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderBottomColors; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderBottomColors(nsAString & aMozBorderBottomColors) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderBottomColors(const nsAString & aMozBorderBottomColors) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderLeftColors; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderLeftColors(nsAString & aMozBorderLeftColors) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderLeftColors(const nsAString & aMozBorderLeftColors) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderRightColors; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderRightColors(nsAString & aMozBorderRightColors) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderRightColors(const nsAString & aMozBorderRightColors) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderTopColors; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderTopColors(nsAString & aMozBorderTopColors) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderTopColors(const nsAString & aMozBorderTopColors) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBoxAlign; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBoxAlign(nsAString & aMozBoxAlign) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBoxAlign(const nsAString & aMozBoxAlign) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBoxDirection; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBoxDirection(nsAString & aMozBoxDirection) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBoxDirection(const nsAString & aMozBoxDirection) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBoxFlex; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBoxFlex(nsAString & aMozBoxFlex) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBoxFlex(const nsAString & aMozBoxFlex) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBoxOrient; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBoxOrient(nsAString & aMozBoxOrient) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBoxOrient(const nsAString & aMozBoxOrient) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBoxOrdinalGroup; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBoxOrdinalGroup(nsAString & aMozBoxOrdinalGroup) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBoxOrdinalGroup(const nsAString & aMozBoxOrdinalGroup) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBoxPack; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBoxPack(nsAString & aMozBoxPack) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBoxPack(const nsAString & aMozBoxPack) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBoxSizing; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBoxSizing(nsAString & aMozBoxSizing) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBoxSizing(const nsAString & aMozBoxSizing) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozColumnCount; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozColumnCount(nsAString & aMozColumnCount) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozColumnCount(const nsAString & aMozColumnCount) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozColumnWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozColumnWidth(nsAString & aMozColumnWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozColumnWidth(const nsAString & aMozColumnWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozColumnGap; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozColumnGap(nsAString & aMozColumnGap) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozColumnGap(const nsAString & aMozColumnGap) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozFloatEdge; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozFloatEdge(nsAString & aMozFloatEdge) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozFloatEdge(const nsAString & aMozFloatEdge) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozFontFeatureSettings; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozFontFeatureSettings(nsAString & aMozFontFeatureSettings) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozFontFeatureSettings(const nsAString & aMozFontFeatureSettings) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozFontLanguageOverride; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozFontLanguageOverride(nsAString & aMozFontLanguageOverride) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozFontLanguageOverride(const nsAString & aMozFontLanguageOverride) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozForceBrokenImageIcon; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozForceBrokenImageIcon(nsAString & aMozForceBrokenImageIcon) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozForceBrokenImageIcon(const nsAString & aMozForceBrokenImageIcon) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozImageRegion; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozImageRegion(nsAString & aMozImageRegion) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozImageRegion(const nsAString & aMozImageRegion) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozMarginEnd; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozMarginEnd(nsAString & aMozMarginEnd) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozMarginEnd(const nsAString & aMozMarginEnd) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozMarginStart; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozMarginStart(nsAString & aMozMarginStart) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozMarginStart(const nsAString & aMozMarginStart) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozOrient; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozOrient(nsAString & aMozOrient) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozOrient(const nsAString & aMozOrient) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozOutlineRadius; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozOutlineRadius(nsAString & aMozOutlineRadius) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozOutlineRadius(const nsAString & aMozOutlineRadius) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozOutlineRadiusTopleft; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozOutlineRadiusTopleft(nsAString & aMozOutlineRadiusTopleft) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozOutlineRadiusTopleft(const nsAString & aMozOutlineRadiusTopleft) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozOutlineRadiusTopright; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozOutlineRadiusTopright(nsAString & aMozOutlineRadiusTopright) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozOutlineRadiusTopright(const nsAString & aMozOutlineRadiusTopright) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozOutlineRadiusBottomleft; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozOutlineRadiusBottomleft(nsAString & aMozOutlineRadiusBottomleft) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozOutlineRadiusBottomleft(const nsAString & aMozOutlineRadiusBottomleft) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozOutlineRadiusBottomright; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozOutlineRadiusBottomright(nsAString & aMozOutlineRadiusBottomright) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozOutlineRadiusBottomright(const nsAString & aMozOutlineRadiusBottomright) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozPaddingEnd; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozPaddingEnd(nsAString & aMozPaddingEnd) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozPaddingEnd(const nsAString & aMozPaddingEnd) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozPaddingStart; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozPaddingStart(nsAString & aMozPaddingStart) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozPaddingStart(const nsAString & aMozPaddingStart) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozUserFocus; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozUserFocus(nsAString & aMozUserFocus) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozUserFocus(const nsAString & aMozUserFocus) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozUserInput; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozUserInput(nsAString & aMozUserInput) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozUserInput(const nsAString & aMozUserInput) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozUserModify; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozUserModify(nsAString & aMozUserModify) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozUserModify(const nsAString & aMozUserModify) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozUserSelect; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozUserSelect(nsAString & aMozUserSelect) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozUserSelect(const nsAString & aMozUserSelect) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString opacity; */ NS_IMETHODIMP nsDOMCSS2Properties::GetOpacity(nsAString & aOpacity) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetOpacity(const nsAString & aOpacity) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString outlineOffset; */ NS_IMETHODIMP nsDOMCSS2Properties::GetOutlineOffset(nsAString & aOutlineOffset) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetOutlineOffset(const nsAString & aOutlineOffset) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTextAlignLast; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTextAlignLast(nsAString & aMozTextAlignLast) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTextAlignLast(const nsAString & aMozTextAlignLast) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString overflowX; */ NS_IMETHODIMP nsDOMCSS2Properties::GetOverflowX(nsAString & aOverflowX) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetOverflowX(const nsAString & aOverflowX) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString overflowY; */ NS_IMETHODIMP nsDOMCSS2Properties::GetOverflowY(nsAString & aOverflowY) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetOverflowY(const nsAString & aOverflowY) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString imeMode; */ NS_IMETHODIMP nsDOMCSS2Properties::GetImeMode(nsAString & aImeMode) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetImeMode(const nsAString & aImeMode) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderEnd; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderEnd(nsAString & aMozBorderEnd) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderEnd(const nsAString & aMozBorderEnd) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderEndColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderEndColor(nsAString & aMozBorderEndColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderEndColor(const nsAString & aMozBorderEndColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderEndStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderEndStyle(nsAString & aMozBorderEndStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderEndStyle(const nsAString & aMozBorderEndStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderEndWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderEndWidth(nsAString & aMozBorderEndWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderEndWidth(const nsAString & aMozBorderEndWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderStart; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderStart(nsAString & aMozBorderStart) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderStart(const nsAString & aMozBorderStart) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderStartColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderStartColor(nsAString & aMozBorderStartColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderStartColor(const nsAString & aMozBorderStartColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderStartStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderStartStyle(nsAString & aMozBorderStartStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderStartStyle(const nsAString & aMozBorderStartStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderStartWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderStartWidth(nsAString & aMozBorderStartWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderStartWidth(const nsAString & aMozBorderStartWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozStackSizing; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozStackSizing(nsAString & aMozStackSizing) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozStackSizing(const nsAString & aMozStackSizing) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderImage; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderImage(nsAString & aBorderImage) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderImage(const nsAString & aBorderImage) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozColumns; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozColumns(nsAString & aMozColumns) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozColumns(const nsAString & aMozColumns) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozColumnRule; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozColumnRule(nsAString & aMozColumnRule) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozColumnRule(const nsAString & aMozColumnRule) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozColumnRuleWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozColumnRuleWidth(nsAString & aMozColumnRuleWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozColumnRuleWidth(const nsAString & aMozColumnRuleWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozColumnRuleStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozColumnRuleStyle(nsAString & aMozColumnRuleStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozColumnRuleStyle(const nsAString & aMozColumnRuleStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozColumnRuleColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozColumnRuleColor(nsAString & aMozColumnRuleColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozColumnRuleColor(const nsAString & aMozColumnRuleColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString wordBreak; */ NS_IMETHODIMP nsDOMCSS2Properties::GetWordBreak(nsAString & aWordBreak) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetWordBreak(const nsAString & aWordBreak) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString wordWrap; */ NS_IMETHODIMP nsDOMCSS2Properties::GetWordWrap(nsAString & aWordWrap) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetWordWrap(const nsAString & aWordWrap) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozHyphens; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozHyphens(nsAString & aMozHyphens) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozHyphens(const nsAString & aMozHyphens) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTransform; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTransform(nsAString & aMozTransform) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTransform(const nsAString & aMozTransform) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTransformOrigin; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTransformOrigin(nsAString & aMozTransformOrigin) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTransformOrigin(const nsAString & aMozTransformOrigin) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozPerspective; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozPerspective(nsAString & aMozPerspective) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozPerspective(const nsAString & aMozPerspective) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozPerspectiveOrigin; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozPerspectiveOrigin(nsAString & aMozPerspectiveOrigin) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozPerspectiveOrigin(const nsAString & aMozPerspectiveOrigin) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBackfaceVisibility; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBackfaceVisibility(nsAString & aMozBackfaceVisibility) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBackfaceVisibility(const nsAString & aMozBackfaceVisibility) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTransformStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTransformStyle(nsAString & aMozTransformStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTransformStyle(const nsAString & aMozTransformStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozWindowShadow; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozWindowShadow(nsAString & aMozWindowShadow) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozWindowShadow(const nsAString & aMozWindowShadow) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString backgroundSize; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBackgroundSize(nsAString & aBackgroundSize) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBackgroundSize(const nsAString & aBackgroundSize) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTextBlink; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTextBlink(nsAString & aMozTextBlink) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTextBlink(const nsAString & aMozTextBlink) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTextDecorationColor; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTextDecorationColor(nsAString & aMozTextDecorationColor) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTextDecorationColor(const nsAString & aMozTextDecorationColor) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTextDecorationLine; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTextDecorationLine(nsAString & aMozTextDecorationLine) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTextDecorationLine(const nsAString & aMozTextDecorationLine) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTextDecorationStyle; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTextDecorationStyle(nsAString & aMozTextDecorationStyle) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTextDecorationStyle(const nsAString & aMozTextDecorationStyle) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTransitionProperty; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTransitionProperty(nsAString & aMozTransitionProperty) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTransitionProperty(const nsAString & aMozTransitionProperty) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTransitionDuration; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTransitionDuration(nsAString & aMozTransitionDuration) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTransitionDuration(const nsAString & aMozTransitionDuration) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTransitionDelay; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTransitionDelay(nsAString & aMozTransitionDelay) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTransitionDelay(const nsAString & aMozTransitionDelay) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTransitionTimingFunction; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTransitionTimingFunction(nsAString & aMozTransitionTimingFunction) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTransitionTimingFunction(const nsAString & aMozTransitionTimingFunction) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTransition; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTransition(nsAString & aMozTransition) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTransition(const nsAString & aMozTransition) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString pointerEvents; */ NS_IMETHODIMP nsDOMCSS2Properties::GetPointerEvents(nsAString & aPointerEvents) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetPointerEvents(const nsAString & aPointerEvents) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTabSize; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTabSize(nsAString & aMozTabSize) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTabSize(const nsAString & aMozTabSize) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString resize; */ NS_IMETHODIMP nsDOMCSS2Properties::GetResize(nsAString & aResize) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetResize(const nsAString & aResize) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozAnimationName; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozAnimationName(nsAString & aMozAnimationName) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozAnimationName(const nsAString & aMozAnimationName) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozAnimationDuration; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozAnimationDuration(nsAString & aMozAnimationDuration) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozAnimationDuration(const nsAString & aMozAnimationDuration) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozAnimationDelay; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozAnimationDelay(nsAString & aMozAnimationDelay) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozAnimationDelay(const nsAString & aMozAnimationDelay) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozAnimationTimingFunction; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozAnimationTimingFunction(nsAString & aMozAnimationTimingFunction) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozAnimationTimingFunction(const nsAString & aMozAnimationTimingFunction) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozAnimationDirection; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozAnimationDirection(nsAString & aMozAnimationDirection) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozAnimationDirection(const nsAString & aMozAnimationDirection) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozAnimationFillMode; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozAnimationFillMode(nsAString & aMozAnimationFillMode) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozAnimationFillMode(const nsAString & aMozAnimationFillMode) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozAnimationIterationCount; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozAnimationIterationCount(nsAString & aMozAnimationIterationCount) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozAnimationIterationCount(const nsAString & aMozAnimationIterationCount) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozAnimationPlayState; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozAnimationPlayState(nsAString & aMozAnimationPlayState) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozAnimationPlayState(const nsAString & aMozAnimationPlayState) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozAnimation; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozAnimation(nsAString & aMozAnimation) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozAnimation(const nsAString & aMozAnimation) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozTextSizeAdjust; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozTextSizeAdjust(nsAString & aMozTextSizeAdjust) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozTextSizeAdjust(const nsAString & aMozTextSizeAdjust) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderImageSource; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderImageSource(nsAString & aBorderImageSource) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderImageSource(const nsAString & aBorderImageSource) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderImageSlice; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderImageSlice(nsAString & aBorderImageSlice) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderImageSlice(const nsAString & aBorderImageSlice) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderImageWidth; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderImageWidth(nsAString & aBorderImageWidth) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderImageWidth(const nsAString & aBorderImageWidth) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderImageOutset; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderImageOutset(nsAString & aBorderImageOutset) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderImageOutset(const nsAString & aBorderImageOutset) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString borderImageRepeat; */ NS_IMETHODIMP nsDOMCSS2Properties::GetBorderImageRepeat(nsAString & aBorderImageRepeat) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetBorderImageRepeat(const nsAString & aBorderImageRepeat) { return NS_ERROR_NOT_IMPLEMENTED; } /* attribute DOMString MozBorderImage; */ NS_IMETHODIMP nsDOMCSS2Properties::GetMozBorderImage(nsAString & aMozBorderImage) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsDOMCSS2Properties::SetMozBorderImage(const nsAString & aMozBorderImage) { return NS_ERROR_NOT_IMPLEMENTED; } /* End of implementation class template. */ #endif #endif /* __gen_nsIDOMCSS2Properties_h__ */
[ "haleokekahuna@gmail.com" ]
haleokekahuna@gmail.com
f99d2aeddc3db4c8f9abb5c1e5105b913660dacc
1a9ef412a09894302ca7df1fedd5d71e7da2f25f
/DP Problems/Kadane.cpp
d755ebdafb5c18155a329b8fbd7195b203497756
[]
no_license
barnwal-anand/Interview_Preparation
ca87f2fb0cac19f9e6eefe1f8c4ed1e9724e41db
4fd155ced74910e637b9d6453b2820b53cab7505
refs/heads/master
2023-07-19T07:33:34.927883
2023-07-07T22:22:47
2023-07-07T22:22:47
214,193,849
2
0
null
null
null
null
UTF-8
C++
false
false
1,042
cpp
// Largest Sum Contiguous Subarray #include <iostream> #include <climits> using namespace std; class Kadane { private: int *arr; int size; public: Kadane(int size); void getLargestSum(int &res, int &start, int &end); }; Kadane::Kadane(int size) { this->size = size; arr = new int[size]{-2, -3, 4, -1, -2, 1, 5, -3}; } void Kadane::getLargestSum(int &res, int &start, int &end) { int cur_max = 0; int max_res = INT_MIN; start = 0, end = 0; int tmp_start = 0; for(int it = 0; it < size; it++) { cur_max += arr[it]; if(cur_max < 0) { cur_max = 0; tmp_start = it + 1; } else if(cur_max > max_res){ max_res = cur_max; start = tmp_start; end = it; } } res = max_res; } int main() { Kadane kadaneObj(8); int start, end, res; kadaneObj.getLargestSum(res, start, end); cout << res << endl; }
[ "anandtalks2u@gmail.com" ]
anandtalks2u@gmail.com
892218156352f5b7775a711e756835433bf5604b
e8166fb5d946a9d9212107ea7ef576426d56924d
/src/CSchemaProvider.h
23b6a835c17b4b42506719cb786f230171c72cb6
[ "MIT" ]
permissive
tans2MA/jsontool
3d8726ccf027c8311199365e2b72f614d23b1525
7b1211dfda08166e473c236cc486f145d984f0b2
refs/heads/master
2022-12-22T11:13:24.781089
2020-10-04T14:33:31
2020-10-04T14:33:31
301,051,214
0
0
null
null
null
null
UTF-8
C++
false
false
753
h
#ifndef CSCHEMAPROVIDER_H__ #define CSCHEMAPROVIDER_H__ #include <string> #include <vector> #include <map> #include "JsonConfig.h" #include "rapidjson/schema.h" class CSchemaProvider : public rapidjson::IRemoteSchemaDocumentProvider { public: virtual const rapidjson::SchemaDocument* GetRemoteDocument(const char* uri, size_t length); void SetBaseDir(const std::string& baseDir) { m_baseDir = baseDir; } CSchemaProvider(){} ~CSchemaProvider() { for (auto& item : m_mapSchemas) { if (item.second != nullptr) { delete item.second; item.second = nullptr; } } } private: std::string m_baseDir; std::map<std::string, rapidjson::SchemaDocument*>m_mapSchemas; }; #endif /* end of include guard: CSCHEMAPROVIDER_H__ */
[ "Shuilong.Tan@moodys.com" ]
Shuilong.Tan@moodys.com
8138d6bdbca48cd4a59ad6c2a830410ea25818c2
24240f765d461af8ce704ed34667ddc53e995b07
/2_LEETCODE/Easy/basics/deleteNodeLinkedList.cpp
6e301ee11a283fb335f07fae8cbf18cfde0e91c2
[]
no_license
Kun4lpal/CodePractice
af0c884e4c8c0036fe5cb525d4e438c6f1435d00
5ea616fb9088b74a462b8dbdb56a7d64255f8903
refs/heads/master
2020-03-30T11:45:47.545226
2018-10-02T11:59:56
2018-10-02T11:59:56
151,191,389
0
0
null
null
null
null
UTF-8
C++
false
false
64
cpp
void deleteNode(ListNode* node) { *node = *node->next; }
[ "kupaliwa@syr.edu" ]
kupaliwa@syr.edu
31f27ec1a85529610c387cf09128b343cfe285de
af9c1566c7f8b7e30ee957ef40de647c1d86d17a
/tek2/cpp/cpp_bomberman/include/Menu.hh
c549a6daba737d6d797b51f747eabb70174e1448
[]
no_license
Vasrek77/epitech-projects
471b7503e189000ad1ab491915c950af4b661c01
6db30340f7accd04d037ba1ea2bc3e3ecd736251
refs/heads/master
2021-01-17T22:41:05.342477
2015-08-12T19:10:24
2015-08-12T19:10:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
605
hh
#ifndef MENU_HH_ # define MENU_HH_ # include <iostream> # include <list> # include <Clock.hh> # include <Input.hh> # include "AItem.hh" # include "MenuItem.hh" # include "Bomb.hh" # include "Cursor.hh" class Menu { private: std::list<ADrawableObject *> _items; public: Menu(); ~Menu(); void addItem(ADrawableObject *); void deleteItem(ADrawableObject *); void update(const gdl::Clock &, gdl::Input &); //void draw(const gdl::Clock &, const gdl::Input &); void createMenu(); std::list<ADrawableObject *> const &getItems(void) const; }; #endif /* MENU_HH_ */
[ "pierrick.gicquelais@epitech.eu" ]
pierrick.gicquelais@epitech.eu
2fce973db3eeb0df9799e8c597a90e8b217e8422
5b8aaf1a97853defedaa7593891c4191612ff09b
/DayThree/DayThreePartTwo.cpp
67fe22495c4436b5fa7d16756d7586e62ee68b10
[]
no_license
star8kid/AdventOfCode2020
0ef98b7bd3be6200c13cf138895f12ce50ed1611
1d0b2ec2646bd422b0ea7e3bcd29451114462f58
refs/heads/main
2023-02-06T04:30:29.804196
2021-01-03T20:08:14
2021-01-03T20:08:14
318,045,287
0
0
null
null
null
null
UTF-8
C++
false
false
2,684
cpp
#include<iostream> #include<string> #include<vector> using namespace std; //Time Lapse: 28 minutes and 37 seconds // (Yeah, I didn't know there were other datatypes than `int`, don't make fun of me) uint64_t treeSlopeInterceptCount(vector<string> inputMap, int riseSlope, int runSlope){ int treeCount = 0; int currentXValue = 0; int currentYValue = 0; while(true){ // cout << "The current coordinate is: [" << currentXValue << "," << currentYValue << "]" << endl; // Checks if the current coordinate point is a tree and increments the count if it is if( inputMap[currentYValue][currentXValue] == '#' ){ treeCount++; } // Checks if the next coordinate point down by the "rise" of the slope // slope would be possible. If not, it breaks because that'd be the end of the map. if( (currentYValue + -riseSlope) <= inputMap.size() - 1 ){ currentYValue += -riseSlope; } else{ break; } if( (currentXValue + runSlope) <= inputMap[0].length() - 1 ){ currentXValue += runSlope; } // Checks to see if the next x value in the coordinate point would be in // the same string. If it is not, it checks to see how much further it is from // the end of the string, substracts that from the slope, and uses the remainder at // the start of the same string to represent the horizontal cross over. else{ currentXValue = currentXValue - (inputMap[0].length()) + runSlope; } // cout << "The the next checking coordinate is: [" << currentXValue << "," << currentYValue << "]" << endl; } cout << "The amount of trees intercepted is: " << treeCount << endl; return treeCount; } int main(){ string tempString; vector<string> landMapMatrix; uint64_t treeCountProduct; while(true){ bool is_valid_input = bool (cin >> tempString); landMapMatrix.push_back(tempString); if (is_valid_input == false){ break; } } treeCountProduct = treeSlopeInterceptCount(landMapMatrix, -1 , 1) * treeSlopeInterceptCount(landMapMatrix, -1 , 3) * treeSlopeInterceptCount(landMapMatrix, -1 , 5) * treeSlopeInterceptCount(landMapMatrix, -1, 7) * treeSlopeInterceptCount(landMapMatrix, -2 , 1); // treeCountProduct = treeSlopeInterceptCount(landMapMatrix, -1 , 1) * treeSlopeInterceptCount(landMapMatrix, -1 , 3) * treeSlopeInterceptCount(landMapMatrix, -1 , 5) * treeSlopeInterceptCount(landMapMatrix, -1, 7); // treeCountProduct = treeSlopeInterceptCount(landMapMatrix, -2,1); cout << treeCountProduct; }
[ "2022younganthonyn@aaps.k12.mi.us" ]
2022younganthonyn@aaps.k12.mi.us
5b4d92c9fb26c4955f974c1c265dcc8d6aec0747
d82942a903492663abd49dfed711fe10b21c7225
/Box2D_v2.2.1/Testbed/Tests/Tutorial/Ball2.h
bd5538ab125393555010b14d4eaa30644ae977d1
[]
no_license
dnunez02/sfml-project
da9438a238c2996d59b0c801f4c7f85740fe86e0
f2340f2823da644ff4e3e212f7a2784f327afceb
refs/heads/master
2016-09-03T06:34:30.286905
2013-08-08T19:08:02
2013-08-08T19:08:02
11,318,144
1
3
null
null
null
null
UTF-8
C++
false
false
1,680
h
#ifndef __BALL2_H__ #define __BALL2_H__ class Ball2 { #define DEGTORAD 0.0174532925f #define RADTODEG 57.2957795f public: float m_radius, m_angle; b2Vec2 m_position, m_linearVelocity; public: Ball2(b2World *world, float radius){ m_radius = radius; b2BodyDef myBodyDef; myBodyDef.type = b2_dynamicBody; myBodyDef.position.Set(0, 20); b2Body *body = world->CreateBody(&myBodyDef); //Can add any item (void*) into a b2Body, b2Fixture, or b2Joint body->SetUserData(this); b2CircleShape circleShape; circleShape.m_p.Set(0, 0); circleShape.m_radius = m_radius; b2FixtureDef myFixtureDef; myFixtureDef.shape = &circleShape; myFixtureDef.density = 1; body->CreateFixture(&myFixtureDef); } ~Ball2() {} void render(){ //Use velocity to change color float red = m_linearVelocity.Length() / 20.0f; red = min(1.0f, red); glColor3f(red, 0.5, 0.5); glPointSize(4); glBegin(GL_POINTS); { glVertex2f(0, 0); glVertex2f(-0.5, 0.5); glVertex2f(0.5, 0.5); } glEnd(); glBegin(GL_LINES); { glVertex2f(-0.5, -0.5); glVertex2f(-0.16, -0.6); glVertex2f(0.16, -0.6); glVertex2f(0.5, -0.5); } glEnd(); glBegin(GL_LINE_LOOP); { for(float a = 0; a < 360 * DEGTORAD; a += 30 * DEGTORAD){ glVertex2f(sinf(a), cosf(a)); } } glEnd(); } void renderAtBodyPosition(){ glPushMatrix(); { glTranslatef(m_position.x, m_position.y, 0); glRotatef(m_angle * RADTODEG, 0, 0, 1); glScalef(m_radius, m_radius, 1); //x, y, z render(); } glPopMatrix(); } }; #endif
[ "dan@cs.tufts.edu" ]
dan@cs.tufts.edu
f301cdaeac1d7498d3d0c6f33fb96249b2936c92
aff3ddbb03d28e005c9d7a0654bfe158ebad25c0
/Vestigium.cpp
aced53f90ae75db3fe6c18c7148a1841bb139c1a
[]
no_license
pradeep-kumar-1705807/Mytest
600a3b10a65c71a6957bc0ce6f884d4892847776
9eea333def183f651753bb4b33a05ba0a42d4c7a
refs/heads/master
2021-05-18T13:15:21.230079
2020-05-06T09:22:44
2020-05-06T09:22:44
251,258,032
0
0
null
null
null
null
UTF-8
C++
false
false
1,228
cpp
#include<bits/stdc++.h> using namespace std; void solve(vector<vector<int>> & matrix, int t) { int n=matrix.size(); int k=0,r=0,c=0; for(int i=0;i<n;i++) { k+=matrix[i][i]; } for(int i=0;i<n;i++) { int hashRow[1001]={0}; int hashCol[1001]={0}; bool flagRow=false,flagCol=false; for(int j=0;j<n;j++) { hashRow[matrix[i][j]]++; hashCol[matrix[j][i]]++; } for(int j=0;j<101;j++) { if(hashRow[j]>1) { flagRow=true; } if(hashCol[j]>1) { flagCol=true; } } if(flagRow) { r++; } if(flagCol) { c++; } } printf("Case #%d: %d %d %d\n",t,k,r,c); } int main() { int t; cin>>t; for( int k=1;k<=t;k++) { int n,val,target; cin>>n; vector<vector<int>> matrix(n); for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { cin>>val; matrix[i].push_back(val); } } solve(matrix,k); } return 0; }
[ "1705807@kiit.ac.in" ]
1705807@kiit.ac.in
140ff6081eaae39b21abd9185b3726e783e7274e
c70e3981d2dc8b1ff0bee54171d485c268ca1ab1
/hw1/hw1.h
5a60022edb3d3d953476f8ee439955fe965a8b7c
[]
no_license
fishmingyu/THUEEOS
ab725bf9888134da1ad28da37681271bd6dbec4b
b4b855f340b01453d0ac5a3441ccf00b6c5ce72b
refs/heads/main
2023-06-25T11:01:16.072081
2021-06-14T12:15:33
2021-06-14T12:15:33
374,101,028
0
0
null
null
null
null
UTF-8
C++
false
false
1,355
h
#include <cstring> #include <ctime> #include <iostream> #include <fstream> #include <pthread.h> #include <queue> #include <semaphore.h> #include <unistd.h> #include <vector> struct Customer { pthread_t tid; int id; int counter; int enter; // enter time int begin; // serve begin time int wait; // wait time during serve Customer(int id, int enter, int wait) : id(id), enter(enter), wait(wait) {} }; struct Counter { pthread_t tid; // thread id int id; // counter id Counter(int id) : id(id){}; }; std::vector<Customer> customer_all; std::vector<Counter> counter_all; std::queue<Customer> wait_queue; // customers queue int customer_num; int counter_num; int finish_num = 0; int finish = 0; int finish_counter = 0; time_t start_sim; pthread_mutex_t mutex; sem_t sem_customer; sem_t sem_counter; sem_t counter_exit; void load_data(const char *file_in) { FILE *fp = fopen(file_in, "r"); char str[60]; int id, enter, wait; const char s[2] = " "; while (fgets(str, 60, fp)) { char *token; token = strtok(str, s); id = atoi(token); token = strtok(NULL, s); enter = atoi(token); token = strtok(NULL, s); wait = atoi(token); customer_all.push_back(Customer(id, enter, wait)); customer_num++; } fclose(fp); }
[ "1661342068@qq.com" ]
1661342068@qq.com
55f115c8ed1769f5f285512c448539b1f5525760
269e5ea9b2a845cef8026b61789fa50a31b6dca9
/src/test/test_join_node_msg_key_matching.cpp
25ed3597d00b118e0628e40798215893f5b6adcd
[ "Apache-2.0" ]
permissive
Formlabs/tbb
79fc3524bfe5215486beb5a0ae363d84c5ef74ee
2098cac88056b2e5b2c081c9fc13746f6735c270
refs/heads/formlabs
2021-07-09T10:08:16.547300
2021-04-26T16:39:08
2021-04-27T12:19:16
61,002,993
0
3
Apache-2.0
2020-09-28T15:49:48
2016-06-13T03:01:06
C++
UTF-8
C++
false
false
4,023
cpp
/* Copyright (c) 2005-2019 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Message based key matching is a preview feature #define TBB_PREVIEW_FLOW_GRAPH_FEATURES 1 // This preview feature depends on // TBB_PREVIEW_FLOW_GRAPH_FEATURES macro, and should not accidentaly be dependent on // this deprecated feature #define TBB_DEPRECATED_FLOW_NODE_EXTRACTION 0 #include "test_join_node.h" int TestMain() { #if __TBB_USE_TBB_TUPLE REMARK(" Using TBB tuple\n"); #else REMARK(" Using platform tuple\n"); #endif #if !__TBB_MIC_OFFLOAD_TEST_COMPILATION_BROKEN generate_test<serial_test, tbb::flow::tuple<MyMessageKeyWithBrokenKey<int, double>, MyMessageKeyWithoutKey<int, float> >, message_based_key_matching<int> >::do_test(); generate_test<serial_test, tbb::flow::tuple<MyMessageKeyWithoutKeyMethod<std::string, double>, MyMessageKeyWithBrokenKey<std::string, float> >, message_based_key_matching<std::string> >::do_test(); #if MAX_TUPLE_TEST_SIZE >= 3 generate_test<serial_test, tbb::flow::tuple<MyMessageKeyWithoutKey<std::string, double>, MyMessageKeyWithoutKeyMethod<std::string, float>, MyMessageKeyWithBrokenKey<std::string, int> >, message_based_key_matching<std::string&> >::do_test(); #endif #if MAX_TUPLE_TEST_SIZE >= 7 generate_test<serial_test, tbb::flow::tuple< MyMessageKeyWithoutKey<std::string, double>, MyMessageKeyWithoutKeyMethod<std::string, int>, MyMessageKeyWithBrokenKey<std::string, int>, MyMessageKeyWithoutKey<std::string, size_t>, MyMessageKeyWithoutKeyMethod<std::string, int>, MyMessageKeyWithBrokenKey<std::string, short>, MyMessageKeyWithoutKey<std::string, threebyte> >, message_based_key_matching<std::string&> >::do_test(); #endif generate_test<parallel_test, tbb::flow::tuple<MyMessageKeyWithBrokenKey<int, double>, MyMessageKeyWithoutKey<int, float> >, message_based_key_matching<int> >::do_test(); generate_test<parallel_test, tbb::flow::tuple<MyMessageKeyWithoutKeyMethod<int, double>, MyMessageKeyWithBrokenKey<int, float> >, message_based_key_matching<int&> >::do_test(); generate_test<parallel_test, tbb::flow::tuple<MyMessageKeyWithoutKey<std::string, double>, MyMessageKeyWithoutKeyMethod<std::string, float> >, message_based_key_matching<std::string&> >::do_test(); #if MAX_TUPLE_TEST_SIZE >= 10 generate_test<parallel_test, tbb::flow::tuple< MyMessageKeyWithoutKeyMethod<std::string, double>, MyMessageKeyWithBrokenKey<std::string, int>, MyMessageKeyWithoutKey<std::string, int>, MyMessageKeyWithoutKeyMethod<std::string, size_t>, MyMessageKeyWithBrokenKey<std::string, int>, MyMessageKeyWithoutKeyMethod<std::string, short>, MyMessageKeyWithoutKeyMethod<std::string, threebyte>, MyMessageKeyWithBrokenKey<std::string, int>, MyMessageKeyWithoutKeyMethod<std::string, threebyte>, MyMessageKeyWithBrokenKey<std::string, size_t> >, message_based_key_matching<std::string&> >::do_test(); #endif #endif /* __TBB_MIC_OFFLOAD_TEST_COMPILATION_BROKEN */ generate_test<serial_test, tbb::flow::tuple<MyMessageKeyWithBrokenKey<int, double>, MyMessageKeyWithoutKey<int, float> >, message_based_key_matching<int> >::do_test(); generate_test<serial_test, tbb::flow::tuple<MyMessageKeyWithoutKeyMethod<std::string, double>, MyMessageKeyWithBrokenKey<std::string, float> >, message_based_key_matching<std::string> >::do_test(); return Harness::Done; }
[ "wenzel.jakob@epfl.ch" ]
wenzel.jakob@epfl.ch
23aa208f8eb0f072c616ddcb765d0b3238ebc737
39930ecb367eefdef836b264a980b9d966cfe071
/programme_9/src/main.cpp
6cbbcc6438a91763e4c5709e5d4474de62e9e20c
[]
no_license
florian-devin/TP_openGL
b1129f5d437e36afecb3e4e7cfab809309bfd72b
6643e8005cd4f06b3862bce5c69a3dacded48efb
refs/heads/master
2023-01-19T20:30:17.582650
2020-12-02T10:41:41
2020-12-02T10:41:41
317,813,861
0
0
null
null
null
null
UTF-8
C++
false
false
12,921
cpp
/*****************************************************************************\ * TP CPE, 4ETI, TP synthese d'images * -------------- * * Programme principal des appels OpenGL \*****************************************************************************/ #include <iostream> #include <cstdlib> #include <cstdio> #include <cmath> #define GLEW_STATIC 1 #include <GL/glew.h> #if defined(__APPLE__) #include <OpenGL/gl3.h> #define __gl_h_ #include <GLUT/glut.h> #define MACOSX_COMPATIBILITY GLUT_3_2_CORE_PROFILE #else #include <GL/glut.h> #define MACOSX_COMPATIBILITY 0 #endif #include "glhelper.hpp" #include "mat4.hpp" #include "vec3.hpp" #include "vec2.hpp" #include "triangle_index.hpp" #include "vertex_opengl.hpp" #include "image.hpp" /*****************************************************************************\ * Variables globales * * \*****************************************************************************/ //identifiant du shader GLuint shader_program_id; //l'identifiant de l'objet 3D GLuint vao=0; GLuint vbo=0; GLuint vboi=0; GLuint texture_id=0; //les parametres de translations float translation_x=0.0f; float translation_y=0.0f; float translation_z=-3.0f; float angle_x=0.0f; float angle_y=0.0f; //Matrice de rotation mat4 rotation; //Matrice de projection mat4 projection; /*****************************************************************************\ * init * \*****************************************************************************/ static void init() { //coordonnees geometriques des sommets vec3 p0=vec3(0.0f,0.0f,0.0f); vec3 p1=vec3(1.0f,0.0f,0.0f); vec3 p2=vec3(0.0f,1.0f,0.0f); vec3 p3=vec3(0.8f,0.8f,0.5f); //normales pour chaque sommet vec3 n0=vec3(0.0f,0.0f,1.0f); vec3 n1=vec3(-0.25f,-0.25f,0.8535f); vec3 n2=vec3(-0.25f,-0.25f,0.8535f); vec3 n3=vec3(-0.5f,-0.5f,0.707); //couleur pour chaque sommet vec3 c0=vec3(0.0f,0.0f,0.0f); vec3 c1=vec3(1.0f,0.0f,0.0f); vec3 c2=vec3(0.0f,1.0f,0.0f); vec3 c3=vec3(1.0f,1.0f,0.0f); //texture du sommet vec2 t0=vec2(0.0f,0.0f); vec2 t1=vec2(1.0f,0.0f); vec2 t2=vec2(0.0f,1.0f); vec2 t3=vec2(1.0f,1.0f); vertex_opengl v0=vertex_opengl(p0,n0,c0,t0); vertex_opengl v1=vertex_opengl(p1,n1,c1,t1); vertex_opengl v2=vertex_opengl(p2,n2,c2,t2); vertex_opengl v3=vertex_opengl(p3,n3,c3,t3); //tableau entrelacant coordonnees-normales-couleurs-textures vertex_opengl geometrie[]={v0,v1,v2,v3}; //indice des triangles triangle_index tri0=triangle_index(0,1,2); triangle_index tri1=triangle_index(1,3,2); triangle_index index[]={tri0,tri1}; //attribution d'une liste d'état (1 indique la création d'une seule liste) glGenVertexArrays(1, &vao); glBindVertexArray(vao); //attribution d'un buffer de donnees (1 indique la création d'un seul buffer) glGenBuffers(1,&vbo); CHECK_GL_ERROR(); //affectation du buffer courant glBindBuffer(GL_ARRAY_BUFFER,vbo); CHECK_GL_ERROR(); //copie des donnees des sommets sur la carte graphique glBufferData(GL_ARRAY_BUFFER,sizeof(geometrie),geometrie,GL_STATIC_DRAW); CHECK_GL_ERROR(); // Active l'utilisation des données de positions (le 0 correspond à la location dans le vertex shader) glEnableVertexAttribArray(0); CHECK_GL_ERROR(); // Indique comment le buffer courant (dernier vbo "bindé") est utilisé pour les positions des sommets glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, sizeof(vertex_opengl), 0); CHECK_GL_ERROR(); // Active l'utilisation des données de normales (le 1 correspond à la location dans le vertex shader) glEnableVertexAttribArray(1); CHECK_GL_ERROR(); // Indique comment le buffer courant (dernier vbo "bindé") est utilisé pour les normales des sommets glVertexAttribPointer(1, 3, GL_FLOAT, GL_TRUE, sizeof(vertex_opengl), (void*)sizeof(vec3)); CHECK_GL_ERROR(); // Active l'utilisation des données de couleurs (le 2 correspond à la location dans le vertex shader) glEnableVertexAttribArray(2); CHECK_GL_ERROR(); // Indique comment le buffer courant (dernier vbo "bindé") est utilisé pour les couleurs des sommets glVertexAttribPointer(2, 3, GL_FLOAT, GL_FALSE, sizeof(vertex_opengl), (void*)(2*sizeof(vec3))); CHECK_GL_ERROR(); // Active l'utilisation des données de textures (le 3 correspond à la location dans le vertex shader) glEnableVertexAttribArray(3); CHECK_GL_ERROR(); // Indique comment le buffer courant (dernier vbo "bindé") est utilisé pour les textures des sommets glVertexAttribPointer(3, 2, GL_FLOAT, GL_FALSE, sizeof(vertex_opengl), (void*)(3*sizeof(vec3))); CHECK_GL_ERROR(); //attribution d'un autre buffer de donnees glGenBuffers(1,&vboi); CHECK_GL_ERROR(); //affectation du buffer courant (buffer d'indice) glBindBuffer(GL_ELEMENT_ARRAY_BUFFER,vboi); CHECK_GL_ERROR(); //copie des indices sur la carte graphique glBufferData(GL_ELEMENT_ARRAY_BUFFER,sizeof(index),index,GL_STATIC_DRAW); CHECK_GL_ERROR(); // Chargement du shader shader_program_id = glhelper::create_program_from_file( "programme_9/src/shader.vert", "programme_9/src/shader.frag"); CHECK_GL_ERROR(); glUseProgram(shader_program_id); //matrice de projection projection=matrice_projection(50.0f*M_PI/180.0f,1.0f,0.5f,10.0f); GLint loc_projection = glGetUniformLocation(shader_program_id, "projection"); CHECK_GL_ERROR(); if (loc_projection == -1) std::cerr << "Pas de variable uniforme : projection" << std::endl; glUniformMatrix4fv(loc_projection,1,false,pointeur(projection)); CHECK_GL_ERROR(); // Chargement d'une texture (seules les textures // tga sont supportes) Image *image = image_load_tga("data/unicorn.tga"); if (image) //verification que l'image est bien chargee { //Creation d'un identifiant pour la texture glPixelStorei(GL_UNPACK_ALIGNMENT, 1); CHECK_GL_ERROR(); glGenTextures(1, &texture_id); CHECK_GL_ERROR(); //Selection de la texture courante a partir de son identifiant glBindTexture(GL_TEXTURE_2D, texture_id); CHECK_GL_ERROR(); //Parametres de la texture glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); CHECK_GL_ERROR(); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); CHECK_GL_ERROR(); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); CHECK_GL_ERROR(); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); CHECK_GL_ERROR(); //Envoie de l'image en memoire video if(image->type==IMAGE_TYPE_RGB){ //image RGB glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, image->width, image->height, 0, GL_RGB, GL_UNSIGNED_BYTE, image->data); CHECK_GL_ERROR();} else if(image->type==IMAGE_TYPE_RGBA){ //image RGBA glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, image->width, image->height, 0, GL_RGBA, GL_UNSIGNED_BYTE, image->data); CHECK_GL_ERROR();} else{ std::cout<<"Image type not handled"<<std::endl;} delete image; } else { std::cerr<<"Erreur chargement de l'image, etes-vous dans le bon repertoire?"<<std::endl; abort(); } GLint loc_texture = glGetUniformLocation(shader_program_id, "texture"); CHECK_GL_ERROR(); if (loc_texture == -1) std::cerr << "Pas de variable uniforme : texture" << std::endl; glUniform1i (loc_texture, 0); CHECK_GL_ERROR(); //activation de la gestion de la profondeur glEnable(GL_DEPTH_TEST); CHECK_GL_ERROR(); } //Fonction d'affichage static void display_callback() { //effacement des couleurs du fond d'ecran glClearColor(0.5f, 0.6f, 0.9f, 1.0f); CHECK_GL_ERROR(); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); CHECK_GL_ERROR(); // recoit la location de la rotation et de la translation GLint loc_rotation = glGetUniformLocation(shader_program_id, "rotation"); CHECK_GL_ERROR(); if (loc_rotation == -1) std::cerr << "Pas de variable uniforme : rotation" << std::endl; GLint loc_translation = glGetUniformLocation(shader_program_id, "translation"); CHECK_GL_ERROR(); if (loc_translation == -1) std::cerr << "Pas de variable uniforme : translation" << std::endl; //************************************************************// //OBJET 1// //************************************************************// //envoie des parametres (rotation,translation) sur la carte graphique pour l'objet 1 glUniformMatrix4fv(loc_rotation,1,false,pointeur(rotation)); CHECK_GL_ERROR(); glUniform4f(loc_translation,translation_x,translation_y,translation_z,0.0f); CHECK_GL_ERROR(); glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0); CHECK_GL_ERROR(); //************************************************************// //OBJET 2// //************************************************************// //envoie des parametres (rotation,translation) sur la carte graphique pour l'objet 2 mat4 identity; // l'objet 2 ne bouge pas: la rotation est donnee par la matrice identitee glUniformMatrix4fv(loc_rotation,1,false,pointeur(identity)); CHECK_GL_ERROR(); // l'objet 2 ne bouge pas: la translation une valeur fixe glUniform4f(loc_translation, -1.0f, 0.0f, -3.0f, 0.0f); CHECK_GL_ERROR(); //affichage glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT,0); CHECK_GL_ERROR(); //Changement de buffer d'affichage pour eviter un effet de scintillement glutSwapBuffers(); } /*****************************************************************************\ * keyboard_callback * \*****************************************************************************/ static void keyboard_callback(unsigned char key, int, int) { float d_angle=0.1f; float dz=0.5f; //quitte le programme si on appuie sur les touches 'q', 'Q', ou 'echap' //enregistre l'image si on appuie sur la touche 'p' switch (key) { case 'p': glhelper::print_screen(); break; case 'q': case 'Q': case 27: exit(0); break; case 'i': angle_x+=d_angle; break; case 'k': angle_x-=d_angle; break; case 'j': angle_y+=d_angle; break; case 'l': angle_y-=d_angle; break; case 'y': translation_z+=dz; break; case 'h': translation_z-=dz; break; } mat4 rotation_x=matrice_rotation(angle_x,1.0f,0.0f,0.0f); mat4 rotation_y=matrice_rotation(angle_y,0.0f,1.0f,0.0f); rotation=rotation_x*rotation_y; } /*****************************************************************************\ * special_callback * \*****************************************************************************/ static void special_callback(int key, int,int) { float dL=0.03f; switch (key) { case GLUT_KEY_UP: translation_y+=dL; //rotation avec la touche du haut break; case GLUT_KEY_DOWN: translation_y-=dL; //rotation avec la touche du bas break; case GLUT_KEY_LEFT: translation_x-=dL; //rotation avec la touche de gauche break; case GLUT_KEY_RIGHT: translation_x+=dL; //rotation avec la touche de droite break; } } /*****************************************************************************\ * timer_callback * \*****************************************************************************/ static void timer_callback(int) { //demande de rappel de cette fonction dans 25ms glutTimerFunc(25, timer_callback, 0); //reactualisation de l'affichage glutPostRedisplay(); } int main(int argc, char** argv) { //**********************************************// //Lancement des fonctions principales de GLUT //**********************************************// //initialisation glutInit(&argc, argv); //Mode d'affichage (couleur, gestion de profondeur, ...) glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH | MACOSX_COMPATIBILITY); //Taille de la fenetre a l'ouverture glutInitWindowSize(600, 600); //Titre de la fenetre glutCreateWindow("OpenGL"); //Fonction de la boucle d'affichage glutDisplayFunc(display_callback); //Fonction de gestion du clavier glutKeyboardFunc(keyboard_callback); //Fonction des touches speciales du clavier (fleches directionnelles) glutSpecialFunc(special_callback); //Fonction d'appel d'affichage en chaine glutTimerFunc(25, timer_callback, 0); //Option de compatibilité glewExperimental = true; //Initialisation des fonctions OpenGL glewInit(); //Affiche la version openGL utilisée std::cout << "OpenGL: " << (GLchar *)(glGetString(GL_VERSION)) << std::endl; //Notre fonction d'initialisation des donnees et chargement des shaders init(); //Lancement de la boucle (infinie) d'affichage de la fenetre glutMainLoop(); //Plus rien n'est execute apres cela return 0; }
[ "florian@PC_FIX_FLO" ]
florian@PC_FIX_FLO
7e203418a8cb895604cf8303d50346a0774a75d7
f977b4a1c94b6dddd01f57f8297cb04cc87c5a10
/src/core/layers/poolinglayer.h
2ebc1d4db8aad6e6994abb6fbcaa2bd4c770f1e1
[]
no_license
JanHalozan/ConvolutionalNeuralNetwork
f1582dfb30c24752a9a0e57183df9304bca9b6f2
e59da46c49c2bdf4ea7d8bf3fef7c7643d1344b5
refs/heads/master
2020-04-16T23:34:01.382438
2017-04-19T11:09:20
2017-04-19T11:09:20
48,693,390
3
0
null
null
null
null
UTF-8
C++
false
false
789
h
// // poolinglayer.h // ConvolutionalNeuralNetwork // // Created by Jan Haložan on 29/12/15. // Copyright © 2015 JanHalozan. All rights reserved. // #ifndef poolinglayer_h #define poolinglayer_h #include "layer.h" namespace sf { class PoolingLayer; } class sf::PoolingLayer : public sf::Layer { private: unsigned short stride; //Holds indexes that were selected during a forward pass so that we can backprop correctly unsigned char *selectedFilterIndexes; double *gradients; public: PoolingLayer(); ~PoolingLayer(); void calculateOutput() override; void backprop(sf::Layer *previousLayer, sf::Layer *nextLayer) override; double getGradientOfNeuron(ulong x, ulong y, ulong z) const override; }; #endif /* poolinglayer_h */
[ "j.halozan@gmail.com" ]
j.halozan@gmail.com
05a25b18fac0547d40c439b6aae115f70d17d7d2
7dd824a1d9224903b685c6768102fbca1d907316
/annual/CJ14/C.cpp
75e8afc6805a3a941f3a2e28feb2ced1aee10412
[]
no_license
1ridescent/ACM
c2a50f3619f9480e2bf4a7f690a12eb1574eb6b0
41f7b63655edd257eeab223bbaaf78d50960e789
refs/heads/master
2020-12-24T17:26:32.650345
2015-12-02T01:03:51
2015-12-02T01:03:51
20,510,103
0
0
null
null
null
null
UTF-8
C++
false
false
2,078
cpp
#include <iostream> #include <algorithm> #include <cstring> using namespace std; struct point { int x, y; }; struct bdg { point ll, ur; }; int dist(bdg a, bdg b) { int dx = min(abs(a.ll.x - b.ur.x), abs(a.ur.x - b.ll.x)) - 1; int dy = min(abs(a.ll.y - b.ur.y), abs(a.ur.y - b.ll.y)) - 1; //cout << "dx=" << dx << ", dy=" << dy << endl; if(!(a.ll.x > b.ur.x || b.ll.x > a.ur.x)) // overlap x { //cout << "overlap x\n"; return dy; } if(!(a.ll.y > b.ur.y || b.ll.y > a.ur.y)) // overlap y { //cout << "overlap y\n"; return dx; } return max(dx, dy); } bdg bdgs[1010]; int G[1010][1010]; int D[1010]; bool visited[1010]; int dijkstra(int N, int s, int t) { memset(visited, 0, sizeof(visited)); for(int i = 1; i <= N; i++) D[i] = 123123123; D[s] = 0; while(true) { int best = 123123123, besti; for(int i = 1; i <= N; i++) if(!visited[i] && D[i] < best) best = D[i], besti = i; if(besti == t) return best; visited[besti] = true; for(int i = 1; i <= N; i++) if(!visited[i]) D[i] = min(D[i], D[besti] + G[besti][i]); } } int main2() { int W, H, B; cin >> W >> H >> B; for(int i = 1; i <= B; i++) { cin >> bdgs[i].ll.x >> bdgs[i].ll.y >> bdgs[i].ur.x >> bdgs[i].ur.y; } bdgs[B + 1].ll.x = -1, bdgs[B + 1].ll.y = 0, bdgs[B + 1].ur.x = -1, bdgs[B + 1].ur.y = H - 1; bdgs[B + 2].ll.x = W, bdgs[B + 2].ll.y = 0, bdgs[B + 2].ur.x = W, bdgs[B + 2].ur.y = H - 1; for(int i = 1; i <= B + 2; i++) for(int j = 1; j <= B + 2; j++) { if(i != j) { //cout << i << ' ' << j << ' ' << dist(bdgs[i], bdgs[j]) << endl; G[i][j] = dist(bdgs[i], bdgs[j]); } } int N = B + 2; /*for(int k = 1; k <= N; k++) for(int i = 1; i <= N; i++) for(int j = 1; j <= N; j++) G[i][j] = min(G[i][j], G[i][k] + G[k][j]);*/ cout << dijkstra(N, B + 1, B + 2) << endl; } int main() { /*while(true) { bdg a, b; cin >> a.ll.x >> a.ll.y >> a.ur.x >> a.ur.y >> b.ll.x >> b.ll.y >> b.ur.x >> b.ur.y; cout << dist(a, b); }*/ int T; cin >> T; for(int t = 1; t <= T; t++) { cout << "Case #" << t << ": "; main2(); } }
[ "jasonmli02@gmail.com" ]
jasonmli02@gmail.com
02aab4c4589ee26d2283940f2a95e947b8e36a7f
29b6b38972a64f3a8336a9530445c603564cd159
/BattleTank/Source/BattleTank/Projectile.cpp
3d55ff70936f03398374e00b5cb015c9924d856a
[]
no_license
djidane535/BattleTank
2bb3a25a2a0d868978b286316076714bd37e282b
ac9d52568962d64010ea017a40124da4aef9a228
refs/heads/master
2020-03-13T01:22:22.273490
2018-05-13T20:05:31
2018-05-13T20:05:31
130,902,622
0
0
null
null
null
null
UTF-8
C++
false
false
959
cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "Projectile.h" #include "Runtime/Engine/Classes/GameFramework/ProjectileMovementComponent.h" #include "Runtime/Engine/Classes/Engine/World.h" // Sets default values AProjectile::AProjectile() { // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTick.bCanEverTick = true; MovementComponent = CreateDefaultSubobject<UProjectileMovementComponent>( FName("MovementComponent") ); MovementComponent->bAutoActivate = false; } // Called when the game starts or when spawned void AProjectile::BeginPlay() { Super::BeginPlay(); } // Called every frame void AProjectile::Tick(float DeltaTime) { Super::Tick(DeltaTime); } void AProjectile::LaunchProjectile(float speed) { MovementComponent->SetVelocityInLocalSpace(speed * FVector::ForwardVector); MovementComponent->Activate(true); }
[ "djidane535@gmail.com" ]
djidane535@gmail.com
98c42b39afe13714349b7861415206e8dc3529ac
ea47e149922214f3b8f3cbb700b8e0898978b084
/torch/csrc/jit/passes/quantization.cpp
ff23b510ec872d7767155417695139e9bef1b481
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
kikaitech/pytorch
8030c074ac4dfa055b2108f7052bd0a5d947a9c0
860790de8805856342a1bee37103184f47a0c26d
refs/heads/master
2021-05-18T02:44:31.407362
2020-03-29T09:06:51
2020-03-29T09:09:00
251,065,731
0
0
NOASSERTION
2020-03-29T15:29:44
2020-03-29T15:29:43
null
UTF-8
C++
false
false
102,670
cpp
#include <torch/csrc/jit/passes/quantization.h> #include <torch/csrc/jit/passes/constant_pooling.h> #include <torch/csrc/jit/passes/constant_propagation.h> #include <torch/csrc/jit/passes/freeze_module.h> #include <torch/csrc/jit/passes/fuse_linear.h> #include <torch/csrc/jit/passes/graph_rewrite_helper.h> #include <torch/csrc/jit/passes/inliner.h> #include <torch/csrc/jit/passes/prepack_folding.h> #include <torch/csrc/jit/passes/quantization_patterns.h> #include <torch/csrc/jit/passes/subgraph_rewrite.h> #include <torch/csrc/jit/frontend/schema_matching.h> #include <torch/csrc/jit/ir/ir.h> #include <torch/csrc/jit/ir/irparser.h> #include <torch/csrc/jit/ir/node_hashing.h> #include <torch/csrc/jit/ir/subgraph_matcher.h> #include <torch/csrc/jit/jit_log.h> #include <torch/csrc/jit/runtime/operator.h> #include <c10/core/QScheme.h> #include <algorithm> #include <stack> namespace torch { namespace jit { namespace { using OptionalModuleVector = std::vector<c10::optional<Module>>; using ModuleMethodVector = std::vector<std::pair<Module, std::string>>; using NameModuleVector = std::vector<std::pair<std::string, Module>>; using graph_rewrite_helper::getFuncName; using graph_rewrite_helper::getIValue; using graph_rewrite_helper::getValue; using graph_rewrite_helper::replaceConvolutionWithConv2d; // Map of quantization parameter name and value // for example _scale, _zero_point, // _scalar_type and _axis(for per channel quantization) using QParamVector = std::vector<std::pair<std::string, IValue>>; // This struct contains a compiled IR patterns slated for use in the // findPatternMatches function. The struct encapsulates the common // information from parseIR that is used in conjunction with the // pattern matching facility. A const instance of this struct can // also be stored away to cache the compiled IR pattern and reduce // runtime cost struct PatternInfo { std::string pattern_string; std::unique_ptr<Graph> pattern_graph; std::unordered_map<std::string, Value*> vmap; static PatternInfo parse_from_str(std::string pattern_string) { PatternInfo rv{ std::move(pattern_string), std::make_unique<Graph>(), decltype(vmap){}}; parseIR(rv.pattern_string, rv.pattern_graph.get(), rv.vmap); return rv; } }; struct PatternsAndModules { bool is_conv; bool is_per_channel; const PatternInfo& pattern; Module packed_params_module; }; // These are the prim::CallFunctions that doesn't require observation and // have a single input Tensor // example: `prim::CallFunction(%dropout, %input_tensor, ...) // so we propagate observed property from %input_tensor to the // output of the `prim::CallFunction` std::vector<std::string> _single_input_general_call_funcs = { "adaptive_avg_pool2d", "_max_pool2d", "dropout", "interpolate", "upsample", "upsample_bilinear", "upsample_nearest", "relu", }; std::vector<std::string> _quantizable_call_funcs = { "conv2d", "linear", }; void fillQConfigMap( const Module& module, const QConfigDict& qconfig_dict, ModuleQConfigMap& map, const std::string& key = "", const c10::optional<QConfig>& parent_qconfig = c10::nullopt) { c10::optional<QConfig> qconfig; if (qconfig_dict.find(key) != qconfig_dict.end()) { qconfig = qconfig_dict.at(key); } else { qconfig = parent_qconfig; } map[module._ivalue()] = qconfig; for (const NameModule& s : module.named_children()) { std::string child_key; if (key == "") { child_key = s.name; } else { child_key = key + "." + s.name; } fillQConfigMap(s.value._ivalue(), qconfig_dict, map, child_key, qconfig); } } bool isFunctionNode( Node* n, const std::vector<std::string>& call_funcs, const std::vector<std::string>& aten_funcs) { std::vector<Symbol> aten_func_symbols; std::transform( aten_funcs.begin(), aten_funcs.end(), std::back_inserter(aten_func_symbols), [](const std::string& s) { return Symbol::aten(s); }); bool is_quantizable = std::find( aten_func_symbols.begin(), aten_func_symbols.end(), n->kind()) != aten_func_symbols.end(); if (n->kind() == prim::CallFunction) { auto func_name = getFuncName(n->inputs()[0]); is_quantizable |= std::find(call_funcs.begin(), call_funcs.end(), func_name) != call_funcs.end(); } return is_quantizable; } // checks if a block will always raise an Exception bool alwaysRaisesException(Block* block) { for (Node* n : block->nodes()) { if (n->kind() == prim::RaiseException) { return true; } if (n->kind() == prim::If) { bool exception = true; for (Block* b : n->blocks()) { exception &= alwaysRaisesException(b); } if (exception) { return true; } } } return false; } bool isAddScalar(Node* n) { return (n->kind() == Symbol::aten("add") || n->kind() == Symbol::aten("add_")) && n->input(0)->type()->isSubtypeOf(TensorType::get()) && n->input(1)->type()->isSubtypeOf(NumberType::get()); } // If the op doesn't require observation, return // the the list of input `Value`s that we should check to see // if they are observed/quantized, if so, we can say the output // of this op is observed/quantized as well, since for these ops we can derive // the quantization parameters for output given inputs std::vector<Value*> getGeneralOpTensorInputs(Node* n) { std::vector<std::string> single_input_aten_funcs = { "max_pool2d", "avg_pool2d", "flatten", "max", "min", "mean", "upsample_nearest1d", "upsample_nearest2d", "upsample_nearest3d", "adaptive_avg_pool1d", "adaptive_avg_pool2d", "adaptive_avg_pool3d", "upsample_linear1d", "upsample_bilinear2d", "upsample_trilinear3d", "upsample_bicubic2d", "dropout", "reshape", "chunk", "view", "transpose", "contiguous", "permute", "repeat_interleave", "relu", // TODO: sort returns a tuple of Tensors, we have // to extend the API to support that // "sort", }; if (isFunctionNode( n, // We don't have call functions // after inline /* call_funcs = */ _single_input_general_call_funcs, /* aten_funcs = */ {})) { return {n->input(1)}; } else if (isFunctionNode( n, // We don't have call functions // after inline /* call_funcs = */ {}, /* aten_funcs = */ single_input_aten_funcs)) { return {n->input(0)}; } else if (n->kind() == prim::If && n->outputs().size() == 1) { std::vector<Value*> inputs; for (Block* subblock : n->blocks()) { if (alwaysRaisesException(subblock)) { continue; } auto* output = subblock->outputs()[0]; inputs.push_back(output); } return inputs; } else if (n->kind() == prim::ListUnpack) { return {n->input(0)}; } else if (n->kind() == prim::ListConstruct) { std::vector<Value*> inputs; for (auto* v : n->inputs()) { inputs.push_back(v); } return inputs; } return {}; } bool mayRequireObservation(Value* v) { return !isAddScalar(v->node()); } bool nodeQuantizable(Node* n) { return isFunctionNode( n, /* call_funcs = */ _quantizable_call_funcs, /* aten_funcs = */ { "conv2d", "linear", "addmm", "matmul", "add_", "add", "cat", }); } // We don't want to analyze the graph for some `builtin` CallFunctions // like `linear` because we want to preserve the op boundary bool userDefinedCallFunction(Node* n) { return n->kind() == prim::CallFunction && !isFunctionNode(n, _single_input_general_call_funcs, {}) && !isFunctionNode(n, _quantizable_call_funcs, {}); } std::shared_ptr<Graph> getCallFunctionGraph(Node* n) { auto* func_node = n->input(0)->node(); auto func = func_node->output()->type()->expect<FunctionType>()->function(); TORCH_CHECK( func->isGraphFunction(), "Quantization only works for graph function"); return func->graph(); } Module findChildModule( const Module& module, const std::vector<std::string>& path) { Module m = module; for (const auto& p : path) { m = m.attr(p).toModule(); } return m; } // Check if value is the input of the graph bool hitGraphInput(Value* value) { Graph* graph = value->owningGraph(); const auto& inputs = graph->inputs(); return std::find(inputs.begin(), inputs.end(), value) != inputs.end(); } // Get the module access path for a Value representing a module instance // by tracing back the GetAttr nodes and recording all the attribute // names along the way. // For example, the module access path will be ['conv1', 'basic_block', 'sub'] // for `self.sub.basic_block.conv1` std::vector<std::string> getModuleAccessPath(Value* instance, Value* self) { std::vector<std::string> path; // Iterator to traverse back the GetAttr calls Value* iter = instance; // trace back the instance to recover the path of the submodule while (!hitGraphInput(iter) && iter->node()->kind() == prim::GetAttr) { Node* get_attr = iter->node(); // record the name of GetAttr path.push_back(get_attr->s(attr::name)); // trace back the chain of GetAttr iter = get_attr->inputs()[0]; } TORCH_CHECK( iter == self, "Can't handle the access pattern of GetAttr " " in getModuleAccessPath, traced back to:", iter->debugName(), " which is not self:", self->debugName()); return path; } Module getInvokedModule(Module& module, Node* n, Value* self) { auto* instance = n->inputs()[0]; auto path = getModuleAccessPath(instance, self); return findChildModule(module, path); } bool isPerChannel(at::QScheme qscheme) { return qscheme == c10::kPerChannelAffine || qscheme == c10::kPerChannelSymmetric; } class ModuleCloneHelper { public: /** Clone according to module qconfig map, this is for handling the case * where we have two module instances sharing the same ClassType * but configured with different QConfig * code is copied and modified from * https://github.com/pytorch/pytorch/blob/master/torch/csrc/jit/api/module.cpp */ Module clone( const Module& module, const ModuleQConfigMap& module_qconfig_map) { std::unordered_map<TypePtr, QConfigTypePtrMap> type_remap; return clone_impl(module, module_qconfig_map, type_remap); } private: Module clone_impl( const Module& module, const ModuleQConfigMap& module_qconfig_map, std::unordered_map<TypePtr, QConfigTypePtrMap>& type_remap) { auto qconfig = module_qconfig_map.at(module._ivalue()); auto type = module.type(); // Create a new _ivalue in the same compilation unit. // Since now we have shared ClassType, we need to preserve the shared // ClassType during cloning, so we first use type and qconfig to check if // the type is already cloned, if so, we'll create a new module with the // cloned ClassType, if not, we'll create a new module and a new ClassType. bool type_already_cloned = type_remap.find(type) != type_remap.end() && type_remap.at(type).find(qconfig) != type_remap.at(type).end(); Module r; if (type_already_cloned) { // if we cloned the class type before, we'll reuse it Module new_module( module._ivalue()->compilation_unit(), type_remap.at(type).at(qconfig)->cast<ClassType>()); r = new_module; } else { Module new_module( *type->name(), module._ivalue()->compilation_unit(), true); r = new_module; type_remap[type][module_qconfig_map.at(module._ivalue())] = r.type(); } // Copy slots. If a slot is a module - recursively clone it. size_t N = type->numAttributes(); for (size_t i = 0; i < N; ++i) { IValue s = module._ivalue()->getSlot(i); if (type->getAttribute(i)->is_module()) { const Module& orig = Module(s.toObject()); Module cloned = clone_impl(orig, module_qconfig_map, type_remap); r.register_module(type->getAttributeName(i), cloned); } else { r.register_attribute( type->getAttributeName(i), type->getAttribute(i), s, type->is_parameter(i)); } } // only clone the methods and constants if the ClassType is not cloned // before if (!type_already_cloned) { for (size_t i = 0; i < type->numConstants(); ++i) { r.type()->addConstant(type->getConstantName(i), type->getConstant(i)); } // Clone methods remapping the types to the cloned ones. for (auto& fn : type->methods()) { clone_method(module, r, *fn, module_qconfig_map, type_remap); } } return r; } void remapTypes( Block* block, Value* self, const Module& source, Module& target, const ModuleQConfigMap& module_qconfig_map, const std::function<TypePtr(TypePtr, c10::optional<QConfig>)>& type_remap_fn) { // remap of %self will be done outside of the function // and we don't support the case when people pass in // module as argument of the method because in that case // we need to do more comprehensive analysis to decide the // QConfig for the module for (size_t i = 1; i < block->inputs().size(); ++i) { TORCH_CHECK( !block->inputs()[i]->type()->cast<ClassType>(), "We don't support quantizing methods that has Object as arguments"); } for (Node* node : block->nodes()) { // remapping type for module instance if (node->kind() == prim::CallMethod) { Value* instance = node->inputs()[0]; auto path = getModuleAccessPath(instance, self); auto child = findChildModule(source, path); auto qconfig = module_qconfig_map.at(child._ivalue()); instance->setType(type_remap_fn(instance->type(), qconfig)); } // We don't remap output and the remapping of module type // will be done in CallMethod, we don't support type remapping // for modules returned from methods or functions for (Block* sub_block : node->blocks()) { remapTypes( sub_block, self, source, target, module_qconfig_map, type_remap_fn); } for (Symbol name : node->attributeNames()) { if (node->kindOf(name) == AttributeKind::g) { remapTypes( node->g(name).get(), source, target, module_qconfig_map, type_remap_fn); } else if (node->kindOf(name) == AttributeKind::gs) { for (const auto& g : node->gs(name)) { remapTypes( g.get(), source, target, module_qconfig_map, type_remap_fn); } } } } } void remapTypes( Graph* graph, const Module& source, Module& target, const ModuleQConfigMap& module_qconfig_map, const std::function<TypePtr(TypePtr, c10::optional<QConfig>)>& type_remap_fn) { remapTypes( graph->block(), graph->inputs()[0], source, target, module_qconfig_map, type_remap_fn); } void clone_method( const Module& source, Module& target, const Function& method, const ModuleQConfigMap& module_qconfig_map, const std::unordered_map<TypePtr, QConfigTypePtrMap>& type_remap) { auto type_remap_fn = [&](TypePtr type_ptr, const c10::optional<QConfig>& qconfig) { if (type_remap.find(type_ptr) != type_remap.end()) { const auto& qconfig_map = type_remap.at(type_ptr); if (qconfig_map.find(qconfig) != qconfig_map.end()) { return qconfig_map.at(qconfig); } } return type_ptr; }; auto graph = method.graph()->copy(); remapTypes(graph.get(), source, target, module_qconfig_map, type_remap_fn); // remap self graph->inputs()[0]->setType(target.type()); const auto this_method_name = c10::QualifiedName(*target.type()->name(), method.name()); auto copied = target._ivalue()->compilation_unit()->create_function( this_method_name, graph); target.type()->addMethod(copied); // we'll use default schema for cloned method } }; class InsertObserversHelper { public: explicit InsertObserversHelper(const ModuleQConfigMap& map) : module_qconfig_map_(map) {} void preprocess(Module& module, const std::string& method_name); /** * Recursively insert observers for the method, also we'll process * the nodes in the graph in the order of execution of these nodes * since we need the context information to decide whether we want to * observe/quantize a value a not, we don't want to observe a value multiple * times. * * arguemnt: is_entry_point means whether the current method is the forward * method of the top level module. * * Since we want to insert observers in the call site instead of in the called * graph, we'll postpone inserting observer to caller as much as possible, if * we know the current method is the outer most method, then * we will insert all observers in the graph instead of postpone this to the * parent, note that this assumes we don't have recursive method * calls * * returns a tuple of vectors of observer modules for input and output, these * are used for inserting observers for the input/output values * since we need to insert these values at call site. * And a vector of indexes of outputs that indicates whether the output value * is already observed or not, this is used for propagating the observed * property of a value through CallMethods, because we should skip inserting * observers for ops that don't require observation */ std::tuple<OptionalModuleVector, OptionalModuleVector, std::vector<size_t>> insertObservers( Module& module, const std::string& method_name, bool is_entry_point = false, std::unordered_set<Value*> graph_observed_values = std::unordered_set<Value*>()); void setDynamicFlag(bool is_dynamic_); private: std::tuple<OptionalModuleVector, OptionalModuleVector, std::vector<size_t>> insertObserversFor( Block* block, script::Module& module, // this is a reference because when we insert observer for a value // in one block it is also observed in another block, we don't want to // insert multiple observers for the same value std::unordered_set<Value*>& block_observed_values, bool is_entry_point = false, bool is_user_defined_function = false); void recordObserved( Value* v, Module observer_module, std::unordered_map<Value*, Module>& values_to_observe, std::unordered_set<Value*>& block_observed_values); ModuleMethodVector getInvokedMethods( Module& module, const std::string& method_name); bool valueNeedsToBeQuantized(Value* v); bool isObserved( Value* v, const std::unordered_set<Value*>& block_observed_values) { return block_observed_values.count(v) || observed_values_.count(v); } // Fill the map between the caller input/output to input/output // of called graph, this is used to navigate through the graph // to find the observer for a given value void fillBoundaryValueMap(Module& module, const std::string& method_name); // Fill the map from value to the corresponding observer module // this map is used in insertObservers to actually insert // observers to the module void fillValueObserverMap(Module& module, const std::string& method_name); // Clone observer module and add it to the original module, // and insert a call to observer forward function void insertObserverFor( Value* v, Module& module, const Module& observer_module, NameModuleVector& observer_name_and_modules); c10::optional<Module> getObserverFor(Value* v); void propagateObservedProperty( Value* output, std::unordered_set<Value*>& block_observed_values); void delayObservingValuesInPattern( Graph& graph, const PatternInfo& pattern); void addValuesToDelayObservation( const Module& module, const std::string& method_name); // Fill the map from values to the list of values that can pass the observed // property to it void fillPassThroughValueMap(const std::shared_ptr<Graph>& graph); const ModuleQConfigMap& module_qconfig_map_; // Values we want to delay observation, used to delay the observation for // values in the middle of the ops that are supposed to be fused, e.g. // the output value of conv in the conv - relu pattern // the key is the intermediate output, e.g. output of conv // the value is the value we want to observe, e.g. output of relu std::unordered_map<Value*, Value*> delay_observation_map_; std::unordered_set<Graph*> visited_graph_of_observer_map_; std::unordered_map<Value*, Module> observer_for_value_; // Map from values from callsite into the values in the CallMethod graph std::unordered_map<Value*, std::unordered_set<Value*>> boundary_value_map_; std::unordered_set<Value*> observed_values_; // This is used for the observed values to pass through the ops like flatten, // so that output value of platten do not need to be observed // key of the map is the value from caller graph, and the value of the map // is the list of values in the callee graph (the graph // corresponding to the called method), // the reason it is a vector is that a value in the caller graph // can both correspond to the output of one callee graph and input of another // callee graph. std::unordered_map<Value*, std::vector<Value*>> pass_through_value_map_; // Unique id generator for observer module, used for generating // unique observer names when we insert observer module, we // record the current unique id used to avoid incrementing from 0 // every time to find a unique id. int uid_ = 0; // Set of observer forward call nodes std::unordered_set<Node*> observer_nodes_; // Map from block to a vector of observer name and observer modules we // want to add to the module instance that has the block std::unordered_map<Block*, NameModuleVector> block_observer_map_; // Is dynamic quantization enabled for the observer pass. bool is_dynamic = false; // These are the IR patterns we match to skip inserting observers. // They are compiled once on construction and used repeatedly within // the pass. const PatternInfo conv_functional_relu = PatternInfo::parse_from_str(R"( graph(%self, %input, %inplace): %relu = prim::Constant[name="relu"]() %first_module = match::module[name="Conv2d"](%self) %first_output = prim::CallMethod[name="forward"](%first_module, %input) %second_output = prim::CallFunction(%relu, %first_output, %inplace) return (%second_output) )"); const PatternInfo conv_relu = PatternInfo::parse_from_str(R"( graph(%self, %input): %first_module = match::module[name="Conv2d"](%self) %first_output = prim::CallMethod[name="forward"](%first_module, %input) %second_module = match::module[name="ReLU"](%self) %second_output = prim::CallMethod[name="forward"](%second_module, %first_output) return (%second_output) )"); const PatternInfo matmul_add = PatternInfo::parse_from_str(R"( graph(%input, %weight, %bias, %4): %weight_t = aten::t(%weight) %first_output = aten::matmul(%input, %weight_t) %second_output = aten::add_(%first_output, %bias, %4) return (%second_output) )"); const PatternInfo add_module_relu = PatternInfo::parse_from_str(R"( graph(%self, %a, %b): %one = prim::Constant[value=1]() %first_output = aten::add_(%a, %b, %one) %second_module = match::module[name="ReLU"](%self) %second_output = prim::CallMethod[name="forward"](%second_module, %first_output) return (%second_output) )"); const PatternInfo add_functional_relu = PatternInfo::parse_from_str(R"( graph(%self, %a, %b, %inplace): %one = prim::Constant[value=1]() %first_output = aten::add_(%a, %b, %one) %relu = prim::Constant[name="relu"]() %second_output = prim::CallFunction(%relu, %first_output, %inplace) return (%second_output) )"); const std::vector<std::reference_wrapper<const PatternInfo>> delay_patterns = { conv_functional_relu, conv_relu, matmul_add, add_module_relu, add_functional_relu, }; }; // Check if `use` is an aten function of name `func_name` and if value // `v` is the nth argument of the function bool isAtenFuncNthArg( Value* v, Node* use, const std::string& func_name, int n) { return use->kind() == Symbol::aten(func_name) && v == use->inputs().at(n); } // Check if `use` is a CallFunction of name `func_name` and if value // `v` is the nth argument of the function bool isCallFunctionNthArg( Value* v, Node* use, const std::string& func_name, int n) { return use->kind() == prim::CallFunction && getFuncName(use->inputs()[0]) == func_name && v == use->inputs().at(n); } struct FuncArg { std::string func_name; int arg_index; }; using AtenFuncArgs = std::vector<FuncArg>; using CallFuncArgs = std::vector<FuncArg>; // Check any use of `v` matches the aten function call // or CallFunction patterns bool matchArgPattern( Value* v, const AtenFuncArgs& aten_func_args, const CallFuncArgs& call_func_args) { for (const Use& u : v->uses()) { for (const auto& func_arg : aten_func_args) { if (isAtenFuncNthArg(v, u.user, func_arg.func_name, func_arg.arg_index)) { return true; } } for (const auto& func_arg : call_func_args) { if (isCallFunctionNthArg( v, u.user, func_arg.func_name, func_arg.arg_index)) { return true; } } } return false; } bool isBiasOfConvOrLinear(Value* v) { bool result = matchArgPattern( v, AtenFuncArgs({{"conv2d", 2}, {"linear", 2}}), CallFuncArgs({{"linear", 3}})); return result; } bool isWeightOfConvOrLinear(Value* v) { bool result = matchArgPattern( v, AtenFuncArgs({{"conv2d", 1}, {"linear", 1}}), CallFuncArgs({{"linear", 2}})); return result; } Module getObserverModuleFor(Value* v, const QConfig& qconfig) { return isWeightOfConvOrLinear(v) ? std::get<1>(qconfig) : std::get<0>(qconfig); } ModuleMethodVector InsertObserversHelper::getInvokedMethods( Module& module, const std::string& method_name) { ModuleMethodVector invoked_methods; Method method = module.get_method(method_name); auto graph = method.graph(); std::stack<Block*> blocks_to_visit; blocks_to_visit.push(graph->block()); while (!blocks_to_visit.empty()) { Block* b = blocks_to_visit.top(); blocks_to_visit.pop(); for (Node* n : b->nodes()) { // Skip observer nodes if (observer_nodes_.count(n)) { continue; } if (n->kind() == prim::CallMethod) { invoked_methods.push_back(std::make_pair( getInvokedModule(module, n, graph->inputs()[0]), n->s(attr::name))); } for (Block* subblock : n->blocks()) { blocks_to_visit.push(subblock); } } } return invoked_methods; } void InsertObserversHelper::insertObserverFor( Value* v, Module& module, const Module& observer_module, NameModuleVector& observer_name_and_modules) { if (observed_values_.count(v)) { return; } Module observer = observer_module.clone_instance(); std::string observer_name = "_observer_" + c10::to_string(uid_++); while (module.hasattr(observer_name)) { observer_name = "_observer_" + c10::to_string(uid_++); } module.register_module(observer_name, observer); observer_name_and_modules.push_back(std::make_pair(observer_name, observer)); auto* g = v->owningGraph(); // Get handle of observer module Node* observer_instance = g->createGetAttr(g->inputs()[0], observer_name)->insertAfter(v->node()); observer_instance->output()->setDebugName(observer_name); { WithInsertPoint guard(observer_instance->next()); // Match arguments to types of observer's arguments MatchedSchema forward_matched_schema = matchSchema( observer.get_method("forward").function().getSchema(), v->node()->sourceRange(), *g, {observer_instance->output(), v}, {}); // Insert call to observer's forward Node* call = g->insertMethodCall("forward", forward_matched_schema)->node(); call->output()->copyMetadata(v); // Replace v with the output of observer v->replaceAllUsesWith(call->output()); // The above also replaced the input to `call`, so switch it back to // the correct value call->replaceInput(1, v); observer_nodes_.emplace(call); observed_values_.insert(call->output()); } } void InsertObserversHelper::delayObservingValuesInPattern( Graph& graph, const PatternInfo& pattern) { const Graph& pattern_graph = *pattern.pattern_graph; const std::unordered_map<std::string, Value*>& vmap = pattern.vmap; const auto& matches = findPatternMatches(pattern_graph, graph); for (const auto& match : matches) { auto first_output = match.values_map.at(vmap.at("first_output")); auto second_output = match.values_map.at(vmap.at("second_output")); GRAPH_DEBUG("Delay observation for value in function pattern:", first_output->debugName(), " to ", second_output->debugName()); delay_observation_map_[first_output] = second_output; } } void InsertObserversHelper::addValuesToDelayObservation( const Module& module, const std::string& method_name) { Method method = module.get_method(method_name); auto graph = method.graph(); for (const auto& pattern : delay_patterns) { delayObservingValuesInPattern(*graph, pattern); } } void InsertObserversHelper::fillPassThroughValueMap( const std::shared_ptr<Graph>& graph) { std::stack<Block*> blocks_to_visit; blocks_to_visit.push(graph->block()); while (!blocks_to_visit.empty()) { Block* b = blocks_to_visit.top(); blocks_to_visit.pop(); for (Node* n : b->nodes()) { if (userDefinedCallFunction(n)) { auto g = getCallFunctionGraph(n); blocks_to_visit.push(g->block()); } auto inputs = getGeneralOpTensorInputs(n); for (auto* input : inputs) { for (auto* output : n->outputs()) { pass_through_value_map_[output].push_back(input); } } for (Block* subblock : n->blocks()) { blocks_to_visit.push(subblock); } } } } void InsertObserversHelper::fillBoundaryValueMap( Module& module, const std::string& method_name) { auto graph = module.get_method(method_name).graph(); std::stack<Block*> blocks_to_visit; blocks_to_visit.push(graph->block()); auto* self = graph->inputs()[0]; while (!blocks_to_visit.empty()) { Block* b = blocks_to_visit.top(); blocks_to_visit.pop(); for (Node* n : b->nodes()) { if (n->kind() == prim::CallMethod || userDefinedCallFunction(n)) { std::shared_ptr<Graph> g; // offset of input for the caller node, since the first // input of CallFunction is the function node and the graph // for CallFunction start with actual input size_t input_offset; if (n->kind() == prim::CallMethod) { auto m = getInvokedModule(module, n, self); g = m.get_method(n->s(attr::name)).graph(); input_offset = 0; } else { g = getCallFunctionGraph(n); input_offset = 1; } // add mapping from callsite value to value in called graph for (auto i = 0U; i < g->outputs().size(); ++i) { auto* return_val = g->outputs()[i]; boundary_value_map_[n->output(i)].insert(return_val); } for (auto i = 0U; i < g->inputs().size(); ++i) { auto caller_input_index = i + input_offset; auto* caller_input = n->input(caller_input_index); auto* input_val = g->inputs()[i]; boundary_value_map_[caller_input].insert(input_val); } } else if (n->kind() == prim::If) { for (Block* subblock : n->blocks()) { blocks_to_visit.push(subblock); for (Value* v : n->outputs()) { boundary_value_map_[v].insert(subblock->outputs()[v->offset()]); } } } else { for (Block* subblock : n->blocks()) { blocks_to_visit.push(subblock); } } } } } void InsertObserversHelper::setDynamicFlag(bool is_dynamic_) { is_dynamic = is_dynamic_; } void InsertObserversHelper::preprocess( Module& module, const std::string& method_name) { Method method = module.get_method(method_name); auto graph = method.graph(); // TODO: remove constant prop, add separate graph // cleanup step before insert observers // To cleanup traced graph ConstantPooling(graph); ConstantPropagation(graph); // must do constant propagation first before replacement replaceConvolutionWithConv2d(graph); // fuse decomposed linear into aten::linear FuseLinear(graph); addValuesToDelayObservation(module, method_name); fillValueObserverMap(module, method_name); fillBoundaryValueMap(module, method_name); fillPassThroughValueMap(graph); for (auto& invoked_method : getInvokedMethods(module, method_name)) { auto& invoked_module = std::get<0>(invoked_method); const auto& invoked_method_name = std::get<1>(invoked_method); preprocess(invoked_module, invoked_method_name); } } // TODO: remove this as a class method bool InsertObserversHelper::valueNeedsToBeQuantized(Value* v) { if (isBiasOfConvOrLinear(v) || !(v->type()->isSubtypeOf(TensorType::get()) || v->type()->isSubtypeOf(ListType::ofTensors()))) { return false; } // For dynamic quantization we only insert observers at the input // of the quantizable function. if (!is_dynamic) { // Check whether producer is quantizable if (mayRequireObservation(v) && nodeQuantizable(v->node())) { return true; } } // Check whether user is quantizable for (const auto& use : v->uses()) { if (nodeQuantizable(use.user)) { return true; } } return false; } void InsertObserversHelper::fillValueObserverMap( Module& module, const std::string& method_name) { Method method = module.get_method(method_name); auto graph = method.graph(); if (visited_graph_of_observer_map_.count(graph.get())) { return; } visited_graph_of_observer_map_.insert(graph.get()); std::stack<Block*> blocks_to_visit; auto qconfig_opt = module_qconfig_map_.at(module._ivalue()); if (!qconfig_opt) { return; } auto qconfig = *qconfig_opt; for (auto* v : graph->inputs()) { if (valueNeedsToBeQuantized(v)) { observer_for_value_[v] = getObserverModuleFor(v, qconfig); } } blocks_to_visit.push(graph->block()); while (!blocks_to_visit.empty()) { Block* b = blocks_to_visit.top(); blocks_to_visit.pop(); for (Node* n : b->nodes()) { for (Value* v : n->outputs()) { if (valueNeedsToBeQuantized(v)) { observer_for_value_[v] = getObserverModuleFor(v, qconfig); } } for (Block* subblock : n->blocks()) { blocks_to_visit.push(subblock); } } } } c10::optional<Module> InsertObserversHelper::getObserverFor(Value* v) { if (observer_for_value_.count(v)) { auto observer = observer_for_value_.at(v); return observer; } c10::optional<Module> result; if (boundary_value_map_.count(v)) { for (Value* next : boundary_value_map_.at(v)) { auto observer_opt = getObserverFor(next); if (observer_opt) { // Need to make sure all values are // configured with same observer if (result) { TORCH_CHECK( *observer_opt == *result, "Expecting all values in the graph only configured with one observer"); } else { result = observer_opt; } } } } return result; } std::tuple<OptionalModuleVector, OptionalModuleVector, std::vector<size_t>> InsertObserversHelper::insertObservers( Module& module, const std::string& method_name, bool is_entry_point, std::unordered_set<Value*> graph_observed_values) { auto graph = module.get_method(method_name).graph(); return insertObserversFor( graph->block(), module, graph_observed_values, is_entry_point); } void InsertObserversHelper::recordObserved( Value* v, Module observer_module, std::unordered_map<Value*, Module>& values_to_observe, std::unordered_set<Value*>& block_observed_values) { Value* to_observe = v; if (delay_observation_map_.count(v)) { to_observe = delay_observation_map_.at(v); } values_to_observe[to_observe] = observer_module; block_observed_values.insert(to_observe); } std::tuple<OptionalModuleVector, OptionalModuleVector, std::vector<size_t>> InsertObserversHelper::insertObserversFor( Block* block, script::Module& module, std::unordered_set<Value*>& block_observed_values, bool is_entry_point, bool is_user_defined_function) { // input/output values, used to skip inserting observers // for input and output of the block and the owning graph, // we have to insert the observers at call site because // the graph itself can be shared std::unordered_set<Value*> inputs_outputs; // list of observer modules for input values std::vector<c10::optional<Module>> block_input_observers; // list of observer modules for output values std::vector<c10::optional<Module>> block_output_observers; // if the current block is the block for entry point graph(the forward graph // of the top level module), we can insert observers in the block directly if (!is_entry_point) { auto* graph = block->owningGraph(); // graph inputs/outputs for (auto list : {graph->inputs(), graph->outputs()}) { for (auto* v : list) { inputs_outputs.insert(v); } } // block outputs for (auto* v : block->outputs()) { inputs_outputs.insert(v); } for (auto* v : block->inputs()) { block_input_observers.push_back(getObserverFor(v)); } for (auto* v : block->outputs()) { block_output_observers.push_back(getObserverFor(v)); } } // This means the block is been processed before, we just // need to attach observer modules and construct the information // needed by call site here bool visited = block_observer_map_.count(block); if (visited) { // instance clone of observer module and setAttr for (const auto& observer_attrs : block_observer_map_.at(block)) { const auto& name = std::get<0>(observer_attrs); const auto& observer = std::get<1>(observer_attrs); module._ivalue()->setAttr(name, observer.clone_instance()._ivalue()); } } // NB: Why do we need to process the graph even if it's visited? // Reason is `graph_observed_values` can // change depending on where the method is called, and // outputs that's been observed(third item of the returned result) // can change depending on that, so for each graph we'll need to go through // the whole process of inserting observers std::stack<Block*> blocks_to_visit; blocks_to_visit.push(block); auto* self = block->owningGraph()->inputs()[0]; // We first construct a map from value to the module, then // insert observers for them later, this is to avoid interference // of the inserted observers with the analysis to decide where // to insert observers, also we only insert observers for // "intermediate values" that is not the input/output of the // graph std::unordered_map<Value*, Module> values_to_observe; for (auto* v : block->inputs()) { if (!inputs_outputs.count(v) && !values_to_observe.count(v)) { if (auto observer_opt = getObserverFor(v)) { recordObserved(v, *observer_opt, values_to_observe, block_observed_values); } } } while (!blocks_to_visit.empty()) { Block* b = blocks_to_visit.top(); blocks_to_visit.pop(); for (Node* n : b->nodes()) { if (observer_nodes_.count(n)) { continue; } if (n->kind() == prim::CallMethod || userDefinedCallFunction(n)) { script::Module m; std::shared_ptr<Graph> g; size_t input_offset; bool is_udf_for_subblock = is_user_defined_function; if (n->kind() == prim::CallMethod) { m = getInvokedModule(module, n, self); g = m.get_method(n->s(attr::name)).graph(); input_offset = 0; } else { // CallFunction m = module; g = getCallFunctionGraph(n); input_offset = 1; is_udf_for_subblock = true; } std::unordered_set<Value*> callee_observed_inputs; for (auto i = 0U; i < g->inputs().size(); ++i) { auto* node_input = n->input(i + input_offset); if (isObserved(node_input, block_observed_values)) { callee_observed_inputs.insert(g->inputs()[i]); } } auto* subblock = g->block(); auto info_from_callee = insertObserversFor( subblock, m, callee_observed_inputs, false, is_udf_for_subblock); auto input_observers = std::get<0>(info_from_callee); auto output_observers = std::get<1>(info_from_callee); auto callee_observed_outputs = std::get<2>(info_from_callee); for (auto idx : callee_observed_outputs) { block_observed_values.insert(n->outputs()[idx]); } for (auto i = 0U; i < g->inputs().size(); ++i) { auto* node_input = n->input(i + input_offset); if (input_observers[i] && !inputs_outputs.count(node_input) && !isObserved(node_input, block_observed_values)) { recordObserved(node_input, *input_observers[i], values_to_observe, block_observed_values); } } for (auto i = 0U; i < n->outputs().size(); ++i) { if (output_observers[i] && !inputs_outputs.count(n->output(i)) && !isObserved(n->output(i), block_observed_values)) { recordObserved(n->output(i), *output_observers[i], values_to_observe, block_observed_values); } } } else if (n->kind() == prim::If) { std::vector<size_t> aggregated_observed_outputs; std::vector<c10::optional<script::Module>> aggregated_output_observers; for (Block* subblock : n->blocks()) { // subblock has access to all the values in the scope of prim::If, // so subblock_observed_values == block_observed_values auto info_from_subblock = insertObserversFor(subblock, module, block_observed_values); auto output_observers = std::get<1>(info_from_subblock); auto subblock_observed_outputs = std::get<2>(info_from_subblock); // subblock for prim::If doesn't have inputs if (aggregated_observed_outputs.size() > 0) { TORCH_CHECK( aggregated_observed_outputs == subblock_observed_outputs, "quantization doesn't work for the case where branches " "of `if` doesn't both return quantized/non-quantized " "values"); } else { for (auto idx : subblock_observed_outputs) { block_observed_values.insert(n->output(idx)); } aggregated_observed_outputs = subblock_observed_outputs; } if (aggregated_output_observers.size() > 0) { TORCH_CHECK( aggregated_output_observers == output_observers, "quantization doesn't work for the case where branches " "of `if` doesn't both return values quantized the same " "way"); } else { for (auto i = 0; i < n->outputs().size(); ++i) { if (output_observers[i] && !inputs_outputs.count(n->output(i)) && !block_observed_values.count(n->output(i)) && !observed_values_.count(n->output(i))) { recordObserved(n->output(i), *output_observers[i], values_to_observe, block_observed_values); } } aggregated_output_observers = output_observers; } } } else { for (Value* v : n->outputs()) { propagateObservedProperty(v, block_observed_values); if (!inputs_outputs.count(v) && !isObserved(v, block_observed_values)) { if (auto observer_opt = getObserverFor(v)) { recordObserved(v, *observer_opt, values_to_observe, block_observed_values); } } } for (Block* subblock : n->blocks()) { blocks_to_visit.push(subblock); } } } } std::vector<size_t> output_idxs; for (auto i = 0U; i < block->outputs().size(); ++i) { if (isObserved(block->outputs()[i], block_observed_values)) { output_idxs.push_back(i); } } if (!visited) { NameModuleVector observer_name_and_modules; for (const auto& item : values_to_observe) { auto* v = item.first; auto observer = item.second; TORCH_CHECK(!is_user_defined_function, "Inserting observers for user defined functions is not " "supported right now"); insertObserverFor(v, module, observer, observer_name_and_modules); } block_observer_map_[block] = observer_name_and_modules; } return std::make_tuple( block_input_observers, block_output_observers, output_idxs); } void InsertObserversHelper::propagateObservedProperty( Value* output, std::unordered_set<Value*>& block_observed_values) { if (pass_through_value_map_.count(output)) { // since the vector is always non-empty, we will // not return the initial value bool all_observed = true; for (Value* v : pass_through_value_map_.at(output)) { all_observed &= observed_values_.count(v) || block_observed_values.count(v); } if (all_observed) { // This is to propagate observed property through // all ops that doesn't require observation block_observed_values.insert(output); } } } void insertDeQuantCall( Graph* graph, Value* quantized_val, Value* original_val, const std::vector<Use>& uses) { for (size_t i = 0; i < uses.size(); ++i) { auto* user = uses[i].user; // Insert dequantize node right before use node, because // we want to make sure use node and dequantize node reside // in the same block so that quant fusion can happen WithInsertPoint ins(user); Node* dequant = graph->create(Symbol::aten("dequantize"), {quantized_val}); dequant->output() ->setDebugName( original_val->debugName() + ".dequant." + c10::guts::to_string(i)) ->setType(original_val->type()); user->replaceInputWith(original_val, dequant->output()); graph->insertNode(dequant); } } void insertQuantDeQuantCall( Value* self, Node* observer, bool is_per_channel, const std::vector<std::string>& qparam_names) { Graph* g = observer->owningGraph(); // Original value that is observed Value* v = observer->input(1); // Inserting before insert point WithInsertPoint ins(v->node()->next()); std::vector<Value*> inputs = {v}; // Insert GetAttr nodes for quantization parameters for (const auto& qparam_name : qparam_names) { inputs.push_back(g->insertGetAttr(self, qparam_name)); } std::string quantize_func; if (is_per_channel) { quantize_func = "quantize_per_channel"; } else { quantize_func = "quantize_per_tensor"; } Node* quant = g->create(at::Symbol::aten(quantize_func), inputs); quant->output()->setDebugName(v->debugName() + ".quant"); g->insertNode(quant); // two passes to insert the dequant for every usage // in first pass, identify all the nodes using "v" std::vector<Use> uses; for (const auto& use : v->uses()) { // Skip quant node and observer node (we need to keep // observer nodes around since we need them to // find the quantization parameters) if (use.user != quant && use.user != observer) { uses.push_back(use); } } // in second pass, replace the input "v" with dequant output insertDeQuantCall(g, quant->output(), v, uses); } // find the observer for Value `v` and return the name of the observer c10::optional<std::string> findObserverName(Value* v) { // Note that here we just check for the name of observer, but the ideally // we should be comparing the type of observer, this is a temporary // work around until data only clone of module.clone is supported. Node* n = v->node(); if (n->kind() == prim::CallMethod && n->s(attr::name) == "forward") { auto module_instance = n->inputs().at(0); if (module_instance->node()->kind() == prim::GetAttr && module_instance->node()->s(attr::name).find("_observer_") != std::string::npos) { return module_instance->node()->s(attr::name); } } return c10::nullopt; } c10::QScheme toAffine(c10::QScheme qscheme) { switch (qscheme) { case c10::kPerTensorAffine: case c10::kPerTensorSymmetric: return c10::kPerTensorAffine; case c10::kPerChannelAffine: case c10::kPerChannelSymmetric: return c10::kPerChannelAffine; default: return qscheme; } } class InsertQuantDeQuantHelper { public: InsertQuantDeQuantHelper() {} void run(Module& module, const std::string& method_name); ModuleMethodVector getInvokedMethods( Module& module, const std::string& method_name); // Get quantization parameter map of the given Value in Graph // by searching for observer module of the value and extract the // quantization parameters from the observer module std::tuple<c10::QScheme, QParamVector> getQSchemeAndQParamVector( script::Module& module, Node* n); void checkQScheme(Graph* g, c10::QScheme qscheme) { if (qscheme_for_graph_.count(g)) { TORCH_CHECK( qscheme_for_graph_.at(g) == qscheme || "Quantizing same graph with different types of " "QSchemes is not supported.\n", " Expecting:", c10::toString(qscheme_for_graph_.at(g)), " Got:", c10::toString(qscheme)); } else { qscheme_for_graph_[g] = toAffine(qscheme); } } c10::optional<Module> findChildModuleToQuantize( Module& module, Value* child_instance); void collectObserverNodesAndValueToQuantize(Module& module, Value*); // Cleanup observer nodes from graph and observer modules // from module object and ClassType void cleanup(Module& module); void cleanup(Module& module, Graph* g); void quantizeTensors(Module& module, Graph* g, Value* self); private: std::unordered_map<Graph*, std::vector<std::string>> observer_modules_to_remove_; // We only remove observer module attributes from type in the // first encounter of the graph, after that since the attributes // is already removed from the ClassType, we'll use the list of slot index to // replay this removal std::unordered_map<Graph*, std::vector<int>> removed_observer_slots_; std::unordered_map<Graph*, std::vector<Node*>> nodes_to_destroy_; // Map from Graph to observer node, we can use observer node to // get the information of original value that's been observed and // the quantization parameters std::unordered_map<Graph*, std::vector<Node*>> observer_nodes_for_graph_; // A map from qparam name (e.g. _scale) to the attribute name in // the module(e.g. weight_scale_0) std::unordered_map<Node*, std::unordered_map<std::string, std::string>> qparam_name_map_for_node_; // Record qscheme for every graph, this is for checking // each graph is only quantized with one type of QScheme std::unordered_map<Graph*, c10::QScheme> qscheme_for_graph_; }; void InsertQuantDeQuantHelper::collectObserverNodesAndValueToQuantize( Module& module, Value* v) { auto* g = v->owningGraph(); auto observer_name = findObserverName(v); if (!observer_name) { return; } observer_modules_to_remove_[g].push_back(observer_name.value()); Node* observer = v->node(); TORCH_INTERNAL_ASSERT( observer->kind() == prim::CallMethod && observer->s(attr::name) == "forward" && observer->inputs()[0]->node()->kind() == prim::GetAttr && observer->inputs()[0]->node()->s(attr::name) == observer_name); // Observer forward call node nodes_to_destroy_[g].push_back(observer); // GetAttr node for observer module nodes_to_destroy_[g].push_back(observer->inputs()[0]->node()); Value* original_value = observer->input(1); v->replaceAllUsesWith(original_value); observer_nodes_for_graph_[g].push_back(observer); } void InsertQuantDeQuantHelper::cleanup(Module& module) { for (auto& method : module.get_methods()) { cleanup(module, method.graph().get()); } for (Module m : module.children()) { cleanup(m); } } void InsertQuantDeQuantHelper::cleanup(Module& module, Graph* g) { GRAPH_DUMP("Before Remove Observers:", g); if (nodes_to_destroy_.count(g)) { for (auto& n : nodes_to_destroy_.at(g)) { n->removeAllInputs(); } for (auto& n : nodes_to_destroy_.at(g)) { n->destroy(); } nodes_to_destroy_.at(g).clear(); } // 1. If we have seen this graph before, this means the observer // attributes has been removed from the type(see step 2) but the slot // index of these attributes are kept in the list, we'll replay the observer // slots removal using these slot indexes if (removed_observer_slots_.count(g)) { for (auto slot : removed_observer_slots_.at(g)) { module._ivalue()->unsafeRemoveSlot(slot); } } // 2. Remove observer modules from last one to first one in order to // reduce the time complexity, assuming all the observer modules // are added after the existing modules, we'll have complexity of // O(N) where N is number of observer modules with this optimization if (observer_modules_to_remove_.count(g)) { auto& observers = observer_modules_to_remove_.at(g); for (int64_t i = observers.size() - 1; i >= 0; --i) { auto observer_name = observers[i]; GRAPH_DEBUG("Trying to remove: ", observer_name); if (module.type()->hasAttribute(observer_name)) { // We record the slot index here in order to replay the // slot removal in other objects that's sharing the ClassType // since we're going to remove attribute in the ClassType here removed_observer_slots_[g].push_back( module.type()->getAttributeSlot(observer_name)); module._ivalue()->unsafeRemoveAttr(observer_name); module.type()->unsafeRemoveAttribute(observer_name); } } observers.clear(); } GRAPH_DUMP("After remove observers :", g); } void InsertQuantDeQuantHelper::quantizeTensors( Module& module, Graph* g, Value* self) { if (!observer_nodes_for_graph_.count(g)) { return; } for (auto* n : observer_nodes_for_graph_.at(g)) { auto* original_value = n->input(1); auto tp = getQSchemeAndQParamVector(module, n); auto qscheme = std::get<0>(tp); auto qparam_map = std::get<1>(tp); checkQScheme(g, qscheme); std::vector<std::string> qparam_names; for (auto& pr : qparam_map) { const auto& name = pr.first; const auto& qparam = pr.second; size_t uid = 0; auto qparam_name = original_value->debugName() + name + "_" + c10::to_string(uid++); while (module.hasattr(qparam_name)) { qparam_name = original_value->debugName() + name + "_" + c10::to_string(uid++); } qparam_name_map_for_node_[n][name] = qparam_name; module.register_attribute(qparam_name, qparam.type(), qparam); qparam_names.push_back(qparam_name); } insertQuantDeQuantCall(self, n, isPerChannel(qscheme), qparam_names); } } void checkGetQParamsResult(const IValue& qparams) { TORCH_CHECK( qparams.isTuple(), "`get_qparams` function is expected to return a " "Tuple, but got:", qparams.tagKind()); auto tp = qparams.toTuple(); TORCH_CHECK( tp->elements().size() == 2 || tp->elements().size() == 3, "`get_qparams` function is expected to return a " "Tuple of size 2 or 3, got Tuple of size ", tp->elements().size()); // Expect first two elements of the tuple to be Tensor for (size_t i = 0; i < 2; ++i) { TORCH_CHECK( tp->elements()[i].isTensor(), "Element of Tuple is expected to be Tensor, but element ", i, " has type: ", tp->elements()[i].tagKind()); } // Expect the third elements of the tuple to be int if (tp->elements().size() == 3) { TORCH_CHECK( tp->elements()[2].isInt(), "Element of Tuple is expected to be int, but element ", 2, " has type: ", tp->elements()[2].tagKind()); } } std::tuple<c10::QScheme, QParamVector> InsertQuantDeQuantHelper:: getQSchemeAndQParamVector(script::Module& module, Node* n) { // TODO: refactor findObserverName to take Node* as input Value* v = n->output(); TORCH_INTERNAL_ASSERT( v->type()->isSubtypeOf(TensorType::get()), "Expected output of observer node to be Tensor"); auto observer_name = findObserverName(v); TORCH_INTERNAL_ASSERT( observer_name, "getQSchemeAndParamMap expects the corresponding observer for ", v->debugName(), " exists."); auto observer_module = module.attr(observer_name.value()).toModule(); auto get_qparams = observer_module.get_method("get_qparams"); IValue result = get_qparams(std::vector<IValue>()); checkGetQParamsResult(result); auto scalar_type = observer_module.attr("dtype"); TORCH_CHECK( scalar_type.toScalarType() != at::ScalarType::Undefined, "dtype of observer can't be undefined"); auto tp = result.toTuple(); at::Tensor scale = tp->elements()[0].toTensor().to(at::kFloat); at::Tensor zero_point = tp->elements()[1].toTensor().to(at::kInt); // quantization parameters should appear in the same order as // the argument for quantize_per_tensor/quantize_per_channel function QParamVector qparams; auto qscheme = observer_module.attr("qscheme").toQScheme(); if (isPerChannel(qscheme)) { qparams.push_back(std::make_pair("_scale", scale)); qparams.push_back(std::make_pair("_zero_point", zero_point)); qparams.push_back(std::make_pair("_axis", tp->elements()[2].toInt())); } else { qparams.push_back(std::make_pair("_scale", scale.item<double>())); qparams.push_back( std::make_pair("_zero_point", zero_point.item<int64_t>())); } qparams.push_back(std::make_pair("_scalar_type", scalar_type)); return std::make_tuple(qscheme, qparams); } c10::optional<Module> InsertQuantDeQuantHelper::findChildModuleToQuantize( Module& module, Value* child_instance) { TORCH_INTERNAL_ASSERT( child_instance->node()->kind() == prim::GetAttr, "Child instance should come from GetAttr."); auto child_module_name = child_instance->node()->s(attr::name); if (child_module_name.find("_observer_") == std::string::npos) { return module.attr(child_module_name).toModule(); } return c10::nullopt; } ModuleMethodVector InsertQuantDeQuantHelper::getInvokedMethods( Module& module, const std::string& method_name) { auto graph = module.get_method(method_name).graph(); ModuleMethodVector invoked_methods; std::stack<Block*> blocks_to_visit; blocks_to_visit.push(graph->block()); while (!blocks_to_visit.empty()) { Block* b = blocks_to_visit.top(); blocks_to_visit.pop(); for (Node* n : b->nodes()) { if (n->kind() == prim::CallMethod) { auto module_instance = n->inputs()[0]; auto module_method_name = n->s(attr::name); c10::optional<Module> m; // calling method on self if (module_instance == graph->inputs()[0]) { m = module; } else { m = findChildModuleToQuantize(module, module_instance); } if (m) { invoked_methods.push_back({*m, module_method_name}); } } for (Block* subblock : n->blocks()) { blocks_to_visit.push(subblock); } } } return invoked_methods; } void InsertQuantDeQuantHelper::run( Module& module, const std::string& method_name) { for (auto& invoked_methods : getInvokedMethods(module, method_name)) { auto& invoked_module = std::get<0>(invoked_methods); const auto& invoked_method_name = std::get<1>(invoked_methods); run(invoked_module, invoked_method_name); } Method method = module.get_method(method_name); auto graph = method.graph(); // We only need to register new parameters if the graph has // been quantized before // TODO: dedup this part with code in quantizeTensors if (observer_nodes_for_graph_.count(graph.get())) { for (auto* n : observer_nodes_for_graph_.at(graph.get())) { auto tp = getQSchemeAndQParamVector(module, n); checkQScheme(graph.get(), std::get<0>(tp)); auto qparam_map = std::get<1>(tp); TORCH_INTERNAL_ASSERT( qparam_name_map_for_node_.count(n), "Expected to have a qparam_name_map for node:", *n); auto qparam_name_map = qparam_name_map_for_node_.at(n); for (auto& pr : qparam_map) { const auto& name = pr.first; const auto& qparam = pr.second; module._ivalue()->setAttr(qparam_name_map.at(name), qparam); } } return; } // prim::Param nodes do not belong to the graph. Hence the Insert // point is the beginning of graph node. This also safe guards against // observing a potentially mutated value due to some in-place operation std::vector<Value*> input_values; for (size_t idx = 1; idx < method.num_inputs(); ++idx) { auto& v = graph->inputs()[idx]; if (v->type()->isSubtypeOf(TensorType::get())) { input_values.push_back(v); } } std::stack<Block*> blocks_to_visit; blocks_to_visit.push(graph->block()); while (!blocks_to_visit.empty()) { Block* b = blocks_to_visit.top(); blocks_to_visit.pop(); for (auto it = b->nodes().begin(), end = b->nodes().end(); it != end;) { Node* n = *it++; for (Value* v : n->outputs()) { if (!v->type()->isSubtypeOf(TensorType::get())) { continue; } collectObserverNodesAndValueToQuantize(module, v); } for (Block* subblock : n->blocks()) { blocks_to_visit.push(subblock); } } } for (Value* v : input_values) { collectObserverNodesAndValueToQuantize(module, v); } GRAPH_DUMP("Before Quantize Tensors:", graph); Value* self = graph->inputs()[0]; quantizeTensors(module, graph.get(), self); GRAPH_DUMP("After Quantize Tensors:", graph); } void insertPrepackUnpackForLinear(std::shared_ptr<Graph>& graph) { std::string linear_with_quant = R"( graph(%a_dequant, %w_quant, %b): %w_dequant = aten::dequantize(%w_quant) %r = aten::linear(%a_dequant, %w_dequant, %b) return (%r) )"; std::string linear_with_quant_prepack = R"( graph(%a_dequant, %w_quant, %b): %packed_params = quantized::linear_prepack(%w_quant, %b) %w_quant_unpacked : Tensor, %b_unpacked : Tensor? = quantized::linear_unpack(%packed_params) %w_dequant = aten::dequantize(%w_quant_unpacked) %r = aten::linear(%a_dequant, %w_dequant, %b_unpacked) return (%r) )"; SubgraphRewriter rewriter; rewriter.RegisterRewritePattern(linear_with_quant, linear_with_quant_prepack); rewriter.runOnGraph(graph); } void insertPrepackUnpackForConv2d(std::shared_ptr<Graph>& graph) { std::string conv_with_quant = R"( graph(%a_dequant, %w_quant, %b, %stride, %padding, %dilation, %groups): %w_dequant = aten::dequantize(%w_quant) %r = aten::conv2d(%a_dequant, %w_dequant, %b, %stride, %padding, %dilation, %groups) return (%r) )"; std::string conv_with_quant_prepack = R"( graph(%a_dequant, %w_quant, %b, %stride, %padding, %dilation, %groups): %packed_params = quantized::conv2d_prepack(%w_quant, %b, %stride, %padding, %dilation, %groups) %w_quant_unpacked : Tensor, %b_unpacked : Tensor? = quantized::conv2d_unpack(%packed_params) %w_dequant = aten::dequantize(%w_quant_unpacked) %r = aten::conv2d(%a_dequant, %w_dequant, %b_unpacked, %stride, %padding, %dilation, %groups) return (%r) )"; SubgraphRewriter rewriter; rewriter.RegisterRewritePattern(conv_with_quant, conv_with_quant_prepack); rewriter.runOnGraph(graph); } c10::optional<IValue> toTwoElementIntList(Value* v) { auto* n = v->node(); if (n->kind() == prim::Constant) { auto iv = toIValue(v); if (iv && iv.value().isIntList() && iv.value().toIntList().size() == 2) { return iv; } } if (n->kind() == prim::ListConstruct && n->inputs().size() == 2) { auto e0 = toIValue(n->inputs()[0]); auto e1 = toIValue(n->inputs()[1]); if (!e0 || !e1 || !e0.value().isInt() || !e1.value().isInt()) { return c10::nullopt; } return IValue(c10::List<int64_t>({e0.value().toInt(), e1.value().toInt()})); } return c10::nullopt; } // A helper class to make uses of module unique class ModuleUseDeduper { public: ModuleUseDeduper(Module& module) : module_(module) {} void dedup() { for (auto& method : module_.get_methods()) { const auto& graph = method.graph(); findModuleUses(graph.get()); } dedupModuleUses(); } private: // Analyze the code to record information represents // uses of the module, which we'll use later to actually perform the dedup // operation Please see the comments of member variables of the class for more // information void findModuleUses(Graph* graph) { GRAPH_DUMP("Finding module uses for ", graph); std::stack<Block*> blocks_to_visit; blocks_to_visit.push(graph->block()); Value* self = graph->inputs()[0]; while (!blocks_to_visit.empty()) { Block* b = blocks_to_visit.top(); blocks_to_visit.pop(); for (Node* n : b->nodes()) { for (Block* subblock : n->blocks()) { blocks_to_visit.push(subblock); } if (n->kind() != prim::CallMethod) { continue; } Value* instance = n->inputs()[0]; // boundary_val is the value we get when we trace back // the GetAttr access chain until we hit the input of graph // or a node that is not prim::GetAttr auto path = getModuleAccessPath(instance, self); // path.size() == 0 means we're calling a method // on self, we don't need to dedup uses of self if (path.size() == 0) { continue; } value_to_path_map_[instance] = path; auto m = findChildModule(module_, path); // If we fail to insert the module to the unique_modules_ set, // which means there are uses of this module before this point, // we'll have to rewrite the use if (!unique_modules_.insert(m._ivalue()).second) { uses_to_rewrite_.push_back(instance); GRAPH_DEBUG("Found use to rewrite: ", instance->debugName()); } } } } // Deduplicate module uses given the information we recorded before void dedupModuleUses() { for (Value* v : uses_to_rewrite_) { const auto& path = value_to_path_map_.at(v); const auto& m = findChildModule(module_, path); // add a clone of the child module to the parent of the duplicated module const auto& child_name = addChildModule(module_, m, path); TORCH_INTERNAL_ASSERT(v->node()->kind() == prim::GetAttr); // change the name in GetAttr call auto original_name = v->node()->s(attr::name); v->node()->s_(attr::name, child_name); GRAPH_UPDATE( "Module use dedup: changing use of original module ", original_name, " to ", child_name); } } std::string addChildModule( Module& module, const Module& child_module, const std::vector<std::string>& path) { TORCH_INTERNAL_ASSERT( path.size() > 0, "path must have at least one element."); // Parent module of the leaf child module corresponding to // the path auto parent_of_leaf = findChildModule( module, std::vector<std::string>(path.begin(), path.end() - 1)); // Original name of the child module std::string original_name = path[path.size() - 1]; int uid = 0; std::string child_name = original_name + "_" + c10::to_string(uid++); while (parent_of_leaf.hasattr(child_name)) { child_name = original_name + "_" + c10::to_string(uid++); } parent_of_leaf.register_module(child_name, child_module.clone_instance()); return child_name; } Module module_; // Map from value of module instance to the list of names of submodules // starting from the top level module, e.g. ["sub1", "sub2", "relu"] // Also this is a cache of calling `getModuleAccessPath` of the value std::unordered_map<Value*, std::vector<std::string>> value_to_path_map_; // Set of unique modules that are used in the graphs std::unordered_set<ModulePtr> unique_modules_; // Values that represent the module instance(the use of the module) // that we'll need to rewrite as a use of a cloned module // instance std::vector<Value*> uses_to_rewrite_; }; struct ConvBNParameters { at::Tensor conv_w; at::Tensor conv_b; at::Tensor bn_rm; at::Tensor bn_rv; double bn_eps = 0.0; at::Tensor bn_w; at::Tensor bn_b; }; static bool hastensor(Module& m, const char* name) { return m.hasattr(name) && m.attr(name).isTensor(); } class FoldConvBatchNorm2dHelper { public: /** * In this step we find all Conv2d - BatchNorm2d patterns in the graph * and extract the corresponding parameters for these two modules, * and record informations for the modifications of the graph without * actually performing these modifications. */ void analyze(Module& module); /** * In this step we perform all the modifications including * setting the attributes for conv module, rewriting values * and deleting nodes in the graph */ void transform(); private: bool tryExtractingConvBNParameters( Module& conv, Module& bn, ConvBNParameters& r); /** * Given the current weight and bias tensors of a Conv2d module and parameters * of the BatchNorm2d module we're folding with, compute the updated values * for the weight and bias. * * The function is basically copied from torch/nn/utils/fusion.py */ std::tuple<at::Tensor, at::Tensor> computeUpdatedConvWeightAndBias( const ConvBNParameters& p); std::unordered_map<ModulePtr, std::tuple<at::Tensor, at::Tensor>> conv_module_and_params_; std::unordered_map<Graph*, std::vector<std::tuple<std::string, std::string>>> conv_bn_names_; std::unordered_map<Value*, Value*> rewrite_map_; std::vector<Value*> values_to_rewrite_; std::unordered_set<Node*> nodes_to_delete_; }; std::tuple<at::Tensor, at::Tensor> FoldConvBatchNorm2dHelper:: computeUpdatedConvWeightAndBias(const ConvBNParameters& p) { at::Tensor bn_var_rsqrt = at::rsqrt(p.bn_rv + p.bn_eps); at::Tensor new_w = p.conv_w * (p.bn_w * bn_var_rsqrt).reshape({-1, 1, 1, 1}); at::Tensor new_b = (p.conv_b - p.bn_rm) * bn_var_rsqrt * p.bn_w + p.bn_b; return std::make_tuple(new_w, new_b); } bool extractOptionalBNParams(const script::Module& bn, ConvBNParameters& r) { auto bn_forward = bn.get_method("forward"); auto graph = bn_forward.graph(); const PatternInfo& pattern_bn = PatternInfo::parse_from_str(R"( graph(%a, %weight, %bias, %running_mean, %running_var, %training, %momentum, %eps, %cudnn_enabled): %bn_out = aten::batch_norm(%a, %weight, %bias, %running_mean, %running_var, %training, %momentum, %eps, %cudnn_enabled) return (%bn_out) )"); const Graph& pattern_bn_graph = *pattern_bn.pattern_graph; const auto& bn_vmap = pattern_bn.vmap; const auto& matches = findPatternMatches(pattern_bn_graph, *graph); if (matches.size() > 1) { return false; } if (bn.hasattr("eps")) { r.bn_eps = bn.attr("eps").toDouble(); } else { auto optional_eps = toIValue(matches[0].values_map.at(bn_vmap.at("eps"))); if (!optional_eps) { return false; } r.bn_eps = optional_eps.value().toDouble(); } r.bn_w = at::ones_like(bn.attr("running_mean").toTensor()); if (bn.hasattr("weight")) { if (bn.attr("weight").isTensor()) { r.bn_w = bn.attr("weight").toTensor(); } } else { auto optional_bn_weight = toIValue(matches[0].values_map.at(bn_vmap.at("weight"))); if (!optional_bn_weight) { return false; } if (optional_bn_weight.value().isTensor()) { r.bn_w = optional_bn_weight.value().toTensor(); } } r.bn_b = at::zeros_like(bn.attr("running_mean").toTensor()); if (bn.hasattr("bias")) { if (bn.attr("bias").isTensor()) { r.bn_b = bn.attr("bias").toTensor(); } } else { auto optional_bn_bias = toIValue(matches[0].values_map.at(bn_vmap.at("bias"))); if (!optional_bn_bias) { return false; } if (optional_bn_bias.value().isTensor()) { r.bn_b = optional_bn_bias.value().toTensor(); } } return true; } bool FoldConvBatchNorm2dHelper::tryExtractingConvBNParameters( Module& conv, Module& bn, ConvBNParameters& r) { if (!hastensor(conv, "weight") || !conv.hasattr("bias") || !hastensor(bn, "running_mean") || !hastensor(bn, "running_var")) { return false; } r.bn_rm = bn.attr("running_mean").toTensor(); r.bn_rv = bn.attr("running_var").toTensor(); if (!extractOptionalBNParams(bn, r)) { return false; } r.conv_w = conv.attr("weight").toTensor(); r.conv_b = at::zeros_like(r.bn_rm); auto bias_opt = conv.attr("bias").toOptional<at::Tensor>(); if (bias_opt) { r.conv_b = *bias_opt; } return true; } void FoldConvBatchNorm2dHelper::analyze(Module& module) { // Dot in the ".Conv2d" and ".BatchNorm2d" is an attempt to // prevent matching module's whose name might end with Conv2d // But are user defined modules. const PatternInfo pattern = PatternInfo::parse_from_str(R"IR( graph(%self, %x): %conv_submodule = match::module[name=".Conv2d"](%self) %conv_out = prim::CallMethod[name="forward"](%conv_submodule, %x) %bn_submodule = match::module[name=".BatchNorm2d"](%self) %bn_out = prim::CallMethod[name="forward"](%bn_submodule, %conv_out) return (%bn_out))IR"); const Graph& pattern_graph = *pattern.pattern_graph; const auto& vmap = pattern.vmap; Value* pattern_conv_out = vmap.at("conv_out"); Value* pattern_bn_out = vmap.at("bn_out"); Value* pattern_conv_submodule = vmap.at("conv_submodule"); Value* pattern_bn_submodule = vmap.at("bn_submodule"); Node* pattern_conv = pattern_conv_out->node(); Node* pattern_bn = pattern_bn_out->node(); // We will put submodules into this worklist and keep processing items from it // one by one. We start by just putting the top module there. std::stack<Module> worklist({module}); while (!worklist.empty()) { Module current = worklist.top(); worklist.pop(); // Queue submodules for processing for (const Module& submodule : current.children()) { worklist.push(submodule); } // Process all method of the current module for (auto& method : current.get_methods()) { GRAPH_DUMP( current.type()->name()->name() + "::" + method.name() + "() before Conv2d-BatchNorm2d folding", method.graph()); const auto& matches = findPatternMatches(pattern_graph, *method.graph()); GRAPH_DEBUG("number of Conv2d-BatchNorm2d matches: ", matches.size()); Graph* g = method.graph().get(); if (!conv_bn_names_.count(g)) { // This is to make sure we don't visit one graph multiple times conv_bn_names_[g] = {}; for (const Match& match : matches) { GRAPH_DEBUG("Checking next match..."); Node* matched_conv = match.nodes_map.at(pattern_conv); Node* matched_bn = match.nodes_map.at(pattern_bn); Node* matched_conv_submodule = match.values_map.at(pattern_conv_submodule)->node(); Node* matched_bn_submodule = match.values_map.at(pattern_bn_submodule)->node(); TORCH_INTERNAL_ASSERT( matched_conv_submodule->kind() == prim::GetAttr); TORCH_INTERNAL_ASSERT(matched_bn_submodule->kind() == prim::GetAttr); const auto& conv_module_name = matched_conv_submodule->s(Symbol::attr("name")); const auto& bn_module_name = matched_bn_submodule->s(Symbol::attr("name")); Module conv_submodule = current.attr(conv_module_name).toModule(); Module bn_submodule = current.attr(bn_module_name).toModule(); ConvBNParameters params; if (!tryExtractingConvBNParameters( conv_submodule, bn_submodule, params)) { GRAPH_DEBUG( "Conv and BN modules didn't have all required parameters or attributes..."); continue; } conv_bn_names_[g].push_back( std::make_tuple(conv_module_name, bn_module_name)); // We are using a separate vector for saving Values we want to rewrite // to make sure that the order in which we perform these // transformations is deterministic. Iterating through keys of // rewrite_map would result in non-determinism that might not manifest // as a bug now, but can bite us later. values_to_rewrite_.push_back(matched_bn->output()); rewrite_map_[matched_bn->output()] = matched_conv->output(); GRAPH_UPDATE( "Rewriting %", matched_bn->output()->debugName(), " with %", matched_conv->output()->debugName()); nodes_to_delete_.insert(matched_bn); nodes_to_delete_.insert(matched_bn_submodule); GRAPH_UPDATE("Deleting ", *matched_bn); GRAPH_UPDATE("Deleting ", *matched_bn_submodule); auto slot = conv_submodule.type()->getAttributeSlot("bias"); TORCH_CHECK( conv_submodule.type()->is_parameter(slot), "Expected conv module to have a bias parameter"); } // matches } for (const auto& conv_bn : conv_bn_names_.at(g)) { Module conv_submodule = current.attr(std::get<0>(conv_bn)).toModule(); Module bn_submodule = current.attr(std::get<1>(conv_bn)).toModule(); ConvBNParameters params; TORCH_INTERNAL_ASSERT(tryExtractingConvBNParameters( conv_submodule, bn_submodule, params)); auto new_w_b = computeUpdatedConvWeightAndBias(params); conv_module_and_params_[conv_submodule._ivalue()] = new_w_b; } // conv_bn module } // methods } // while } void FoldConvBatchNorm2dHelper::transform() { for (const auto& item : conv_module_and_params_) { Module conv(item.first); auto w_b = item.second; conv.setattr("weight", std::get<0>(w_b)); conv.setattr("bias", std::get<1>(w_b)); } // Perform planned rewritings for (auto v : values_to_rewrite_) { v->replaceAllUsesWith(rewrite_map_.at(v)); } // Perform planned deletions for (auto n : nodes_to_delete_) { n->removeAllInputs(); } for (auto n : nodes_to_delete_) { n->destroy(); } } void replaceConv2dBiasWithGetAttr(Module& module) { auto graph = module.get_method("forward").graph(); // Only looks fors _convolution pattern. // Thus assumes that tracing will have always gotten rid of aten::conv2d. // If it did not, BN folding will fail. const PatternInfo& pattern_convolution = PatternInfo::parse_from_str(R"( graph(%a, %w, %b, %stride:int[], %padding:int[], %dilation:int[], %transposed:bool, %output_padding:int[], %groups:int, %benchmark:bool, %deterministic:bool, %cudnn_enabled:bool): %conv_out = aten::_convolution(%a, %w, %b, %stride, %padding, %dilation, %transposed, %output_padding, %groups, %benchmark, %deterministic, %cudnn_enabled) return (%conv_out) )"); const Graph& pattern_convolution_graph = *pattern_convolution.pattern_graph; const auto& convolution_vmap = pattern_convolution.vmap; const auto& matches = findPatternMatches(pattern_convolution_graph, *graph); for (const auto& match : matches) { // We come here only if the bias was not present in the module. // In that case, the corresponding graph will not have getAttr("bias") // Insert that in the graph. // And change _convolution to take the new value. auto conv_node = match.values_map.at(convolution_vmap.at("conv_out"))->node(); WithInsertPoint ins(conv_node); Value* bias_attr_val = graph->insertGetAttr(graph->inputs()[0], "bias") ->setType(TensorType::get()); constexpr size_t conv_bias_index = 2; conv_node->replaceInput(conv_bias_index, bias_attr_val); } } void addBiasForConv2dIfNone(Module& module) { auto t = module.type()->expect<ClassType>(); auto real_typename = t->name()->qualifiedName(); const std::string pattern_name("Conv2d"); if (real_typename.size() >= pattern_name.size() && (0 == real_typename.compare( real_typename.size() - pattern_name.size(), pattern_name.size(), pattern_name))) { if (!t->hasAttribute("bias")) { auto optional_tensor_type = OptionalType::create(TensorType::get()); t->addAttribute("bias", optional_tensor_type, true); auto optional_tensor = c10::optional<at::Tensor>(); module.setattr("bias", optional_tensor); replaceConv2dBiasWithGetAttr(module); } } for (Module m : module.children()) { addBiasForConv2dIfNone(m); } } void swapDeQuant(Block* block) { auto graph = block->owningGraph(); for (Node* n : block->nodes()) { if (n->kind() == prim::If) { for (Block* subblock : n->blocks()) { swapDeQuant(subblock); } if (n->outputs().size() == 0) { continue; } if (n->outputs().size() > 1) { // Factoring out dequantize for if blocks with multiple outputs // is not supported right now continue; } } auto inputs = getGeneralOpTensorInputs(n); if (inputs.size() > 0) { bool is_dequantized = true; for (auto* input : inputs) { // note that we don't need to recursively check for prim::If // here because if all inputs of a prim::If is dequantized // the dequantize will be factored out before we get to this // point is_dequantized &= input->node()->kind() == Symbol::aten("dequantize"); } if (!is_dequantized) { continue; } // Delete dequantize node, we have one dequantize // for each use of the value for (auto* dequantized_val : inputs) { auto* dequantize_node = dequantized_val->node(); TORCH_INTERNAL_ASSERT( dequantized_val->uses().size() == 1, "Expect to have one dequantize node for each use"); // Replace useses of dequantized_val with the input of // dequantize node dequantized_val->replaceAllUsesWith(dequantize_node->inputs()[0]); dequantize_node->removeAllInputs(); dequantize_node->destroy(); } for (auto* output : n->outputs()) { std::vector<Use> uses = output->uses(); // Insert new dequantize node for each use of the output insertDeQuantCall(graph, output, output, uses); } } } } } // namespace TORCH_API Module InsertObservers( Module& input_module, const std::string& method_name, const QConfigDict& qconfig_dict, bool inplace, bool is_dynamic) { ModuleQConfigMap map_before_clone; fillQConfigMap(input_module, qconfig_dict, map_before_clone); ModuleCloneHelper mh; Module module = inplace ? input_module : mh.clone(input_module, map_before_clone); ModuleQConfigMap module_qconfig_map; // Since the types are changed after clone, we need to fill // the qconfig map again fillQConfigMap(module, qconfig_dict, module_qconfig_map); InsertObserversHelper helper(module_qconfig_map); helper.setDynamicFlag(is_dynamic); helper.preprocess(module, method_name); helper.insertObservers(module, method_name, true); return module; } Module InsertQuantDeQuant( Module& input_module, const std::string& method_name, bool inplace) { Module module = inplace ? input_module : input_module.clone(); InsertQuantDeQuantHelper h; h.run(module, method_name); h.cleanup(module); return module; } void FoldQuantNodesIntoInputsOutputs(std::shared_ptr<Graph>& graph) { throw std::runtime_error("Pass not implemented yet!"); } void SwapFunctionalLinear(Module& module) { for (auto& method : module.get_methods()) { std::shared_ptr<Graph> g = method.graph(); SwapFunctionalLinear(g); } for (Module m : module.children()) { SwapFunctionalLinear(m); } } void SwapFunctionalLinear(std::shared_ptr<Graph>& graph) { std::string functional_linear = R"( graph(%linear, %input, %weight, %bias): %r = prim::CallFunction(%linear, %input, %weight, %bias) return (%r) )"; std::string aten_linear = R"( graph(%linear, %input, %weight, %bias): %r = aten::linear(%input, %weight, %bias) return (%r) )"; auto filter = [](const Match& match, const std::unordered_map<std::string, Value*>& vmap) { const auto& match_vmap = match.values_map; auto linear = getValue("linear", match_vmap, vmap); auto func_name = getFuncName(linear); return func_name == "linear"; }; SubgraphRewriter rewriter; rewriter.RegisterRewritePattern(functional_linear, aten_linear); // TODO: runOnGraph takes const ref? rewriter.runOnGraph(graph, filter); } void ReplicateQuant(std::shared_ptr<Graph>& graph) { std::stack<Block*> blocks_to_visit; std::vector<Node*> quant_nodes_to_rewrite; blocks_to_visit.push(graph->block()); while (!blocks_to_visit.empty()) { Block* b = blocks_to_visit.top(); blocks_to_visit.pop(); for (Node* n : b->nodes()) { // find quantize node that quantizes the output of if if ((n->kind() == Symbol::aten("quantize_per_tensor") || n->kind() == Symbol::aten("quantize_per_channel")) && n->input(0)->node()->kind() == prim::If) { quant_nodes_to_rewrite.push_back(n); } for (Block* subblock : n->blocks()) { blocks_to_visit.push(subblock); } } } for (Node* n : quant_nodes_to_rewrite) { Node* if_node = n->input(0)->node(); // move the nodes that produces the quantization parameters before // prim::If for (auto i = 1; i < n->inputs().size(); ++i) { n->input(i)->node()->moveBefore(if_node); } // replace all uses of the quantized node with the output of if node n->output()->replaceAllUsesWith(if_node->output()); // add quantize nodes to the end of all blocks for (Block* if_block : if_node->blocks()) { TORCH_CHECK( if_block->outputs().size() == 1, "replicate quantize only works for `if` node with one output right now"); // the original return value of the block Value* ret_val = if_block->outputs()[0]; std::vector<Value*> quantize_inputs = n->inputs().vec(); quantize_inputs[0] = ret_val; WithInsertPoint ins(if_block->return_node()); Node* quant = graph->create(n->kind(), quantize_inputs); if_block->replaceOutput(0, quant->output()); quant->output()->copyMetadata(ret_val); graph->insertNode(quant); } } for (Node* n : quant_nodes_to_rewrite) { n->removeAllInputs(); } for (Node* n : quant_nodes_to_rewrite) { n->destroy(); } } void ReplicateDeQuant(std::shared_ptr<Graph>& graph) { std::stack<Block*> blocks_to_visit; std::vector<Node*> dequant_nodes_to_rewrite; blocks_to_visit.push(graph->block()); while (!blocks_to_visit.empty()) { Block* b = blocks_to_visit.top(); blocks_to_visit.pop(); for (Node* n : b->nodes()) { if (n->kind() == Symbol::aten("dequantize") && n->output()->uses().size() > 1) { dequant_nodes_to_rewrite.push_back(n); } for (Block* subblock : n->blocks()) { blocks_to_visit.push(subblock); } } } for (Node* n : dequant_nodes_to_rewrite) { auto* quantized_val = n->inputs()[0]; auto* dequantized_val = n->output(); // copy uses to vector since value->uses() is a reference // and changing the graph will also change the uses() list std::vector<Use> uses = dequantized_val->uses(); insertDeQuantCall(graph.get(), quantized_val, dequantized_val, uses); } for (Node* n : dequant_nodes_to_rewrite) { n->removeAllInputs(); } for (Node* n : dequant_nodes_to_rewrite) { n->destroy(); } } // This is the pass to handle ops that does not require observation // for example: flatten, average_pool, upsample // This is called after inline and before graph execution void SwapDeQuant(std::shared_ptr<Graph>& graph) { swapDeQuant(graph->block()); } void QuantFusion(std::shared_ptr<Graph>& graph) { for (const auto& info : quant_fusion_pattern_and_replacements()) { SubgraphRewriter rewriter; rewriter.RegisterRewritePattern(info.pattern, info.replacement); rewriter.runOnGraph(graph, info.filter); } } Module FoldConvBatchNorm2d(const Module& module) { FoldConvBatchNorm2dHelper h; Module m = module.clone(); addBiasForConv2dIfNone(m); h.analyze(m); h.transform(); return m; } void FoldQuantizeCallIntoBuffer( Module& module, const std::string& method_name) { const PatternInfo& pattern = PatternInfo::parse_from_str(R"( graph(%self, %scale, %zero_point, %dtype): %weight = prim::GetAttr[name="weight"](%self) %weight_quant = aten::quantize_per_tensor(%weight, %scale, %zero_point, %dtype) return (%weight_quant) )"); const Graph& pattern_graph = *pattern.pattern_graph; const auto& vmap = pattern.vmap; auto method = module.get_method(method_name); auto graph = method.graph(); const auto& matches = findPatternMatches(pattern_graph, *graph); // Extra filter on scale/zero_point/dtype to make sure they are Constant auto filter = [](const Match& match, const std::unordered_map<std::string, Value*>& vmap) { const auto& match_vmap = match.values_map; auto scale_node = match_vmap.at(vmap.at("scale"))->node(); auto zero_point_node = match_vmap.at(vmap.at("zero_point"))->node(); auto dtype_node = match_vmap.at(vmap.at("dtype"))->node(); return scale_node->kind() == prim::Constant && zero_point_node->kind() == prim::Constant && dtype_node->kind() == prim::Constant; }; std::unordered_set<Node*> nodes_to_delete; for (const auto& match : matches) { if (!filter(match, vmap)) { continue; } auto match_vmap = match.values_map; auto float_weight = module.attr("weight").toTensor().data(); auto scale = toIValue(match_vmap.at(vmap.at("scale"))).value().toDouble(); auto zero_point = toIValue(match_vmap.at(vmap.at("zero_point"))).value().toInt(); auto dtype = toIValue(match_vmap.at(vmap.at("dtype"))).value().toScalarType(); module.register_buffer( "_quantized_weight", at::quantize_per_tensor(float_weight, scale, zero_point, dtype)); // Replace the GetAttr[weight]->quantize_per_tensor sequence // with a simple GetAttr[_quantized_weight] node. Value* orig_weight = match_vmap.at(vmap.at("weight")); Value* orig_weight_quant = match_vmap.at(vmap.at("weight_quant")); orig_weight->node()->s_(attr::name, "_quantized_weight"); orig_weight_quant->replaceAllUsesWith(orig_weight); nodes_to_delete.insert(orig_weight_quant->node()); } for (Node* n : nodes_to_delete) { n->destroy(); } } void InsertPrepackUnpack(std::shared_ptr<Graph>& graph) { insertPrepackUnpackForLinear(graph); insertPrepackUnpackForConv2d(graph); } void InsertPrepackUnpack(Module& module) { for (auto& method : module.get_methods()) { auto graph = method.graph(); InsertPrepackUnpack(graph); } for (Module m : module.children()) { InsertPrepackUnpack(m); } } struct FoldPrepackedWeightIntoModuleHelper { void run( Module& module, const std::string& method_name, const Module& linear_params_module, const Module& conv_params_module) { auto method = module.get_method(method_name); auto graph = method.graph(); GRAPH_DUMP("Before FoldPrepackWeightIntoModule: ", graph); // (is_conv, is_per_channel, pattern, packed_params_module) std::vector<PatternsAndModules> pattern_and_modules = { {false, false, linear_prepack_per_tensor, linear_params_module}, {false, true, linear_prepack_per_channel, linear_params_module}, {true, false, conv2d_prepack, conv_params_module}, {true, true, conv2d_prepack_per_channel, conv_params_module}}; for (const auto& pm : pattern_and_modules) { const Graph& pattern_graph = *pm.pattern.pattern_graph; const auto& vmap = pm.pattern.vmap; const auto& matches = findPatternMatches(pattern_graph, *graph); TORCH_INTERNAL_ASSERT( matches.size() <= 1, "We only support at most one match right now"); for (const auto& match : matches) { const auto& match_vmap = match.values_map; auto w_dtype_opt = getIValue("w_dtype", match_vmap, vmap); auto w_scale_opt = getIValue("w_scale", match_vmap, vmap); auto w_zero_point_opt = getIValue("w_zero_point", match_vmap, vmap); if (!w_dtype_opt || !w_scale_opt || !w_zero_point_opt) { GRAPH_DEBUG( "dtype, scale or zero_point for weight(", getValue("w_dtype", match_vmap, vmap)->debugName(), ", ", getValue("w_scale", match_vmap, vmap)->debugName(), ", ", getValue("w_zero_point", match_vmap, vmap)->debugName(), ") is not constant, skipping the match."); continue; } auto w_dtype = w_dtype_opt.value().toScalarType(); auto w = module.attr("weight").toTensor().data(); at::Tensor w_quant; if (pm.is_per_channel) { auto w_axis_opt = getIValue("w_axis", match_vmap, vmap); if (!w_axis_opt) { GRAPH_DEBUG( "axis for weight ", getValue("w_axis", match_vmap, vmap)->debugName(), " is non-constant, skipping the match"); continue; } auto w_scale = w_scale_opt.value().toTensor().to(at::kFloat); auto w_zero_point = w_zero_point_opt.value().toTensor().to(at::kInt); int w_axis = w_axis_opt.value().toInt(); TORCH_CHECK( w_scale.sizes() == w_zero_point.sizes(), "scale and zero_point must have the same size"); w_quant = at::quantize_per_channel( w, w_scale, w_zero_point, w_axis, w_dtype); } else { auto w_scale = w_scale_opt.value().toDouble(); auto w_zero_point = w_zero_point_opt.value().toInt(); w_quant = at::quantize_per_tensor(w, w_scale, w_zero_point, w_dtype); } c10::optional<at::Tensor> b = c10::nullopt; if (hastensor(module, "bias")) { b = module.attr("bias").toTensor().data(); } Module wrapper_module = pm.packed_params_module.clone(); auto set_weight_bias = wrapper_module.get_method("set_weight_bias"); std::string module_name_prefix; if (pm.is_conv) { module_name_prefix = "_conv_packed_params_module_for_"; auto stride_opt = toTwoElementIntList(getValue("stride", match_vmap, vmap)); auto padding_opt = toTwoElementIntList(getValue("padding", match_vmap, vmap)); auto dilation_opt = toTwoElementIntList(getValue("dilation", match_vmap, vmap)); auto groups_opt = getIValue("groups", match_vmap, vmap); auto set_conv_params = wrapper_module.get_method("set_conv_params"); if (!stride_opt || !padding_opt || !dilation_opt) { GRAPH_DEBUG( "Failed to extract two element IntList for stride/padding/dilation, (", getValue("stride", match_vmap, vmap)->debugName(), ", ", getValue("padding", match_vmap, vmap)->debugName(), ", ", getValue("dilation", match_vmap, vmap)->debugName(), ") skipping the match"); continue; } set_conv_params(std::vector<IValue>{stride_opt.value(), padding_opt.value(), dilation_opt.value(), groups_opt.value()}); } else { module_name_prefix = "_linear_packed_params_module_for_"; } set_weight_bias(std::vector<IValue>{IValue(w_quant), IValue(b)}); auto w_quant_val = getValue("w_quant", match_vmap, vmap); // unique name for the module based on %w_quant int uid = 0; auto module_name = module_name_prefix + c10::to_string(uid++); while (module.hasattr(module_name)) { module_name_prefix + c10::to_string(uid++); } GRAPH_UPDATE("Adding new module: ", module_name); module.register_module(module_name, wrapper_module); // Add GetAttr of the packed module auto packed_params_val = getValue("packed_params", match_vmap, vmap); WithInsertPoint ins(packed_params_val->node()); // wrapper_module = // self.{_conv,_linear}_packed_params_module_for_{unique_id} Value* packed_params_module = graph->insertGetAttr(graph->inputs()[0], module_name) ->setType(wrapper_module.type()); GRAPH_UPDATE("Adding GetAttr node for the wrapper module"); // packed_params = wrapper_module._packed_params Value* packed_params_from_attr = graph->insertGetAttr(packed_params_module, "_packed_params"); GRAPH_UPDATE( "Adding GetAttr node for _packed_params: ", packed_params_from_attr->debugName()); packed_params_val->replaceAllUsesWith(packed_params_from_attr); // Delete nodes std::vector<Node*> nodes_to_delete = {w_quant_val->node(), packed_params_val->node()}; for (auto n : nodes_to_delete) { n->removeAllInputs(); } for (auto n : nodes_to_delete) { GRAPH_UPDATE("Deleting node: ", n); n->destroy(); } } } } void run( Module& module, const Module& linear_params_module, const Module& conv_params_module) { for (auto& method : module.get_methods()) { run(module, method.name(), linear_params_module, conv_params_module); } for (Module m : module.children()) { run(m, linear_params_module, conv_params_module); } } const PatternInfo linear_prepack_per_tensor = PatternInfo::parse_from_str(R"( graph(%a_dequant, %w, %b, %w_scale, %w_zero_point, %w_dtype): %w_quant = aten::quantize_per_tensor(%w, %w_scale, %w_zero_point, %w_dtype) %packed_params = quantized::linear_prepack(%w_quant, %b) return (%packed_params) )"); const PatternInfo linear_prepack_per_channel = PatternInfo::parse_from_str(R"( graph(%a_dequant, %w, %b, %w_scale, %w_zero_point, %w_axis, %w_dtype): %w_quant = aten::quantize_per_channel(%w, %w_scale, %w_zero_point, %w_axis, %w_dtype) %packed_params = quantized::linear_prepack(%w_quant, %b) return (%packed_params) )"); const PatternInfo conv2d_prepack = PatternInfo::parse_from_str(R"( graph(%a_dequant, %w, %b, %w_scale, %w_zero_point, %w_dtype, %stride, %padding, %dilation, %groups): %w_quant = aten::quantize_per_tensor(%w, %w_scale, %w_zero_point, %w_dtype) %packed_params = quantized::conv2d_prepack(%w_quant, %b, %stride, %padding, %dilation, %groups) return (%packed_params) )"); const PatternInfo conv2d_prepack_per_channel = PatternInfo::parse_from_str(R"( graph(%a_dequant, %w, %b, %w_scale, %w_zero_point, %w_axis, %w_dtype, %stride, %padding, %dilation, %groups): %w_quant = aten::quantize_per_channel(%w, %w_scale, %w_zero_point, %w_axis, %w_dtype) %packed_params = quantized::conv2d_prepack(%w_quant, %b, %stride, %padding, %dilation, %groups) return (%packed_params) )"); }; void FoldPrepackedWeightIntoModule( Module& module, const Module& linear_params_module, const Module& conv_params_module) { FoldPrepackedWeightIntoModuleHelper h; h.run(module, linear_params_module, conv_params_module); } void DedupModuleUses(Module& module) { ModuleUseDeduper d(module); d.dedup(); } void FoldQuantizedPrepackingOps(Module& module) { auto filter_fn = [](const Node* n) -> bool { return ( (n->kind() == Symbol::fromQualString("quantized::linear_prepack")) || n->kind() == Symbol::fromQualString("quantized::conv2d_prepack")); }; PrePackingOpsFolder(module, filter_fn, "quantized"); } script::Module Finalize(script::Module& module) { SwapFunctionalLinear(module); auto graph = module.get_method("forward").graph(); Inline(*graph); ConstantPropagation(graph); ReplicateQuant(graph); ReplicateDeQuant(graph); SwapDeQuant(graph); InsertPrepackUnpack(graph); ConstantPropagation(graph); QuantFusion(graph); auto frozen = freeze_module(module); FoldQuantizedPrepackingOps(frozen); return frozen; } } // namespace jit } // namespace torch
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
349cfdd5a57a1136eb31ea2a30ab9a886f33d323
00fea9459f8ed3955910a0e770af61278c93234b
/349Intersection_Two_Arrays.cpp
58d00fa45fb098627443ffb602259d8c9de1e54f
[]
no_license
caomincan/leectcode
eff934db566d74e2b0e95b7d462c33dea06c1ee2
582e8ac8f37b9f62e90a94b860d4d99c0e530fe0
refs/heads/master
2022-12-01T23:32:56.505801
2020-08-12T00:51:20
2020-08-12T00:51:20
271,587,997
1
0
null
null
null
null
UTF-8
C++
false
false
437
cpp
class Solution { public: vector<int> intersection(vector<int>& nums1, vector<int>& nums2) { unordered_set<int> total; vector<int> ans; for(auto n: nums1){ total.insert(n); } // find result for(auto n: nums2){ if(total.find(n) != total.end()){ ans.push_back(n); total.erase(n); } } return ans; } };
[ "micao@vt.edu" ]
micao@vt.edu
b460c2afc4c86dd1a1e4d370243663001b952a2f
a7df494766b0478e3ab08a295838ffd3da5720ce
/Sartaj2nd/codes-1nd2nd/Data Structures, Algorithms, & Applications in C++, 2nd Edition/timeMatrix.cpp
8e819427d372681c2aa03fe0e6658ff3d9dbd3b1
[]
no_license
fwar34/DataStruct
2e11a7720c3fab48d97dc591efb69d2772282814
37b9a51afd81d4f52ecea0f6ca467a3a1e8fd6da
refs/heads/master
2021-01-23T01:52:26.696585
2019-01-04T09:52:58
2019-01-04T09:52:58
85,944,098
1
1
null
null
null
null
UTF-8
C++
false
false
906
cpp
// run time for add, multiply and transpose using class matrix #include <iostream> #include<time.h> #include "matrix.h" using namespace std; #pragma optimize("t", on) int main() { int n = 500; // matrix size matrix<int> a(n,n), b(n,n), c(n,n); int m = 500; // number of repetitions // initialize the matrices a and b for (int i = 1; i <= n; i++) for (int j = 1; j <= n; j++) { if (i >= j && i - j < 4) a(i, j) = 3; else a(i, j) = 0; if (i <= j && j - i < 2) b(i, j) = 5; else b(i, j) = 0; } long startTime = clock(); for (int i = 1; i <= m; i++) c = a + b; double elapsedTime = ((double) (clock() - startTime)) / m; cout << "Add time for n = " << n << " is " << elapsedTime << " milliseconds" << endl; return 0; }
[ "fwar34@126.com" ]
fwar34@126.com
2513ed67ab0040e5516f5c544744803bff4da5f0
942db7940bec56ed0c660c1325232fbd70396cf2
/Arduino_Nano_Serial_Case/Arduino_Nano_Serial_Case.ino
5cf3757807e2145b178c5804e2dc917c84331355
[ "MIT" ]
permissive
rukvih/Prototype-of-system-Smart-Home
d4adb78a831f880d8513055919c80c9274154ed0
ad414166bfaa3f252e75105e256a04d0af4513e3
refs/heads/master
2020-12-24T13:43:49.985044
2016-05-13T09:14:36
2016-05-13T09:14:36
null
0
0
null
null
null
null
UTF-8
C++
false
false
19,547
ino
#include <Servo.h> #include "Ultrasonic.h" #include <SPI.h> #include <Wire.h> #define fadePin 5 //ванная #define fadePin1 9 //периметр #define fadePin2 3 //гостиная #define fadePin3 6 //коридор int val; byte newinfo, ledDoorLap; int clocktime; int cltime; int valPIR = 0; int valpir; int vallight; int pirPin1 = A1; //контакт для подключения датчика 1 к Arduino int pirPin2 = A2; //контакт для подключения датчика 2 к Arduino int lightcycle; int lkorstate; //переменные для света в коридоре int valK; //переменная для таймера (накапливает секунды) long previousMillis1 = 0; //переменная для сравнения текущего и сохраненного времени int lzalstate; //переменнные для света в комнате int valC; long previousMillis2 = 0; int ltulstate; int valT; long previousMillis3 = 0; int lightG, lightV, lightK; int ledDoor = 13; int relay1 = 2; //объявление переменных для выходов сигналов реле int relay2 = 10; int relay3 = 4; int relay4 = 12; int a, b, c, d, k1=0, k2=0, k3=0, k4=0, s1=0, kOK=0, pas=0, MD=0, npas=1, nom=0, InvPas=0, smv=0, smvon=0, PIR3; int key1, key2, key3, key4, keyOK, passw, kmanl, sig=0, lig=0, key11, zal1=0, zal11=0, kom2=0, kom22=0, tul=0, tul2=0; char incomingByte; Ultrasonic ultrasonic(7, 11); Servo servo; void setup(){ Wire.begin(4); // join i2c bus with address #4 Wire.onReceive(receiveEvent); // register event Serial.begin(9600); pinMode(A3, OUTPUT); pinMode(ledDoor, OUTPUT); pinMode(pirPin1, INPUT); //определить входной контакт для датчика 1 pinMode(pirPin2, INPUT); //определить входной контакт для датчика 2 pinMode(relay1, OUTPUT); //выходной контакт реле 1 digitalWrite(relay1, HIGH); //поддержание высокого уровня на выходе (реле выключено) pinMode(relay2, OUTPUT); //аналогично реле 1... digitalWrite(relay2, HIGH); pinMode(relay3, OUTPUT); digitalWrite(relay3, HIGH); pinMode(relay4, OUTPUT); digitalWrite(relay4, HIGH); pinMode(fadePin, OUTPUT); pinMode(fadePin1, OUTPUT); pinMode(fadePin2, OUTPUT); pinMode(fadePin3, OUTPUT); analogWrite(fadePin, 0); analogWrite(fadePin1, 0); analogWrite(fadePin2, 0); analogWrite(fadePin3, 0); servo.attach(8); servo.write(90); /* if(EEPROM.read(5) == 5){ //использование сохраненного пароля, если он менялся sim1=EEPROM.read(0); //в функции "новый пароль", при его изменении, в ячейку памяти 5 sim2=EEPROM.read(1); //записывается 5, и при включении проверяется, если 5 есть, значит sim3=EEPROM.read(2); //присвоить переменным пароля значения, записанные в EEPROM sim4=EEPROM.read(3); }*/ } /**************************************************** АВТОМАТИЧЕСКОЕ УПРАВЛЕНИЕ СВЕТОМ (датчики) ********************************************************************************************/ void lightin(){ while(lig == 0){ if(analogRead(fadePin3) == HIGH ){Serial.println("ON - koridor");} else {Serial.println("OFF - koridor");} if(analogRead(fadePin) == HIGH ){Serial.println("ON - zal");} else {Serial.println("OFF - zal");} if(analogRead(fadePin2) == HIGH ){Serial.println("ON - tual");} else{Serial.println("OFF - tual");} lig = 1; } if (lig == 1){ //отключение света при переходе из ручного управления в автоматическое lightcycle++; //отсчет времени горения света Serial.println(lightcycle); if(lightG == 1) //если был включен свет в гостиной { if(lzalstate == 0 && lightcycle == 100) //если не было движения с датчиков и прошло достаточно времени { Wire.beginTransmission(5); // transmit to device #5 Wire.write(21); // sends one byte Wire.endTransmission(); for(int k=150; k>=0; k--){analogWrite(fadePin, k); delay(10);} //то гасим свет Serial.println("OFF - gost"); lightG = 0; } } if(lightV == 1) { if(ltulstate == 0 && lightcycle == 100) { Wire.beginTransmission(5); // transmit to device #5 Wire.write(31); // sends one byte Wire.endTransmission(); for(int k=150; k>=0; k--){analogWrite(fadePin2, k); delay(10);} Serial.println("OFF - vanna"); lightV = 0; } } if(lightK == 1) { if(lkorstate == 0 && lightcycle == 100) { Wire.beginTransmission(5); // transmit to device #5 Wire.write(22); // sends one byte Wire.endTransmission(); for(int k=150; k>=0; k--){analogWrite(fadePin3, k); delay(10);} Serial.println("OFF - koridor"); lightK = 0; } } if (lightcycle >= 101) {lig = 2; lightcycle = 0;} } if (digitalRead(pirPin1) == HIGH) { previousMillis1 = millis(); lzalstate = 1; valC = 0; while(zal11 == 0){ //то включаем бесконечный цикл для разового вывода на экран (ON - zal) Wire.beginTransmission(5); // transmit to device #5 Wire.write(12); // sends one byte Wire.endTransmission(); if(lightG != 1){ for(int i=0; i<=150; i++){analogWrite(fadePin, i); delay(10);} Serial.println("ON - zal"); lightG = 1; } //переменная для работы общего откл/вкл света (команда 15/51) zal1 = 0; //обнуляем переменную для включения второго цикла zal11++; //выходим из цикла } // далее аналогично для других комнат } if (digitalRead(pirPin2) == HIGH) { previousMillis2 = millis(); lkorstate = 1; valK = 0; while(kom22 == 0){ Wire.beginTransmission(5); // transmit to device #5 Wire.write(11); // sends one byte Wire.endTransmission(); if(lightK != 1){ for(int i=0; i<=150; i++){analogWrite(fadePin3, i); delay(10);} Serial.println("ON - koridor"); lightK = 1; } kom2 = 0; kom22++; } } float dist_cm = ultrasonic.Ranging(CM); //значение с датчика в см if (dist_cm <= 16){ //если оно меньше или равно 16см то previousMillis3 = millis(); //включаем свет и запускаем таймер на 15(7,5) сек ltulstate = 1; valT = 0; while(tul2 == 0){ Wire.beginTransmission(5); // transmit to device #5 Wire.write(13); // sends one byte Wire.endTransmission(); if(lightV != 1){ for(int i=0; i<=150; i++){analogWrite(fadePin2, i);delay(10);} Serial.println("ON - tual"); lightV = 1; } tul = 0; tul2++; } } if (ltulstate == 1 && dist_cm > 16) { previousMillis3 = millis(); valT++; // работает счет }else{valT=0;} if (valT >= 20) //кол-во секунд, при достижении этого значения lzal выключается { Wire.beginTransmission(5); // transmit to device #5 Wire.write(31); // sends one byte Wire.endTransmission(); for(int k=150; k>=0; k--){analogWrite(fadePin2, k); delay(10);} Serial.println("OFF - tual"); lightV = 0; smv=1; ltulstate = 0; valT=0; tul2=0; } if(smv >= 1){ delay(500); digitalWrite(A3, HIGH); smvon++; } if (smvon == 15){ smv=0; smvon=0; } if (lzalstate == 1 && digitalRead(pirPin1) < HIGH) { previousMillis1 = millis(); valC++; // работает счет }else{valC=0;} if (valC >= 15) //кол-во секунд, при достижении этого значения lzal выключается { Wire.beginTransmission(5); // transmit to device #5 Wire.write(21); // sends one byte Wire.endTransmission(); for(int k=150; k>=0; k--){analogWrite(fadePin, k); delay(10);} Serial.println("OFF - zal"); lightG = 0; lzalstate = 0; valC=0; zal11=0; } if (lkorstate == 1 && digitalRead(pirPin2) < HIGH) { previousMillis2 = millis(); valK++; // работает счет }else{valK=0;} if (valK >= 15) //кол-во секунд, при достижении этого значения lkor выключается { Wire.beginTransmission(5); // transmit to device #5 Wire.write(22); // sends one byte Wire.endTransmission(); for(int k=150; k>=0; k--){analogWrite(fadePin3, k); delay(10);} Serial.println("OFF - koridor"); lightK = 0; lkorstate = 0; valK=0; kom22=0; } delay(500); digitalWrite(A3, LOW); } /*********************************************************** СИГНАЛИЗАЦИЯ ************************************************************************************************/ void PIR(){ while(sig == 0) { digitalWrite(ledDoor, HIGH); valK++; // работает счет if (valK >= 7) //кол-во секунд, при достижении этого значения lkor выключается { AllLightOff(); digitalWrite(ledDoor, LOW); sig = 1; } delay(1000); } ledDoorLap; ledDoorLap++; if (ledDoorLap >= 5){digitalWrite(ledDoor, HIGH); delay(200); ledDoorLap=0; } int PIR1 = digitalRead(pirPin1); //считываем состояние датчика int PIR2 = digitalRead(pirPin2); float dist_cm = ultrasonic.Ranging(CM); // get distance if (dist_cm <= 16){PIR3 = HIGH;} valPIR = PIR1 + PIR2 + PIR3; if (valPIR == HIGH) { //если есть движение if (PIR1 == HIGH) {Serial.println("Motion is detected in the ZAL");} //то сказать где движение обнаружено if (PIR2 == HIGH) {Serial.println("Motion is detected in the KORIDOR");} if (PIR3 == HIGH) {Serial.println("Motion is detected in the TUALET");} Serial.println("Alarm ON!"); //передать на компьютер "Motion!" byte x = 109; //cообщение о сигнализации Wire.beginTransmission(5); // transmit to device #5 Wire.write(x); // sends one byte Wire.endTransmission(); delay(10); sig = 0; PIR3=LOW; Serial.println("Press and hold any key..."); while (s1 == 0){ for(int i=0; i<=2; i++){ // tone(A0, 2093, 400); analogWrite(fadePin1, 255); //периметр вкл digitalWrite(ledDoor, HIGH); delay(330); analogWrite(fadePin1, 0); // периметр откл digitalWrite(ledDoor, LOW); delay(330); } if(val == 101){ nom=0; //обратное включения While в PIR, надпись (no motion) s1++; newinfo = 1; //обновление информации для вклчения автосвета val = 3; loop(); } } } delay(300); digitalWrite(ledDoor, LOW); } /***************************************************** ГЛАВНАЯ ЦИКЛИЧЕСКАЯ ФУНКЦИЯ ***********************************************************************************************/ void loop(){ float temph[2]; int clock[2]; if(newinfo == 1){ if(val == 1){ valpir = 0; vallight = 0; tul2=1; kom22=1; zal11=1; lkorstate = 0; valK=0; kom22=0; lzalstate = 0; valC=0; zal11=0; ltulstate = 0; valT=0; tul2=0; Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 3 || val == 101){ digitalWrite(ledDoor, HIGH); delay(100); digitalWrite(ledDoor, LOW); delay(100); digitalWrite(ledDoor, HIGH); delay(100); digitalWrite(ledDoor, LOW); delay(100); digitalWrite(ledDoor, HIGH); delay(100); digitalWrite(ledDoor, LOW); delay(100); digitalWrite(ledDoor, HIGH); delay(100); digitalWrite(ledDoor, LOW); delay(100); digitalWrite(ledDoor, HIGH); delay(100); digitalWrite(ledDoor, LOW); delay(100); Serial.println("light"); nom=0; //обратное включениe While в PIR, надпись (no motion) sig=0; //обратное включение While в PIR, сигнал активации охраны lig=0; //обратное включение While в lightin, сигнал активации автосвета valpir = 0; vallight = 1; lightin(); } if(val == 44){ Serial.println("secutity"); nom=0; //обратное включения While в PIR, надпись (no motion) sig=0; //обратное включение While в PIR, сигнал активации охраны lig=0; //обратное включение While в lightin, сигнал активации автосвета vallight = 0; valpir = 1; s1 = 0; tul2=1; kom22=1; zal11=1; lkorstate = 0; valK=0; kom22=0; lzalstate = 0; valC=0; zal11=0; ltulstate = 0; valT=0; tul2=0; Wire.beginTransmission(5); // transmit to device #5 Wire.write(4); // sends one byte Wire.endTransmission(); PIR(); } if(val == 9){ analogWrite(fadePin1, 255); delay(300); analogWrite(fadePin1, 0); for(int i = 90; i<=164; i++){ servo.write(i); delay(17); } Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 10){ for(int i = 164; i>=90; i--){ servo.write(i); delay(17); } Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 11){ //digitalWrite(relay2, LOW); Serial.println(11); for(int i=0; i<=150; i++){ analogWrite(fadePin3, i);//коридор delay(10); } lightK = 1; Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 22){ //digitalWrite(relay2, HIGH); for(int k=150; k>=0; k--){ analogWrite(fadePin3, k);//коридор delay(10); } lightK = 0; Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 12){ //digitalWrite(relay3, LOW); Serial.println(12); for(int i=0; i<=150; i++){ analogWrite(fadePin, i);//гостиная delay(10); } lightG = 1; Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 21){ //digitalWrite(relay3, HIGH); Serial.println(21); for(int k=150; k>=0; k--){ analogWrite(fadePin, k);//гостиная delay(10); } lightG = 0; Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 13){ //digitalWrite(relay4, LOW); Serial.println(13); for(int i=0; i<=150; i++){ analogWrite(fadePin2, i);//ванная delay(10); } lightV = 1; Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 31){ // digitalWrite(relay4, HIGH); Serial.println(31); for(int k=150; k>=0; k--){ analogWrite(fadePin2, k);//ванная delay(10); } lightV = 0; Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 14){ // digitalWrite(relay1, LOW); Serial.println(14); analogWrite(fadePin1, 255);//периметр Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 41){ //digitalWrite(relay1, HIGH); Serial.println(41); analogWrite(fadePin1, 0);//периметр Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 15) { for(int i=0; i<=150; i++) { if(lightG == 0)analogWrite(fadePin, i); if(lightV == 0)analogWrite(fadePin2, i); if(lightK == 0)analogWrite(fadePin3, i); delay(10); } lightG = 1; lightV = 1; lightK = 1; Wire.beginTransmission(5); // transmit to device #5 Wire.write(val); // sends one byte Wire.endTransmission(); } if(val == 51) { AllLightOff(); } newinfo = 0; } if(vallight == 1){lightin();} if(valpir == 1){PIR();} delay(30); } void AllLightOff(){ for(int k=150; k>=0; k--) { if(lightG == 1)analogWrite(fadePin, k);//гостиная if(lightV == 1) analogWrite(fadePin2, k); //ванная if(lightK == 1) analogWrite(fadePin3, k);//коридор delay(10); } lightG = 0; lightV = 0; lightK = 0; Wire.beginTransmission(5); // transmit to device #5 Wire.write(51); // sends one byte Wire.endTransmission(); } void receiveEvent(int howMany) { while(1 < Wire.available()) // loop through all but the last { } val = Wire.read(); // receive byte as an integer Serial.println(val); if(val != 99) newinfo = 1; //команда 99 относится только к Arduino Uno }
[ "viva-os@mail.ru" ]
viva-os@mail.ru
d8f430bcec9b669cee943f90c051e938d032d5d8
0ba81d0995a4bc6571cee6cb5cc4d87b80a3b7fd
/aten/src/ATen/native/cuda/GridSampler.cpp
c98ab7b2d31e99d0808d29e3baf200c9617af885
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
gml16/pytorch
07abe1b0bca9923840069e460c68005f022af6a4
fad60484572c490384c107cf625d484e34dc9bcf
refs/heads/master
2022-05-06T03:07:11.825083
2022-04-01T15:10:37
2022-04-01T15:10:37
251,362,041
0
0
NOASSERTION
2020-03-30T16:22:49
2020-03-30T16:22:48
null
UTF-8
C++
false
false
2,895
cpp
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/cuda/GridSampler.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/empty.h> #include <ATen/ops/empty_like.h> #include <ATen/ops/grid_sampler_2d_backward_native.h> #include <ATen/ops/grid_sampler_2d_native.h> #include <ATen/ops/grid_sampler_3d_backward_native.h> #include <ATen/ops/grid_sampler_3d_native.h> #include <ATen/ops/zeros_like.h> #endif namespace at { namespace native { Tensor grid_sampler_2d_cuda(const Tensor& input, const Tensor& grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners) { auto in_size = input.sizes(); auto grid_size = grid.sizes(); auto output = at::empty( {in_size[0], in_size[1], grid_size[1], grid_size[2]}, input.options()); launch_grid_sampler_2d_forward_kernel( output, input, grid, interpolation_mode, padding_mode, align_corners); return output; } Tensor grid_sampler_3d_cuda(const Tensor& input, const Tensor& grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners) { auto in_size = input.sizes(); auto grid_size = grid.sizes(); auto output = at::empty( {in_size[0], in_size[1], grid_size[1], grid_size[2], grid_size[3]}, input.options()); launch_grid_sampler_3d_forward_kernel( output, input, grid, interpolation_mode, padding_mode, align_corners); return output; } std::tuple<Tensor, Tensor> grid_sampler_2d_backward_cuda(const Tensor& grad_output, const Tensor& input, const Tensor& grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners, std::array<bool, 2> output_mask) { Tensor grad_input; if (output_mask[0]) { grad_input = at::zeros_like(input, LEGACY_CONTIGUOUS_MEMORY_FORMAT); } auto grad_grid = at::empty_like(grid, LEGACY_CONTIGUOUS_MEMORY_FORMAT); launch_grid_sampler_2d_backward_kernel( grad_input, grad_grid, grad_output, input, grid, interpolation_mode, padding_mode, align_corners, output_mask); return std::make_tuple(grad_input, grad_grid); } std::tuple<Tensor, Tensor> grid_sampler_3d_backward_cuda(const Tensor& grad_output, const Tensor& input, const Tensor& grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners) { auto grad_input = at::zeros_like(input, LEGACY_CONTIGUOUS_MEMORY_FORMAT); auto grad_grid = at::empty_like(grid, LEGACY_CONTIGUOUS_MEMORY_FORMAT); launch_grid_sampler_3d_backward_kernel( grad_input, grad_grid, grad_output, input, grid, interpolation_mode, padding_mode, align_corners); return std::make_tuple(grad_input, grad_grid); } }} // namespace at::native
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
a571b1babaa0aa9ef6effff6253016a126bac7dd
40c9df5f01ec6d9cfcbbc21f6d886dcc092b6f23
/Wildcard_matching.cpp
cc321724d173631a2acdd172fe3d293288ef8bb9
[]
no_license
ethanboyuan/LeetCode
aa5382023bca451febf36df5f96dad5e98d16105
9f22d72fc8a2c21147d93a6bad6931884e3dfa38
refs/heads/master
2016-09-10T01:12:29.414425
2014-11-01T10:34:03
2014-11-01T10:34:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,270
cpp
#include <vector> #include <iostream> #include <string> #include <stack> #include <algorithm> using namespace std; class Solution { public: bool isMatch_Recursive(const char *s, const char *p) { if(*p == '*'){ while(*p == '*') ++p; if(*p == '\0') return true; while(*s != '\0' && !isMatch_Recursive(s,p)) ++s; return *s != '\0'; } else if(*p == '\0' || *s == '\0') return *p == *s; else if(*p == *s || *p == '?') return isMatch_Recursive(++s,++p); else return false; } bool isMatch(const char *s, const char *p) { const char* star = NULL; const char* ss = s; while(*s){ if((*p == '?') || (*p == *s)) { ++s;++p; continue; } if(*p == '*') { star = p++; ss = s; continue; } if(star){ p = star + 1; s = ++ss; continue; } return false; } while (*p == '*') {++p;} return !*p; } }; void print_res(Solution sol, const char* s, const char* p){ if(sol.isMatch(s,p)) cout << s << " " << p << " True" << endl; else cout << s << " " << p << " False" << endl; } int main(int argc, char* argv[]){ Solution sol; print_res(sol, "aa", "a*"); return 0; }
[ "paul.boyuan@gmail.com" ]
paul.boyuan@gmail.com
c1c46ba8504318a2892e2e7e2747d51a3dfbb722
0ac4fb044735c1d8db0276834f4728980655be57
/WrenCommon/Source/EventHandling/Events/SetTargetEvent.h
c1304677067ad96abcdf8f280ef5eb1f0df759bb
[]
no_license
ericbfriday/wren
87d0bc21f090d46f3bce40b70a495c82615861df
5010309a705b7016c546215da01cb5f66e8910dd
refs/heads/master
2020-12-08T20:38:15.428673
2019-12-01T06:52:41
2019-12-01T06:52:41
233,088,842
1
0
null
2020-01-10T16:40:05
2020-01-10T16:40:04
null
UTF-8
C++
false
false
471
h
#pragma once #include <string> #include "Event.h" #include "Components/StatsComponent.h" class SetTargetEvent : public Event { public: SetTargetEvent(const int gameObjectId, const std::string& targetName, StatsComponent* statsComponent) : Event(EventType::SetTarget), gameObjectId{ gameObjectId }, targetName{ targetName }, statsComponent{ statsComponent } { } const int gameObjectId; const std::string targetName; StatsComponent* statsComponent; };
[ "drew.kestell@gmail.com" ]
drew.kestell@gmail.com
e580adb8b4abebea10bb13f71806911d79815e23
94e9e063763fee0c27e0bf6c3127a1e129384f8c
/cpp/arrayStuff/arrayStuff/main.cpp
41e9bae103238b4a69a49b261881ea8a205234cc
[]
no_license
frenchbread/learning
5b66b5a735c51124b6216e6055eec9758d96c00c
a88e62e2feb583895c5b1b8860fcd8f0b8456146
refs/heads/master
2021-01-18T09:51:04.585707
2017-06-17T12:01:21
2017-06-17T12:01:21
27,572,299
0
0
null
null
null
null
UTF-8
C++
false
false
1,899
cpp
// // main.cpp // arrayStuff // // Created by Damir Mustafin on 19/11/15. // Copyright (c) 2015 Damir Mustafin. All rights reserved. // #include "PFArrayD.h" #include "PFArrayDBak.h" #include <cstdlib> #include <cstring> #include <iostream> using namespace std; void testPFArrayDBak(); int main() { cout << "This program tests the class PFArrayDBak.\n"; char ans; do { testPFArrayDBak(); cout << "Test again? (y/n) "; cin >> ans; } while( (ans == 'y') || (ans == 'Y') ); return 0; } // Conducts one test for the class PFArrayDBak void testPFArrayDBak() { int cap; cout << "Enter capacity of the supar array: "; cin >> cap; PFArrayDBak tmp(cap); cout << "Enter up to " << cap << " non-negative numbers.\n"; cout << "Place a negative number at the end.\n"; double next; cin >> next; while ( (next >= 0) && (!tmp.full()) ) { tmp.addElements(next); cin >> next; } if (next >= 0) { cout << "Could not read all numbers.\n"; while(next >= 0) cin >> next; } int count = tmp.getNumbUsed(); cout << "The following " << count << " numbers " << "are read and stored:\n"; for (int index=0; index < count; index++) cout << tmp[index] << " "; cout << endl; cout << "Now backing up the array ...\n"; tmp.backup(); cout << "Now emptying the array ...\n"; tmp.emptyArray(); cout << tmp.getNumbUsed() << " numbers are now stored in the array.\n"; cout<< "Now restoring the array ...\n"; tmp.restore(); count = tmp.getNumbUsed(); cout << "The following " << count << " numbers" << "are now stored:\n"; for (int index=0; index < count; index++) cout << tmp[index] << " "; cout << endl; }
[ "frenchthebread@gmail.com" ]
frenchthebread@gmail.com
90f81163fd9352b499251b1749e700ead53193e8
0015191a758eaff526ceee730a53d535f1a292c5
/include/pdk/base/time/internal/DateTimePrivate.h
6ce8639aaba7aa4fd1f96319017f36decfde054e
[ "Apache-2.0" ]
permissive
wzugang/libpdk
820097e564ea2024654dbceb009bd54b4b322711
72dd499328c5017f02ccb02389c14f50831481c6
refs/heads/master
2021-05-02T12:01:26.573947
2018-02-08T07:17:08
2018-02-08T07:17:08
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,827
h
// @copyright 2017-2018 zzu_softboy <zzu_softboy@163.com> // // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // Created by softboy on 2018/02/05. #ifndef PDK_M_BASE_TIME_INTERNAL_DATETIME_PRIVATE_H #define PDK_M_BASE_TIME_INTERNAL_DATETIME_PRIVATE_H #include "pdk/global/PlatformDefs.h" #include "pdk/global/Global.h" #include "pdk/base/os/thread/Atomic.h" #include "pdk/base/time/Time.h" #include "pdk/base/time/Date.h" #include "pdk/base/time/DateTime.h" #if PDK_CONFIG(TIMEZONE) #include "pdk/base/time/TimeZone.h" #endif namespace pdk { namespace time { namespace internal { using pdk::os::thread::AtomicInt; class DateTimePrivate { public: // forward the declarations from DateTime (this makes them public) using DateTimeShortData = DateTime::ShortData; using DateTimeData = DateTime::Data; // Never change or delete this enum, it is required for backwards compatible // serialization of DateTime before 5.2, so is essentially public API enum class Spec : int { LocalUnknown = -1, LocalStandard = 0, LocalDST = 1, UTC = 2, OffsetFromUTC = 3, TimeZone = 4 }; // Daylight Time Status enum class DaylightStatus : int { UnknownDaylightTime = -1, StandardTime = 0, DaylightTime = 1 }; // Status of date/time enum class StatusFlag : uint { ShortData = 0x01, ValidDate = 0x02, ValidTime = 0x04, ValidDateTime = 0x08, TimeSpecMask = 0x30, SetToStandardTime = 0x40, SetToDaylightTime = 0x80 }; PDK_DECLARE_FLAGS(StatusFlags, StatusFlag); enum : uint { TimeSpecShift = 4, ValidityMask = uint(StatusFlag::ValidDate) | uint(StatusFlag::ValidTime) | uint(StatusFlag::ValidDateTime), DaylightMask = uint(StatusFlag::SetToStandardTime) | uint(StatusFlag::SetToDaylightTime) }; DateTimePrivate() : m_msecs(0), m_status(StatusFlag(pdk::as_integer<pdk::TimeSpec>(pdk::TimeSpec::LocalTime) << TimeSpecShift)), m_offsetFromUtc(0), ref(0) { } static DateTime::Data create(const Date &toDate, const Time &toTime, pdk::TimeSpec toSpec, int offsetSeconds); #if PDK_CONFIG(TIMEZONE) static DateTime::Data create(const Date &toDate, const Time &toTime, const TimeZone & timeZone); #endif // timezone pdk::pint64 m_msecs; StatusFlags m_status; int m_offsetFromUtc; mutable AtomicInt ref; #if PDK_CONFIG(TIMEZONE) TimeZone m_timeZone; #endif // timezone #if PDK_CONFIG(TIMEZONE) static pdk::pint64 zoneMSecsToEpochMSecs(pdk::pint64 msecs, const TimeZone &zone, DaylightStatus hint = DaylightStatus::UnknownDaylightTime, Date *localDate = 0, Time *localTime = 0); // Inlined for its one caller in DateTime.cpp inline void setUtcOffsetByTZ(pdk::pint64 atMSecsSinceEpoch); #endif // timezone }; } // internal } // time } // pdk #endif // PDK_M_BASE_TIME_INTERNAL_DATETIME_PRIVATE_H
[ "zzu_softboy@163.com" ]
zzu_softboy@163.com
723ad46b6898ab09aeaa34230d74b45a95c6c94a
fd28c774c3d549d4fec899a213064c5f5a966eb9
/QtGuiApplication/MyViewer.h
0415913c6f2ad6642d2687ba4777e7f7e5aae94b
[]
no_license
Maxim-Doronin/CGAL
b01692f4f650a1ee21a5bb756d5e178cfed9c6f2
fbca96d2ef8224c48e279217ac9d202a17a57be4
refs/heads/master
2021-08-28T00:50:17.001633
2017-12-09T10:19:17
2017-12-09T10:19:17
113,611,784
0
0
null
null
null
null
UTF-8
C++
false
false
1,290
h
#pragma once #include <vector> #include <QGLViewer/qglviewer.h> #include <QMessageBox> #include <QMouseEvent> #include "BSpline.h" #include "typedefs.h" class MyViewer : public QGLViewer { public: MyViewer(QWidget* parent); Points3 points; bool isRemovePointMode = false; bool isMovePointMode = false; bool isSpline2Shown = false; bool isSpline3Shown = false; void removeAllPoints(); void createCubeChain(); void createFilledCube(); void createFilledSphere(); void createSphereEps(); void buildBSpline3(); void buildBSpline2(); protected: virtual void draw(); virtual void init(); virtual void postSelection(const QPoint &point); std::vector<int> MyViewer::getSelectedPointIds(const QPoint &point); virtual void mousePressEvent(QMouseEvent *event); virtual void mouseMoveEvent(QMouseEvent *event); virtual void mouseReleaseEvent(QMouseEvent *event); int movePointIndex_; QPoint* oldMousePosition_; Point_3 getPointInSphere(); const float CUBE_BOUND_SIZE = 1; const int CUBE_DIM_COUNT = 10; const int CUBE_POINT_COUNT = 500; const float SPHERE_RADIUS = 0.5; const int SPHERE_POINT_COUNT = 500; const float SPHERE_EPS = 0.05; };
[ "doronin.maxim.unn@gmail.com" ]
doronin.maxim.unn@gmail.com
084c0ce501acc98a35bbd7cc4ef35a5dd34d3608
45c59e5f456f11f1714b2ddf976b62dfebecfa7d
/Case10/0/cz_solid_33/k
5bdc2c107d57d224e03d7bf5e090e06046d917eb
[]
no_license
JoelWright24/Masters-Thesis-in-OpenFOAM
9224f71cdb38e96a378996996c5c86235db9ee13
b6c420b5054494a26a7d65a34835b27be9e0da4a
refs/heads/main
2023-02-20T17:18:13.067439
2021-01-22T19:30:36
2021-01-22T19:30:36
332,039,823
0
0
null
null
null
null
UTF-8
C++
false
false
890
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0/cz_solid_33"; object k; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField uniform 6.51042; boundaryField { cz_solid_33_to_fluid { type calculated; value uniform 0; } } // ************************************************************************* //
[ "67100764+JoelWright24@users.noreply.github.com" ]
67100764+JoelWright24@users.noreply.github.com
2ed775db1a2600f67ed3dc15848a73d8bc3323ae
dba127f8a88db95386cbe21b221760d782cbdf67
/IOCP_1/JIocp.cpp
35feecbf50b491080d189073c3285a0eda5b166c
[]
no_license
15831944/DirectX_Study
c1bd6fe1b8eb891bf49a5a3954234adf59abdb46
e4832a079936dc1aa893b098375a1d228c7cc02b
refs/heads/master
2021-10-20T09:19:15.305146
2019-02-27T06:30:56
2019-02-27T06:30:56
null
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
3,187
cpp
#include "JIocp.h" #define SAFE_HANDLE_KILL(h) {if (h != INVALID_HANDLE_VALUE) { CloseHandle(h); }} DWORD WINAPI JIocp::WorkThread(LPVOID pParam) { JIocp* iocp = (JIocp*)pParam; DWORD Trans; ULONG_PTR Key; OVERLAPPED* Ov; BOOL Ret; while (TRUE) { if (WaitForSingleObject(iocp->m_ThreadKillEvent,1) == WAIT_OBJECT_0) { break; } Ret = GetQueuedCompletionStatus(iocp->m_IOCP, &Trans, &Key, &Ov, 5000); if (Ret == TRUE) { if (Trans != 0) { if (Key != 0 && Ov != 0) { if (Key == 1111) { iocp->DispatchRead(Trans); } if (Key == 2222) { iocp->DispatchWrite(Trans); } } } else { SetEvent(iocp->m_ThreadKillEvent); } } else { if (GetLastError() == WAIT_TIMEOUT) { continue; } else { if (Ov != NULL) { if (GetLastError() == ERROR_HANDLE_EOF) { SetEvent(iocp->m_ThreadKillEvent); } else { cout << "ERROR!" << endl; } } } } } return 0; } bool JIocp::DispatchRead(DWORD Trans) { cout << Trans << "Bytes Read" << endl; DWORD WriteByte = 0; WriteFile(m_hWriteFile, m_szBuffer, Trans, &WriteByte, &m_WriteOv); LARGE_INTEGER LI; LI.QuadPart = Trans; m_ReadOv.Offset += LI.LowPart; m_ReadOv.OffsetHigh += LI.HighPart; if (WaitForRead() == false) { SetEvent(m_ThreadKillEvent); return false; } return true; } bool JIocp::DispatchWrite(DWORD Trans) { cout << Trans << "Bytes Write" << endl; LARGE_INTEGER LI; LI.QuadPart = Trans; m_WriteOv.Offset += LI.LowPart; m_WriteOv.OffsetHigh += LI.HighPart; return true; } bool JIocp::WaitForRead() { DWORD ReadBytes = 0; DWORD Ret = ReadFile(m_hReadFile, m_szBuffer, MAX_BUFFER_SIZE, &ReadBytes, &m_ReadOv); if (Ret == FALSE) { if (GetLastError() == ERROR_IO_PENDING) { return true; } // ÆÄÀÏÀÇ ³¡ if (GetLastError() == ERROR_HANDLE_EOF) { return false; } return false; } else { if (ReadBytes == 0 || GetLastError() == ERROR_HANDLE_EOF) { return false; } } return true; } bool JIocp::Init() { m_hReadFile = CreateFile(L"Sample.mp4",GENERIC_READ, 0, 0,OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, 0); m_hWriteFile = CreateFile(L"SampleCopy.mp4", GENERIC_WRITE, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, 0); DWORD id = 0; for (int iThread = 0; iThread < MAX_THREAD_COUNT; iThread++) { m_Thread[iThread] = CreateThread(0, 0, WorkThread,this, 0, &id); } m_ThreadKillEvent = CreateEvent(0, TRUE, FALSE, 0); m_IOCP = CreateIoCompletionPort(INVALID_HANDLE_VALUE,0,0,0); CreateIoCompletionPort(m_hReadFile, m_IOCP, 1111, 0); CreateIoCompletionPort(m_hWriteFile, m_IOCP,2222, 0); return true; } bool JIocp::Frame() { WaitForRead(); WaitForMultipleObjects(MAX_THREAD_COUNT, m_Thread, TRUE, INFINITE); return true; } bool JIocp::Release() { SAFE_HANDLE_KILL(m_hReadFile); SAFE_HANDLE_KILL(m_hWriteFile); SAFE_HANDLE_KILL(m_ThreadKillEvent); SAFE_HANDLE_KILL(m_IOCP); _getch(); return true; } JIocp::JIocp() { ZeroMemory(&m_ReadOv,sizeof(OVERLAPPED)); ZeroMemory(&m_WriteOv, sizeof(OVERLAPPED)); m_hReadFile = 0; m_hWriteFile = 0; } JIocp::~JIocp() { }
[ "kgcaschool@outlook.kr" ]
kgcaschool@outlook.kr
54851b5a51dd5ab1ada430f580473d4894b09ae5
0dce0043384d823586da27473b4b9e206853257c
/nn_cxx_test.cc
a3ce04059f022049a6a9bd7175b3d058bf541ec9
[]
no_license
lichao2014/nn_cxx
6b077207a4473ea419be85fd01687bca042da02c
eb0e67eb975d9a4d30be8b21c5f3919759bc14e9
refs/heads/master
2020-03-26T18:55:23.209651
2018-08-19T11:14:53
2018-08-19T11:14:53
145,238,861
0
0
null
null
null
null
UTF-8
C++
false
false
4,439
cc
#include "nn_cxx.h" #include "gtest/gtest.h" #include "pipeline.h" #include "reqrep.h" using namespace nn_cxx; class SocketTest : public testing::Test { public: void SetUp() override { socket_.reset(new Socket(AF::SP, NN_PUSH)); } void TearDown() override { socket_.reset(); } void TestPipeLine(const char *addr, const std::string& from) { auto a = std::make_unique<Socket>(AF::SP, NN_PUSH); auto b = std::make_unique<Socket>(AF::SP, NN_PULL); b->Bind(addr); a->Connect(addr); int ret = a->Send(from.data(), from.length()); ASSERT_EQ(ret, from.length()); std::string to(from.length(), '\0'); ret = b->Recv(to.data(), to.length()); ASSERT_EQ(ret, to.length()); ASSERT_TRUE(std::equal(from.begin(), from.end(), to.begin(), to.end())); } protected: std::unique_ptr<Socket> socket_; }; TEST_F(SocketTest, Bind) { std::error_code ec; socket_->Bind("a", ec); ASSERT_TRUE(ec); ec.clear(); socket_->Bind("inproc://a", ec); ASSERT_FALSE(ec); ec.clear(); socket_->Bind("inproc://a", ec); ASSERT_TRUE(ec); ec.clear(); socket_->Bind("ipc://a", ec); ASSERT_FALSE(ec); ec.clear(); socket_->Bind("tcp://127.0.0.1:90", ec); ASSERT_FALSE(ec); ec.clear(); socket_->Bind("ws://127.0.0.1:91", ec); ASSERT_FALSE(ec); } TEST_F(SocketTest, Connect) { std::error_code ec; socket_->Connect("a", ec); ASSERT_TRUE(ec); ec.clear(); socket_->Connect("inproc://a", ec); ASSERT_FALSE(ec); ec.clear(); socket_->Connect("inproc://a", ec); ASSERT_FALSE(ec); } TEST_F(SocketTest, INPROCSendRecv) { TestPipeLine("inproc://a", "123"); TestPipeLine("inproc://b", "123123123"); } TEST_F(SocketTest, IPCSendRecv) { TestPipeLine("ipc://a", "123"); TestPipeLine("ipc://b", "123123123"); } TEST_F(SocketTest, TCPSendRecv) { TestPipeLine("tcp://127.0.0.1:90", "123"); TestPipeLine("tcp://127.0.0.1:91", "abcdef"); } TEST_F(SocketTest, WSSendRecv) { TestPipeLine("ws://127.0.0.1:90", "123"); TestPipeLine("ws://127.0.0.1:91", "123123123"); } class ThreadPoller : public Poller { public: void Start() { closed_ = false; th_ = std::thread([this] { while (!closed_ && (Poll(100) >= 0)); }); } void Stop() { closed_ = true; th_.join(); } private: std::thread th_; std::atomic_bool closed_ = false; }; class PollerTest : public testing::Test { public: void SetUp() override { poller_.reset(new ThreadPoller); poller_->Start(); } void TearDown() override { poller_->Stop(); } void TestReqRep(const char *addr, int count) { auto rep = std::make_shared <Socket>(AF::SP, NN_REP); ASSERT_TRUE(rep); rep->Bind(addr); auto req = std::make_shared <Socket>(AF::SP, NN_REQ); ASSERT_TRUE(req); req->Connect(addr); poller_->AddSocket(rep->fd(), [=] { Msg msg; rep->Recv(msg); if (msg.size() > 0) { rep->Send(msg); } }, nullptr); char buf1[64]; char buf2[64]; for (int i = 0; i < count; ++i) { snprintf(buf1, 64, "%d", i); int ret = req->Send(buf1, 64); ASSERT_EQ(ret, 64); ret = req->Recv(buf2, 64); ASSERT_EQ(ret, 64); ASSERT_TRUE(std::equal(buf1, buf1 + 64, buf2, buf2 + 64)); } poller_->DelSocket(rep->fd(), [rep]() { rep->Close(); }); } protected: std::shared_ptr<ThreadPoller> poller_; }; TEST_F(PollerTest, INPROCReqRep) { TestReqRep("inproc://a", 100); TestReqRep("inproc://bb", 400); TestReqRep("inproc://ccc", 1000); } TEST_F(PollerTest, IPCReqRep) { TestReqRep("ipc://a", 100); TestReqRep("ipc://bb", 400); TestReqRep("ipc://ccc", 1000); } TEST_F(PollerTest, TCPReqRep) { TestReqRep("tcp://127.0.0.1:90", 100); TestReqRep("tcp://127.0.0.1:92", 400); TestReqRep("tcp://127.0.0.1:93", 1000); } TEST_F(PollerTest, WSReqRep) { TestReqRep("ws://127.0.0.1:94", 100); TestReqRep("ws://127.0.0.1:95", 400); TestReqRep("ws://127.0.0.1:96", 1000); } int main(int argc, char *argv[]) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
[ "240446892@qq.com" ]
240446892@qq.com
c73011cb8787f559ce3e721fb21031ab893a6b13
7fc7f2389e0c356ad853d4cb651ec3020493ee20
/framework/src/Core/Network/Udp/UdpManager.cpp
137276529b0d586d6deec624813e5c817467521c
[ "MIT" ]
permissive
gautier-lefebvre/cppframework
50c5f5c2d83a4431a195578e7ce0c76bdf762913
bc1c3405913343274d79240b17ab75ae3f2adf56
refs/heads/master
2021-01-10T11:16:40.589126
2016-09-21T19:10:54
2016-09-21T19:10:54
43,247,787
0
0
null
null
null
null
UTF-8
C++
false
false
15,191
cpp
#include <algorithm> #include "Library/ThirdParty/cppformat/format.hh" #include "Library/Tool/Converter.hpp" #include "Library/Tool/Macro.hh" #include "Core/Network/Udp/UdpManager.hh" #include "Core/Network/Exception.hh" using namespace fwk; UdpManager::UdpManager(NotifiableThread& input, NotifiableThread& output): _servers(), _clients(), _input(input), _output(output) {} UdpManager::~UdpManager(void) {} void UdpManager::clear(void) { // close every server { SCOPELOCK(&(this->_servers)); for (auto server_it = this->_servers.begin(); server_it != this->_servers.end() ; ++server_it) { for (auto& client : (*server_it).clients) { // fire onClientClosed event (*server_it).events.onClientClosed.fireSync(client); // close client UdpSocketClient::returnToPool(client); } // fire onClosed event (*server_it).events.onClosed.fireSync((*server_it).server); // close server UdpSocketServer::returnToPool((*server_it).server); // remove server server_it = this->_servers.erase(server_it); } } // close every connection { SCOPELOCK(&(this->_clients)); for (auto client_it = this->_clients.begin(); client_it != this->_clients.end() ; ++client_it) { // fire onClosed event (*client_it).events.onClosed.fireSync((*client_it).socket); // close connection UdpSocketStream::returnToPool((*client_it).socket); // remove connection client_it = this->_clients.erase(client_it); } } } UdpServer& UdpManager::createServer(uint16_t port) { UdpSocketServer* socket = UdpSocketServer::getFromPool(); try { socket->init(); socket->socket(); UdpServer* server = nullptr; { SCOPELOCK(&(this->_servers)); if (std::find_if(this->_servers.begin(), this->_servers.end(), [=] (const UdpServer& s) -> bool { return s.port == port; }) != this->_servers.end()) { throw NetworkException(fmt::format("The port {0} was already associated to a server", port)); } this->_servers.emplace_back(port, socket); server = &(this->_servers.back()); } return *server; } catch (const NetworkException&) { UdpSocketServer::returnToPool(socket); throw; } } void UdpManager::run(const UdpServer& server) { { SCOPELOCK(&(this->_servers)); auto serverIt = std::find_if(this->_servers.begin(), this->_servers.end(), [&] (const UdpServer& s) -> bool { return s.port == server.port; }); if (serverIt != this->_servers.end()) { try { UdpServer& s = (*serverIt); s.server->bind(s.port); s.active = true; INFO(fmt::format("UDP: listening on port {0}", s.port)); } catch (const std::exception&) { UdpSocketServer::returnToPool((*serverIt).server); this->_servers.erase(serverIt); throw; } } else { throw NetworkException("This server was never created"); } } { SCOPELOCK(&(this->_input.condition)); this->_input.condition.notify(); } } void UdpManager::close(uint16_t port) { SCOPELOCK(&(this->_servers)); // find the server auto server_it = std::find_if(this->_servers.begin(), this->_servers.end(), [&] (const UdpServer& elem) -> bool { return elem.port == port; }); // if found if (server_it != this->_servers.end()) { for (auto& client : (*server_it).clients) { // fire onClientClosed event (*server_it).events.onClientClosed.fireSync(client); // send client back to pool UdpSocketClient::returnToPool(client); } // fire server close event (*server_it).events.onClosed.fireSync((*server_it).server); // close server UdpSocketServer::returnToPool((*server_it).server); // remove server this->_servers.erase(server_it); return; } } void UdpManager::close(const UdpServer& server) { this->close(server.port); } void UdpManager::blacklist(uint16_t port, uint32_t addr) { SCOPELOCK(&(this->_servers)); // find the server auto server_it = std::find_if(this->_servers.begin(), this->_servers.end(), [&] (const UdpServer& elem) -> bool { return elem.port == port; }); // if found if (server_it != this->_servers.end()) { (*server_it).blacklist.insert(addr); return; } } UdpClient& UdpManager::createClient(const std::string& hostname, uint16_t port) { UdpSocketStream* socket = UdpSocketStream::getFromPool(); try { socket->socket(); socket->init(hostname, port); UdpClient* client = nullptr; { SCOPELOCK(&(this->_clients)); if (std::find_if(this->_clients.begin(), this->_clients.end(), [=] (const UdpClient& c) -> bool { return c.hostname == hostname && c.port == port; }) != this->_clients.end()) { throw NetworkException(fmt::format("A client to {0}:{1} already exists", hostname, port)); } this->_clients.emplace_back(hostname, port, socket); client = &(this->_clients.back()); } return *client; } catch (const NetworkException&) { UdpSocketStream::returnToPool(socket); throw; } } void UdpManager::run(const UdpClient& client) { { SCOPELOCK(&(this->_clients)); auto clientIt = std::find_if(this->_clients.begin(), this->_clients.end(), [&] (const UdpClient& c) -> bool { return c.hostname == client.hostname && c.port == client.port; }); if (clientIt != this->_clients.end()) { try { UdpClient& c = (*clientIt); c.active = true; INFO(fmt::format("UDP: prepared connection to {0}:{1}", c.hostname, c.port)); } catch (const std::exception&) { UdpSocketStream::returnToPool((*clientIt).socket); this->_clients.erase(clientIt); throw; } } else { throw NetworkException("This client was never created"); } } } void UdpManager::close(const std::string& hostname, uint16_t port) { SCOPELOCK(&(this->_clients)); // find the connection auto client_it = std::find_if(this->_clients.begin(), this->_clients.end(), [&] (const UdpClient& elem) -> bool { return elem.hostname == hostname && elem.port == port; }); // if found if (client_it != this->_clients.end()) { // fire close event (*client_it).events.onClosed.fireSync((*client_it).socket); // close socket UdpSocketStream::returnToPool((*client_it).socket); // remove connection this->_clients.erase(client_it); return; } } void UdpManager::close(const UdpClient& connection) { this->close(connection.hostname, connection.port); } void UdpManager::push(AUdpSocketIO* socket, const void* data, size_t size) { if (socket != nullptr) { ByteArray* datagram = ByteArray::getFromPool(data, size); try { socket->push(datagram); { SCOPELOCK(&(this->_output.condition)); this->_output.condition.notify(); } } catch (const NetworkException& e) { ByteArray::returnToPool(datagram); // find server { SCOPELOCK(&(this->_servers)); for (auto& server : this->_servers) { auto client_it = std::find(server.clients.begin(), server.clients.end(), socket); if (client_it != server.clients.end()) { this->__onIOException(server.events.onClientClosed, reinterpret_cast<UdpSocketClient*>(socket), e.what()); server.clients.erase(client_it); return; } } } // find connection { SCOPELOCK(&(this->_clients)); auto client_it = std::find_if(this->_clients.begin(), this->_clients.end(), [&] (const UdpClient& elem) -> bool { return elem.socket == socket; }); if (client_it != this->_clients.end()) { this->__onIOException((*client_it).events.onClosed, reinterpret_cast<UdpSocketStream*>(socket), e.what()); this->_clients.erase(client_it); return; } } // if no server / connection found // close the socket // THIS IS NOT NORMAL, THIS MEANS A POINTER TO THE SOCKET IS STILL USED IN THE APPLICATION // EVEN THOUGH IT WAS CLOSED BEFORE CRITICAL("Invalid UDP socket still used inside application."); delete socket; // prevent leaks, but can lead to other bugs (this is one in itself anyway) } } } void UdpManager::push(AUdpSocketIO* socket, const ByteArray* bytearray) { if (bytearray != nullptr) { this->push(socket, bytearray->getBytes(), bytearray->getSize()); } } void UdpManager::fillSetRead(fd_set& fdset, int& fdmax, uint32_t& nb) { { SCOPELOCK(&(this->_servers)); for (auto& server : this->_servers) { if (server.active) { server.server->addToSet(fdset, fdmax); nb++; } } } { SCOPELOCK(&(this->_clients)); for (auto& client : this->_clients) { if (client.active) { client.socket->addToSet(fdset, fdmax); nb++; } } } } void UdpManager::fillSetWrite(fd_set& fdset, int& fdmax, uint32_t& nb) { { SCOPELOCK(&(this->_servers)); // for each server -> add to set if at least one client has data to send for (auto& server : this->_servers) { if (server.active) { for (auto& client : server.clients) { if (client->hasDataToSend()) { server.server->addToSet(fdset, fdmax); nb++; break; } } } } } { SCOPELOCK(&(this->_clients)); for (auto& client : this->_clients) { if (client.active && client.socket->hasDataToSend()) { client.socket->addToSet(fdset, fdmax); nb++; } } } } void UdpManager::send(fd_set& set) { { SCOPELOCK(&(this->_servers)); for (auto& server : this->_servers) { if (server.active && server.server->isset(set)) { for (auto client_it = server.clients.begin() ; client_it != server.clients.end() ; ++client_it) { if ((*client_it)->hasDataToSend()) { try { server.server->sendto(*client_it); } catch (const NetworkException& e) { // fire client closed event + close client this->__onIOException(server.events.onClientClosed, *client_it, e.what()); // remove client client_it = server.clients.erase(client_it); } } } } } } { SCOPELOCK(&(this->_clients)); for (auto client_it = this->_clients.begin() ; client_it != this->_clients.end() ; ++client_it) { if ((*client_it).active && (*client_it).socket->isset(set)) { try { (*client_it).socket->sendto(); } catch (const NetworkException& e) { // fire closed event + close connection this->__onIOException((*client_it).events.onClosed, (*client_it).socket, e.what()); // remove connection client_it = this->_clients.erase(client_it); } } } } } void UdpManager::recv(fd_set& set) { { SCOPELOCK(&(this->_servers)); sockaddr_in addr; for (auto& server : this->_servers) { if (server.active && server.server->isset(set)) { memset(&addr, 0, sizeof(sockaddr_in)); // reinit the addr in order not to remove a valid client because of old data ByteArray* datagram = nullptr; bool success = true; // true -> recvfrom did not except / false -> recvfrom did except try { datagram = server.server->recvfrom(addr); } catch (const NetworkException& e) { WARNING(e.what()); continue; } // find client auto client_it = std::find_if(server.clients.begin(), server.clients.end(), [&] (const UdpSocketClient* socket) -> bool { return *socket == addr; }); if (success) { try { // if client found -> add datagram // if client not found -> check if client not blacklisted / accepted // add client + add datagram if (client_it != server.clients.end()) { (*client_it)->received(datagram); // fire data received event server.events.onReceivedData.fireSync(*client_it); } else { uint32_t remote_ip = static_cast<uint32_t>(addr.sin_addr.s_addr); // if accept list is not empty and remote ip not in it if (!(server.accept.empty()) && std::find(server.accept.begin(), server.accept.end(), remote_ip) == server.accept.end()) { throw NetworkException("Unauthorized IP attempted to send data (UDP)"); } // if blacklisted ip if (!(server.blacklist.empty()) && std::find(server.blacklist.begin(), server.blacklist.end(), remote_ip) != server.blacklist.end()) { throw NetworkException("Blacklisted IP attempted to send data (UDP)"); } UdpSocketClient* client = UdpSocketClient::getFromPool(addr); try { client->received(datagram); } catch (const NetworkException&) { WARNING("Something went wrong, a single datagram could not overflow the limit"); UdpSocketClient::returnToPool(client); throw; } server.clients.push_back(client); // fire new client event server.events.onNewClient.fireSync(client); // fire data received event server.events.onReceivedData.fireSync(client); } } catch (const NetworkException& e) { ByteArray::returnToPool(datagram); WARNING(e.what()); } } else { // if recvfrom excepted and client in list -> remove client if (client_it != server.clients.end()) { // fire onClientClosed event server.events.onClientClosed.fireSync(*client_it); // remove client client_it = server.clients.erase(client_it); } } } } } { SCOPELOCK(&(this->_clients)); for (auto client_it = this->_clients.begin() ; client_it != this->_clients.end() ; ++client_it) { if ((*client_it).active && (*client_it).socket->isset(set)) { try { // receive data (*client_it).socket->recvfrom(); // fire onReceivedData event (*client_it).events.onReceivedData.fireSync((*client_it).socket); } catch (const NetworkException& e) { // fire onClosed event + close socket this->__onIOException((*client_it).events.onClosed, (*client_it).socket, e.what()); // remove connection client_it = this->_clients.erase(client_it); } } } } } void UdpManager::__onIOException(EventHandle<UdpSocketClient*>& event, UdpSocketClient* socket, const std::string&) { // fire closed event event.fireSync(socket); // close socket UdpSocketClient::returnToPool(socket); } void UdpManager::__onIOException(EventHandle<UdpSocketStream*>& event, UdpSocketStream* socket, const std::string&) { // fire closed event event.fireSync(socket); // close socket UdpSocketStream::returnToPool(socket); }
[ "gautier.lfbvr@gmail.com" ]
gautier.lfbvr@gmail.com
fe0b59a04385eefb169261f32283ea8a771f99ec
30fd2d0e910b9b4339ea5a1f2d4ef079285d3bd7
/Lib/Include/PersistentData.h
8704e7a22fdfdeb6839baf4d1b5ce2359ba0c54b
[]
no_license
kiar40k/Big-Numbers
3452c33902f0e63781139541552a2c2e14776839
7c4d6dc52deeeac2ac0cdded5a3b3c2ee510b327
refs/heads/master
2021-06-20T01:46:18.860052
2017-08-05T16:04:58
2017-08-05T16:04:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
927
h
#pragma once #include <XmlDoc.h> class PersistentData { private: String m_name; protected: static const TCHAR *s_defaultName; public: PersistentData() : m_name(s_defaultName) { } void load(const String &fileName); void save(const String &fileName); static void checkTag(XMLNodePtr node, const TCHAR *expectedTag); static XMLNodePtr getChild(XMLDoc &doc, XMLNodePtr n, const TCHAR *tag); virtual void putDataToDoc(XMLDoc &doc) = 0; virtual void getDataFromDoc(XMLDoc &doc) = 0; inline const String &getName() const { return m_name; } inline void setName(const String &name) { m_name = name; } inline void setDefaultName() { setName(s_defaultName); } inline bool hasName() const { return m_name.length() > 0; } inline bool hasDefaultName() const { return m_name == s_defaultName; } String getDisplayName() const; virtual int getType() const = 0; };
[ "jesper.gr.mikkelsen@gmail.com" ]
jesper.gr.mikkelsen@gmail.com
b69338d398dfcd9800f875772da7d4a5e84c5771
1c9678ef5867d68999ce4fd358f545d68cd1c550
/CPP-HW2/District.cpp
9667681bb6b1ba49e2b6e9ba60962963739899fe
[]
no_license
Idokah/CPP-HW2
598dbe9efe71795a4f44f1399fa4b62b4884c448
2eb32be4e7c21ba8def432771d6aac02cee393df
refs/heads/master
2023-02-08T22:27:33.689924
2020-12-29T18:09:23
2020-12-29T18:09:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,893
cpp
#include "District.h" #include "Citizen.h" #include <math.h> #include <iostream> using namespace std; char* getString(const char* input); District::District(): votersPercentage(0), electionResultsSize(0), voteCount(0), citizenNum(0) { this->name = nullptr; this->id = -1; this->representativeNum = 0; this->electionResults = nullptr; } District::District(char *name, int representativeNum): votersPercentage(0), electionResultsSize(1), voteCount(0), citizenNum(0) { this->name = getString(name); this->id = this-> generateID(); this->representativeNum = representativeNum; this->electionResults = new int[electionResultsSize]; for (int i = 0; i < this->electionResultsSize ; ++i) { this->electionResults[i]=0; } } int District::getID() { return this->id; } char* District::getName() { return this->name; } char* District::getName() const { return this->name; } int District::getElectionResultsSize() { return this->electionResultsSize; } int District::getRepresentativeNum(){return this->representativeNum; } int District::getRepresentativeNum() const { return this->representativeNum; } int* District::getElectionResults(){ return this->electionResults; } void District::printType(std::ostream& os) const{} District::District(const District& other) { *this = other; } void District::operator=(const District& other) { this->voteCount=other.voteCount; if (this->name!=nullptr) delete[] name; this->name = getString(other.name); this->id = other.id; this->citizenNum=other.citizenNum; this->votersPercentage = other.votersPercentage; this->electionResults = new int[other.electionResultsSize]; this->electionResultsSize=other.electionResultsSize; memcpy(this->electionResults, other.electionResults, sizeof(int) * other.electionResultsSize); this->representativeNum = other.representativeNum; } District::~District() { delete[] name; delete[] this->electionResults; } int District::generateID(int val) { static int id = 0; if (val != 0) { id = val; return id; } return ++id; } void District::addVote(Citizen* voter, const int partyNum) { if (! voter->getIsAlreadyVote()) { this->addToElectionResult(partyNum); voter->setIsAlreadyVote(); this->voteCount ++; this->votersPercentage= (static_cast<float>(this->voteCount) / static_cast<float>(this->citizenNum)) * 100; } else { cout << "already voted!" << endl; } } void District::addToElectionResult(const int partyNum) { if (this->electionResultsSize < partyNum ){ this->increaseArrSize(this->electionResults,this->electionResultsSize, partyNum); } this->electionResults[partyNum-1]++; } void District::increaseArrSize(int*& arr, int &currSize, const int newSize) { int* newArr = new int[newSize]; for (int i = 0; i < currSize; i++) { newArr[i] = arr[i]; } for (int i = currSize; i<newSize; i++) { newArr[i]=0; } delete[] arr; currSize = newSize; arr = newArr; } void District::increaseCitizenNum() { this->citizenNum++; } int District::getWinningParty(){ int maxIndex = 0, max = 0; for (int i = 0; i < this->electionResultsSize; ++i) { if (this->electionResults[i] > max){ max = this->electionResults[i]; maxIndex = i; } } return (maxIndex + 1); } int *District::getNumOfRepresantivesPerParty(int& numOfExistsPartiesInDistrict){ float *percentagePerParty = this->getPercentagePerParty(); int *numOfRepresantivesPerParty = new int[electionResultsSize]; for (int i = 0; i < this->electionResultsSize; ++i) { numOfRepresantivesPerParty[i] = round(percentagePerParty[i] * this->representativeNum / 100); } numOfExistsPartiesInDistrict = this->electionResultsSize; return numOfRepresantivesPerParty; } float* District::getPercentagePerParty() { float *percentagePerParty = new float[electionResultsSize]; //// the index represent the (party ID - 1) and the value is the percentage. for (int i = 0; i < electionResultsSize; ++i) { percentagePerParty[i] = (this->voteCount == 0) ? 0 : (static_cast<float>(this->electionResults[i]) / static_cast<float>(this->voteCount)) * 100; } return percentagePerParty; } float District::getVotePercentage() { return ((this->citizenNum==0)? 0 : static_cast<float>(this->voteCount) / static_cast<float>(this->citizenNum)) * 100; } ostream& operator<<(ostream& os, const District& district) { os << "District ID "<<district.id << " District Name: " << district.getName() << ", num of representative: " << district.getRepresentativeNum()<<" "; district.printType(os); return os; } void District::printElectionResult(int partiesLogSize, Party** parties) { Party* party; char* headName; int numOfExistsPartiesInDistrict, * numOfRepresantivesPerParty = nullptr, * electionResults , partyIndex; float* percentagePerParty = nullptr; int numOfParties = this->getElectionResultsSize(); electionResults = this->getElectionResults(); percentagePerParty = this->getPercentagePerParty(); numOfRepresantivesPerParty = this->getNumOfRepresantivesPerParty(numOfExistsPartiesInDistrict); cout << "total voters percentage- " << this->votersPercentage << "%" << endl; cout << "--- parties results --- " << endl; votesPerParty* votersPerParty = this->getPartiesSortedByVotes(this->getElectionResults(), numOfParties); for (int j = 0; j < partiesLogSize; ++j) { partyIndex = votersPerParty->size > j ? votersPerParty[j].partyIndex : j; cout << " Party " << (parties[partyIndex]->getName()) <<":"<< endl; if (j < numOfExistsPartiesInDistrict) { cout << " number of voters- " << electionResults[partyIndex] << endl << " percentage of all votes - " << percentagePerParty[partyIndex] << "%" << endl; if (numOfRepresantivesPerParty[j] > 0) { cout << " represantives - " << endl; party = parties[j]; party->printNRepresantive(this->getID(), numOfRepresantivesPerParty[partyIndex]); } } else { cout << " number of voters" << " - 0" << endl << " percentage of all votes - 0%" << endl; } } } votesPerParty* District::getPartiesSortedByVotes(int* electionResult, int electionResultLogSize) { votesPerParty* votesPerPartyArr = new votesPerParty[electionResultLogSize]; votesPerPartyArr->size = electionResultLogSize; for (int i = 0; i < electionResultLogSize; i++) { votesPerPartyArr[i] = { i,electionResult[i] }; } mergeSort(votesPerPartyArr, electionResultLogSize); return votesPerPartyArr; } void District::setGenerateIDtoValue(int val) { this->generateID(val); } void District::mergeSort(votesPerParty* indexesArr, int size) { votesPerParty* temp; if (size <= 1) return; else { mergeSort(indexesArr, size / 2); mergeSort(indexesArr + size / 2, size - size / 2); temp = new votesPerParty[size]; merge(indexesArr, indexesArr + size / 2, size / 2, size - size / 2, temp); for (int i = 0; i < size; i++) { indexesArr[i] = temp[i]; } delete[] temp; } } void District::merge(votesPerParty* indexesArr1, votesPerParty* indexesArr2, int size1, int size2, votesPerParty* res) { votesPerParty currentValue1; votesPerParty currentValue2; int i1 = 0, i2 = 0, iRes = 0; while (i1 < size1 && i2 < size2) { currentValue1 = *(indexesArr1 + i1); currentValue2 = *(indexesArr2 + i2); if (currentValue1.numOfVotes > currentValue2.numOfVotes) { res[iRes] = indexesArr1[i1]; iRes++; i1++; } else { res[iRes] = indexesArr2[i2]; iRes++; i2++; } } while (i1 < size1) { res[iRes] = indexesArr1[i1]; iRes++; i1++; } while (i2 < size2) { res[iRes] = indexesArr2[i2]; iRes++; i2++; } } void District::save(ostream& out) const { int nameLen = strlen(this->name); out.write(rcastcc(&nameLen), sizeof(nameLen)); out.write(rcastcc(this->name), sizeof(char) * nameLen); out.write(rcastcc(&this->id), sizeof(this->id)); out.write(rcastcc(&this->citizenNum), sizeof(this->citizenNum)); out.write(rcastcc(&this->votersPercentage), sizeof(this->votersPercentage)); out.write(rcastcc(&this->voteCount), sizeof(this->voteCount)); int electionResultsLen = this->electionResultsSize; out.write(rcastcc(&electionResultsLen), sizeof(electionResultsLen)); out.write(rcastcc(this->electionResults), sizeof(int) * electionResultsLen); out.write(rcastcc(&this->representativeNum), sizeof(this->representativeNum)); } void District::load(istream& in) { int nameLen; in.read(rcastc(&nameLen), sizeof(nameLen)); this->name = new char[nameLen + 1]; this->name[nameLen] = '\0'; in.read(rcastc(this->name), sizeof(char) * nameLen); in.read(rcastc(&this->id), sizeof(this->id)); in.read(rcastc(&this->citizenNum), sizeof(this->citizenNum)); in.read(rcastc(&this->votersPercentage), sizeof(this->votersPercentage)); in.read(rcastc(&this->voteCount), sizeof(this->voteCount)); int electionResultsLen; in.read(rcastc(&electionResultsLen), sizeof(electionResultsLen)); this->electionResultsSize = electionResultsLen; this->electionResults = new int[electionResultsLen]; in.read(rcastc(this->electionResults), sizeof(int) * electionResultsLen); in.read(rcastc(&this->representativeNum), sizeof(this->representativeNum)); }
[ "idokh@mta.ac.il" ]
idokh@mta.ac.il
9b34fa832460f0ee2632123e6ace536a4223d2bc
2fda9e8e3cce71f0b11c72df92d1b931b57ba572
/tests/pxScene2d/test_pxPixel_h.cpp
5fc033e7687cd7d96c27420d592ea26ea473d15b
[ "Apache-2.0" ]
permissive
mateusz-hobgarski-red/pxCore
519385eabd37e23818c37b73577d232356001a22
dddf99ed360c7fa4a98a40c92fc3d0ded864e841
refs/heads/master
2020-08-09T19:59:56.287360
2019-11-20T13:37:18
2019-11-20T13:37:18
214,161,586
1
0
NOASSERTION
2019-10-10T11:11:26
2019-10-10T11:11:23
null
UTF-8
C++
false
false
1,821
cpp
/* pxCore Copyright 2005-2018 John Robinson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #include "pxCore.h" #include "pxPixel.h" #include "test_includes.h" // Needs to be included last using namespace std; class pxPixelTest : public testing::Test { public: virtual void SetUp() { } virtual void TearDown() { } void pxPixelParam0() { pxPixel p = pxPixel(); EXPECT_TRUE(sizeof(p) == sizeof(pxPixel)); } void pxPixelParam1() { uint32_t u = 1; pxPixel p = pxPixel(u); EXPECT_TRUE(1 == p.u); } void pxPixelParam1Struct() { uint32_t u = 2; pxPixel p = pxPixel(u); EXPECT_TRUE(2 == p.u); p = pxPixel((const pxPixel&)p); } void pxPixelParam4() { uint32_t r= 1; uint32_t g= 1; uint32_t b= 1; uint32_t a= 1; pxPixel p = pxPixel(r, g, b, a); EXPECT_TRUE(1 == p.r); EXPECT_TRUE(1 == p.g); EXPECT_TRUE(1 == p.b); EXPECT_TRUE(1 == p.a); p = pxPixel(r, g, b); EXPECT_TRUE(1 == p.r); EXPECT_TRUE(1 == p.g); EXPECT_TRUE(1 == p.b); EXPECT_TRUE(255 == p.a); } }; TEST_F(pxPixelTest, pxPixelCompleteTest) { pxPixelParam0(); pxPixelParam1(); pxPixelParam1Struct(); pxPixelParam4(); }
[ "mfiess@comcast.net" ]
mfiess@comcast.net
cf0f9caa68819d43777fa389c4819fe616ffcbb7
9c48a0af704d3a49b0b57d0689d91bac8542c5af
/practice/04/c++/4/4/4.cpp
5581bf1b349d728e9234c51366f384b6bf32aa40
[]
no_license
emfortress/programming
e9cf105e12608f3c27c69d0c201490493f91cd6c
a36694b297360dfe421f4a73c7f7745e2972dedb
refs/heads/main
2023-03-18T04:09:00.912656
2021-03-14T17:56:46
2021-03-14T17:56:46
306,659,040
1
0
null
null
null
null
UTF-8
C++
false
false
751
cpp
#include <iostream> int main() { setlocale(LC_ALL, "Russian"); int a, b; std::cout << "Введите два целых числа, разделённых пробелом или новой строкой." << std::endl; std::cin >> a >> b; // Обмен без дополнительной переменной a = a - b; b = b + a; a = b - a; std::cout << "Значение a = " << a << std::endl; std::cout << "Значение b = " << b << std::endl; // Обмен с дополнительной переменной int temp; temp = a; a = b; b = temp; std::cout << "Значение a = " << a << std::endl; std::cout << "Значение b = " << b << std::endl; }
[ "timur_trofanchuk@mail.ru" ]
timur_trofanchuk@mail.ru
8eb1152b6289fd98a9827e066ed2ad544761904e
abe3240cfb598f3898f1009dba57de56a99ce8ff
/tests/raycast_test.cpp
f3a2570179b39b1b948da9ea43774dbf519a3588
[]
no_license
patrickhadlaw/RGLEngine
632cc4613d0a7156b6882c7b1cbc58702e01f79b
ced4c60d6d3f0442cfd13da92372315137d4f594
refs/heads/master
2022-10-28T13:58:55.406813
2022-09-06T02:12:36
2022-09-06T02:12:36
201,550,102
0
0
null
2022-09-06T02:12:37
2019-08-09T22:46:38
C++
UTF-8
C++
false
false
4,904
cpp
#include "rgle.h" int main() { return rgle::util::Tester::run([](rgle::util::Tester& tester) { tester.expect("point clip should be inside", []() { auto point = glm::vec3(1.0f, 1.0f, 1.0f); auto plane = rgle::ray::Plane(glm::vec3(), glm::vec3(0.0f, 0.0f, 1.0f)); return plane.clip(point) == rgle::ray::ClipResult(rgle::ray::Inside { .point = glm::vec3(1.0f, 1.0f, 1.0f) }); }); tester.expect("point clip should be outside", []() { auto point = glm::vec3(1.0f, 1.0f, -1.0f); auto plane = rgle::ray::Plane(glm::vec3(), glm::vec3(0.0f, 0.0f, 1.0f)); return plane.clip(point) == rgle::ray::ClipResult(rgle::ray::Outside { .point = glm::vec3(1.0f, 1.0f, 0.0f) }); }); tester.expect("ray transform should be correct", []() { auto ray = rgle::ray::Ray { .eye = glm::vec3(), .target = glm::vec3(0.0f, 0.0f, 5.0f) }; auto transformed = ray.transform(glm::translate(glm::mat4(1.0f), glm::vec3(1.0f, 1.0f, 1.0f))); return transformed.eye == glm::vec3(1.0f, 1.0f, 1.0f) && transformed.target == glm::vec3(1.0f, 1.0f, 6.0f); }); tester.expect("plane intersect should be a miss", []() { auto plane = rgle::ray::Plane(glm::vec3(), glm::vec3(0.0f, 0.0f, 1.0f)); auto ray = rgle::ray::Ray { .eye = glm::vec3(0.0f, 0.0f, 1.0f), .target = glm::vec3(0.0f, 0.0f, 2.0f) }; return plane.intersect(ray) == rgle::ray::IntersectResult(rgle::ray::Miss {}); }); tester.expect("plane intersect should be a hit", []() { auto plane = rgle::ray::Plane(glm::vec3(), glm::vec3(0.0f, 0.0f, 1.0f)); auto ray = rgle::ray::Ray { .eye = glm::vec3(0.0f, 0.0f, -1.0f), .target = glm::vec3(0.0f, 0.0f, 0.0f) }; return plane.intersect(ray) == rgle::ray::IntersectResult(rgle::ray::HitOnce { .hit = rgle::ray::Intersection { .position = glm::vec3(), .normal = glm::vec3(0.0f, 0.0f, -1.0f) } }); }); tester.expect("ball intersect should be a double hit", []() { auto ball = rgle::ray::Ball(5.0f); auto ray = rgle::ray::Ray { .eye = glm::vec3(0.0f, 0.0f, -10.0f), .target = glm::vec3(0.0f, 0.0f, 0.0f) }; auto result = rgle::ray::IntersectResult(rgle::ray::HitTwice { .closer = rgle::ray::Intersection { .position = glm::vec3(0.0f, 0.0f, -5.0f), .normal = glm::vec3(0.0f, 0.0f, -1.0f) }, .farther = rgle::ray::Intersection { .position = glm::vec3(0.0f, 0.0f, 5.0f), .normal = glm::vec3(0.0f, 0.0f, 1.0f) } }); return ball.intersect(ray) == result; }); tester.expect("ball intersect should be a single hit", []() { auto ball = rgle::ray::Ball(5.0f); auto ray = rgle::ray::Ray { .eye = glm::vec3(5.0f, 0.0f, -10.0f), .target = glm::vec3(5.0f, 0.0f, 0.0f) }; auto result = rgle::ray::IntersectResult(rgle::ray::HitOnce { .hit = rgle::ray::Intersection { .position = glm::vec3(5.0f, 0.0f, 0.0f), .normal = glm::vec3(1.0f, 0.0f, 0.0f) } }); return ball.intersect(ray) == result; }); tester.expect("model intersect should be a hit", []() { auto model = rgle::ray::Model(rgle::ray::Transform { .transform = rgle::ray::RayTransform(glm::translate(glm::mat4(1.0f), glm::vec3(0.0f, 0.0f, 5.0f))), .model = std::make_unique<rgle::ray::Model>(rgle::ray::Model(rgle::ray::And { .lhs = rgle::ray::transform(rgle::ray::Ball(1.0f), glm::translate(glm::mat4(1.0f), glm::vec3(-1.0f, 0.0f, 0.0f))), .rhs = rgle::ray::transform(rgle::ray::Ball(1.0f), glm::translate(glm::mat4(1.0f), glm::vec3(1.0f, 0.0f, 0.0f))), })) }); auto ray = rgle::ray::Ray { .eye = glm::vec3(-5.0f, 0.0f, 5.0f), .target = glm::vec3(-4.0f, 0.0f, 5.0f) }; return model.intersect(ray) == std::make_optional(rgle::ray::Intersection { .position = glm::vec3(-2.0f, 0.0f, 5.0f), .normal = glm::vec3(-1.0f, 0.0f, 0.0f) }); }); tester.expect("model intersect should be a miss", []() { auto model = rgle::ray::Model(rgle::ray::Transform { .transform = rgle::ray::RayTransform(glm::translate(glm::mat4(1.0f), glm::vec3(0.0f, 0.0f, 5.0f))), .model = std::make_unique<rgle::ray::Model>(rgle::ray::Model(rgle::ray::And { .lhs = rgle::ray::transform(rgle::ray::Ball(1.0f), glm::translate(glm::mat4(1.0f), glm::vec3(-1.0f, 0.0f, 0.0f))), .rhs = rgle::ray::transform(rgle::ray::Ball(1.0f), glm::translate(glm::mat4(1.0f), glm::vec3(1.0f, 0.0f, 0.0f))), })) }); auto ray = rgle::ray::Ray { .eye = glm::vec3(-2.0f, 0.0f, 0.0f), .target = glm::vec3(-2.0f, 0.0f, 1.0f) }; return model.intersect(ray) == std::nullopt; }); }); }
[ "patrickhadlaw@gmail.com" ]
patrickhadlaw@gmail.com
a98fec7dc828c3093ec62b458791d5854ad476e4
a1618f92a071589f60f39918f96df6c3abe7b4b2
/tests/unit_tests/test_peerlist.cpp
1f2144c03b81891b106e12b36531fbcbc6025708
[ "BSD-3-Clause" ]
permissive
techqc/SiZ
f41b920aacfbef5c3a85ff15939e71b1fdba4a59
bdf290705b2d553b4253df4ca97e4367c78f5a27
refs/heads/master
2021-09-10T09:30:39.193726
2018-03-23T19:35:18
2018-03-23T19:35:18
125,059,630
0
0
null
null
null
null
UTF-8
C++
false
false
3,996
cpp
// Copyright (c) 2018, SiZ, The Monero Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of // conditions and the following disclaimer. // // 2. Redistributions in binary form must reproduce the above copyright notice, this list // of conditions and the following disclaimer in the documentation and/or other // materials provided with the distribution. // // 3. Neither the name of the copyright holder nor the names of its contributors may be // used to endorse or promote products derived from this software without specific // prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL // THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers #include "gtest/gtest.h" #include "common/util.h" #include "p2p/net_peerlist.h" #include "net/net_utils_base.h" TEST(peer_list, peer_list_general) { nodetool::peerlist_manager plm; plm.init(false); #define ADD_GRAY_NODE(ip_, port_, id_, last_seen_) { nodetool::peerlist_entry ple; ple.last_seen=last_seen_;ple.adr.ip = ip_; ple.adr.port = port_; ple.id = id_;plm.append_with_peer_gray(ple);} #define ADD_WHITE_NODE(ip_, port_, id_, last_seen_) { nodetool::peerlist_entry ple;ple.last_seen=last_seen_; ple.adr.ip = ip_; ple.adr.port = port_; ple.id = id_;plm.append_with_peer_white(ple);} #define PRINT_HEAD(step) {std::list<nodetool::peerlist_entry> bs_head; bool r = plm.get_peerlist_head(bs_head, 100);std::cout << "step " << step << ": " << bs_head.size() << std::endl;} ADD_GRAY_NODE(MAKE_IP(123,43,12,1), 8080, 121241, 34345); ADD_GRAY_NODE(MAKE_IP(123,43,12,2), 8080, 121241, 34345); ADD_GRAY_NODE(MAKE_IP(123,43,12,3), 8080, 121241, 34345); ADD_GRAY_NODE(MAKE_IP(123,43,12,4), 8080, 121241, 34345); ADD_GRAY_NODE(MAKE_IP(123,43,12,5), 8080, 121241, 34345); ADD_WHITE_NODE(MAKE_IP(123,43,12,1), 8080, 121241, 34345); ADD_WHITE_NODE(MAKE_IP(123,43,12,2), 8080, 121241, 34345); ADD_WHITE_NODE(MAKE_IP(123,43,12,3), 8080, 121241, 34345); ADD_WHITE_NODE(MAKE_IP(123,43,12,4), 8080, 121241, 34345); size_t gray_list_size = plm.get_gray_peers_count(); ASSERT_EQ(gray_list_size, 1); std::list<nodetool::peerlist_entry> bs_head; bool r = plm.get_peerlist_head(bs_head, 100); std::cout << bs_head.size() << std::endl; ASSERT_TRUE(r); ASSERT_EQ(bs_head.size(), 4); ADD_GRAY_NODE(MAKE_IP(123,43,12,5), 8080, 121241, 34345); ASSERT_EQ(plm.get_gray_peers_count(), 1); ASSERT_EQ(plm.get_white_peers_count(), 4); } TEST(peer_list, merge_peer_lists) { //([^ \t]*)\t([^ \t]*):([^ \t]*) \tlast_seen: d(\d+)\.h(\d+)\.m(\d+)\.s(\d+)\n //ADD_NODE_TO_PL("\2", \3, 0x\1, (1353346618 -(\4*60*60*24+\5*60*60+\6*60+\7 )));\n nodetool::peerlist_manager plm; plm.init(false); std::list<nodetool::peerlist_entry> outer_bs; #define ADD_NODE_TO_PL(ip_, port_, id_, timestamp_) { nodetool::peerlist_entry ple; epee::string_tools::get_ip_int32_from_string(ple.adr.ip, ip_); ple.last_seen = timestamp_; ple.adr.port = port_; ple.id = id_;outer_bs.push_back(ple);} }
[ "37153171+techqc@users.noreply.github.com" ]
37153171+techqc@users.noreply.github.com
7470c77548b3b47a5e8a8b31524d31759a4046d9
18d0216007a6e89bf10a6ad18349950b24ed13f4
/sicily_code/old/1231.cpp
9716f1c2aee868fee8e7a1e9c0540381bfa52437
[]
no_license
cuiweixie/soj_water_codes
895e73bf0271854771551b2c4d764f8f4c3c3b8e
c3539ac875d4012ccb9243b7cca11557a4587666
refs/heads/master
2016-08-03T00:16:14.316397
2012-05-10T07:47:44
2012-05-10T07:47:44
4,281,555
1
0
null
null
null
null
UTF-8
C++
false
false
1,909
cpp
#include <iostream> #include <string> #include <cstring> #include <stdio.h> using namespace std; long long int prime[500000]; bool isPrime[1000001]; void getPrime() { memset(isPrime,1,sizeof(isPrime)); prime[0] = 0; for(long long int i=2;i<1000000;i++) { if(isPrime[i])prime[++prime[0]] = i; for(long long int j =1;j<=prime[0]&&i*prime[j]<=1000000;j++) { isPrime[i*prime[j]] = 0; if(i%prime[j]==0)break; } } } string str; int L; int len; int num[50]; void initialized() { len = (str.length()-1)/3+1; memset(num,0,sizeof(num)); if(str.length()%3==0) { for(int i=0;i<len;i++) for(int j=i*3,k=0;k<3;k++,j++) { num[i]=num[i]*10+str[j]-'0'; } } else { int first_index=str.length()%3-1; for(int i=0;i<=first_index;i++) { num[0] = num[0]*10+str[i]-'0'; } for(int i=1;i<len;i++) { for(int j=first_index+(i-1)*3+1,k=0;k<3;k++,j++) { num[i]=num[i]*10+str[j]-'0'; } } } } int mod(const int &prime) { int x = 1000%prime; int res=num[0]; for(int i=1;i<len;i++) { res = (res*x+num[i])%prime; } res=res%prime; return res; } void littleNum() { long long int K =0; for(int i=0;i<str.length();i++) K = K*10+str[i]-'0'; int ans =0; for(int i=1;prime[i]<L;i++) { if(K%prime[i] ==0) { ans = prime[i]; break; } } if(ans ==0) cout << "GOOD"<<endl; else cout << "BAD "<< ans << endl; } int main() { getPrime(); while(cin >>str >> L) { if(str == "0") return 0; initialized(); L++; if(str.length()<19) littleNum(); else { int ans =0; int temp; for(int i=1;prime[i]<L;i++) { temp = mod(prime[i]); if(temp == 0) { ans = prime[i]; break; } } if(ans==0) cout<<"GOOD"<<endl; else cout<<"BAD "<< ans << endl; } } }
[ "cuiweixie@gmail.com" ]
cuiweixie@gmail.com
4c7766b6d26079880dc21810252a657efff85d17
e01f1c3c5f3a0c421306f19649767a6722ac3e19
/entitydisplay.h
1dc9f4ead12141e2f22ef06d89a7b9cc7ad33e3b
[]
no_license
algogr/AlgoIceDroid
edde0ef7c39ce108294bdd7c396a64e888fbf626
e47670aadfe245a3104a3707c3b0adc6336016f7
refs/heads/master
2021-01-20T11:00:37.547452
2014-10-11T16:12:21
2014-10-11T16:12:21
24,685,938
0
0
null
null
null
null
UTF-8
C++
false
false
954
h
#ifndef ENTITYDISPLAY_H #define ENTITYDISPLAY_H #include <QObject> class EntityDisplay : public QObject { Q_OBJECT Q_PROPERTY(QString title READ title WRITE setTitle) Q_PROPERTY(QString value READ value WRITE setValue) Q_PROPERTY(QString fieldname READ fieldname WRITE setFieldname) Q_PROPERTY(QString relatedentity READ relatedentity WRITE setRelatedentity) Q_PROPERTY(bool editable READ editable WRITE setEditable) public: explicit EntityDisplay(QObject *parent = 0); QString title(); QString value(); QString fieldname(); QString relatedentity(); bool editable(); void setTitle(QString title); void setValue(QString value); void setFieldname(QString fieldname); void setEditable(bool editable); void setRelatedentity(QString relatedentity); protected: QString mtitle,mvalue,mfieldname,mrelatedentity; bool meditable; signals: public slots: }; #endif // ENTITYDISPLAY_H
[ "jimpar@algo.gr" ]
jimpar@algo.gr
69047c0b3a5a2d99becc206f330b3818d1206882
ddfd906f4e2fd42b7162a96529af858fdf478dff
/4sem/saod/Курсовая/Includes/UsersList.h
53c5f17df01dbf5cbe49e70f761c42394c6e1774
[]
no_license
teploe-odealko/univer
1627ecd714215cadf30538e16a94d06a9dc335b2
48aea299181ee73f4164a4eeba06014745de6c3b
refs/heads/master
2021-01-03T20:31:59.679594
2020-06-08T12:27:42
2020-06-08T12:27:42
240,226,356
2
0
null
null
null
null
UTF-8
C++
false
false
632
h
#pragma once #define UsersList_h #include <string> using namespace std; struct UserNode { string last_name; string phone_model; }; class UsersList { private: UserNode *users; int max_num_of_users; int current_num_of_users = 0; public: string operator_name; UsersList(int, string); int get_current_num_of_users() { return current_num_of_users; } int get_max_num_of_users() {return max_num_of_users; } void add_user(string, string); void show_all_users(); void to_file(ofstream&); bool remove_user(string); bool isEmpty(); int findByData(string); ~UsersList(); };
[ "din.latypov@gmail.com" ]
din.latypov@gmail.com
18770ac11be62bcb3961356de9772c23f58e7b6b
5146ef95cf61da886d565b292553f54ba5dc7b4e
/Assignment2/JUDGE_AND_SOLUTION/JUDGE/test_disjoint_set.cpp
ce4d4c42cabbb1ddd1065d15938a73f06f9d6ac7
[]
no_license
dongyi-kim/ajou.datastructure.2018.spring
3f4eb578abafce93509ec27573fd6f0978032263
8ab1cbcaa7218d14198970a6572e77e2ee77a10e
refs/heads/master
2021-09-17T03:40:22.062900
2018-06-27T12:25:30
2018-06-27T12:25:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
738
cpp
#include "main.h" #include "graph.h" #include "heap.h" #include<string.h> #include<stdlib.h> #include<stdio.h> #include<memory.h> int main(int argc, char *argv[]){ int i; int j; char DATA_FOLDER[2048]; strcpy(DATA_FOLDER, argv[1]); graph* g = read_graph(DATA_FOLDER); disjoint_set* set = init_set(g->V); graph* spanning_tree = init_graph(g->V, g->V - 1); for (i = 0, j = 0; i < g->E; i += 1){ int u = g->edges[i].origin; int v = g->edges[i].dest; if (find_set(set, u) == find_set(set, v)){ continue; } spanning_tree->edges[j++] = g->edges[i]; union_set(set, u, v); } write_graph(DATA_FOLDER, spanning_tree); release_set(set); release_graph(g); release_graph(spanning_tree); return 0; }
[ "waps12b@naver.com" ]
waps12b@naver.com
5ad25e6eb9cd709fc99196eef8873a387a9c6111
616d9e83ac7b0dafc37bb0a753da79bc10c9bd6d
/week--04/day--01/airCraftCarrier/F35.cpp
20b5a8ae480075ae068247533eddffd7a76be554
[]
no_license
green-fox-academy/Teleeeee
7c8428922497a9bd76ea43de903e840a9cbdeaa5
b7b8eff32c79e1ee03684096ee0ca246db389079
refs/heads/master
2020-07-19T06:58:07.323979
2020-01-30T21:18:02
2020-01-30T21:18:02
206,396,188
0
0
null
null
null
null
UTF-8
C++
false
false
153
cpp
// // Created by User on 30/09/2019. // #include "F35.h" F35::F35() { setMaxAmmo(12); setAmmo(0); setType("F35"); setBaseDamage(50); }
[ "lev9433@gmail.com" ]
lev9433@gmail.com
175b3062783e4402c8a7fd160591e5cbc515735e
cf8ddfc720bf6451c4ef4fa01684327431db1919
/SDK/ARKSurvivalEvolved_StorageBox_IndustrialGrinder_parameters.hpp
47222abfa33c8578f7964c3a2e913626b587df9c
[ "MIT" ]
permissive
git-Charlie/ARK-SDK
75337684b11e7b9f668da1f15e8054052a3b600f
c38ca9925309516b2093ad8c3a70ed9489e1d573
refs/heads/master
2023-06-20T06:30:33.550123
2021-07-11T13:41:45
2021-07-11T13:41:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,039
hpp
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_StorageBox_IndustrialGrinder_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------------------------------- // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.GrindAllItems struct AStorageBox_IndustrialGrinder_C_GrindAllItems_Params { class APlayerController* ForPC; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.IsValidForGrindingAll struct AStorageBox_IndustrialGrinder_C_IsValidForGrindingAll_Params { bool IsValid; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.BPPreGetMultiUseEntries struct AStorageBox_IndustrialGrinder_C_BPPreGetMultiUseEntries_Params { class APlayerController** ForPC; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.HasCraftingRequirementsGreaterThanOne struct AStorageBox_IndustrialGrinder_C_HasCraftingRequirementsGreaterThanOne_Params { class UPrimalItem* InItem; // (Parm, ZeroConstructor, IsPlainOldData) bool TRUE; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.GetReplacementItem struct AStorageBox_IndustrialGrinder_C_GetReplacementItem_Params { class UClass* InItemClass; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* OutItemClass; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.IsValidGrindingItem struct AStorageBox_IndustrialGrinder_C_IsValidGrindingItem_Params { class UPrimalItem* ItemToCheck; // (Parm, ZeroConstructor, IsPlainOldData) bool IsValid; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.GrindItem struct AStorageBox_IndustrialGrinder_C_GrindItem_Params { class UPrimalItem* ItemToGrind; // (Parm, ZeroConstructor, IsPlainOldData) class AShooterPlayerController* ForPC; // (Parm, ZeroConstructor, IsPlainOldData) bool grindStack; // (Parm, ZeroConstructor, IsPlainOldData) bool MuteSound; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.BPServerHandleNetExecCommand struct AStorageBox_IndustrialGrinder_C_BPServerHandleNetExecCommand_Params { class APlayerController** FromPC; // (Parm, ZeroConstructor, IsPlainOldData) struct FName* CommandName; // (Parm, ZeroConstructor, IsPlainOldData) struct FBPNetExecParams ExecParams; // (Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.BPClientDoMultiUse struct AStorageBox_IndustrialGrinder_C_BPClientDoMultiUse_Params { class APlayerController** ForPC; // (Parm, ZeroConstructor, IsPlainOldData) int* ClientUseIndex; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.BPGetMultiUseEntries struct AStorageBox_IndustrialGrinder_C_BPGetMultiUseEntries_Params { class APlayerController** ForPC; // (Parm, ZeroConstructor, IsPlainOldData) TArray<struct FMultiUseEntry> MultiUseEntries; // (Parm, OutParm, ZeroConstructor, ReferenceParm) TArray<struct FMultiUseEntry> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.UserConstructionScript struct AStorageBox_IndustrialGrinder_C_UserConstructionScript_Params { }; // Function StorageBox_IndustrialGrinder.StorageBox_IndustrialGrinder_C.ExecuteUbergraph_StorageBox_IndustrialGrinder struct AStorageBox_IndustrialGrinder_C_ExecuteUbergraph_StorageBox_IndustrialGrinder_Params { int EntryPoint; // (Parm, ZeroConstructor, IsPlainOldData) }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "sergey.2bite@gmail.com" ]
sergey.2bite@gmail.com
9be90c84d11ce82425724bd00dd201605d419358
c603aa4b0f31526e2ccf8652a4d9e7ad8327ec6b
/object-detect/src/main.cpp
8f1a8fd032fc1859738dfb34859218cc4ecd4928
[]
no_license
Robotics-DAI-FMFI-UK/cu-lIllI
75cc654b1fb328eff1a04ed1ee32699e7bc91d40
40df0269c72ec3912f75807d9727aae6b3c5e67f
refs/heads/master
2023-06-07T21:12:53.499916
2023-06-01T21:33:10
2023-06-01T21:33:10
159,908,225
0
0
null
null
null
null
UTF-8
C++
false
false
14,928
cpp
#include <stdio.h> #include <string.h> #include <sl/Camera.hpp> #include <opencv2/opencv.hpp> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "objdet.h" //#include "arm.cpp" using namespace std; using namespace sl; cv::Mat slMat2cvMat(Mat& input); string type2str(int type); float compare(uchar L, uchar a, uchar b, float d, uchar L2, uchar a2, uchar b2, float d2); int findCompMap(int* compMap, int comp); int mapSize = 200000; float wLight = 10; float wColor = 250; float wDepth = 400; float thresh = 50; float redThresh = 145; float unit = 10; // camera calibration constants float fx = 347.542; float fy = 347.542; float cx = 325.756; float cy = 184.519; void printInfo() { printf("Unit:\t%.2f [,/.]\nLight:\t%.2f [A/Z]\nColor:\t%.2f [S/X]\nDepth:\t%.2f [D/C]\nThresh:\t%.2f [F/V]\nRed:\t%.2f [G/B]\n\n", unit, wLight, wColor, wDepth, thresh, redThresh); } int main(int argc, char **argv) { // calculate angle limits // for (int i = 0; i < 6; i++) { // angleMin[i] = step2rad * (stepMin[i] - stepZero[i]); // angleMax[i] = step2rad * (stepMax[i] - stepZero[i]); // printf("%d %f %f\n", i, angleMin[i], angleMax[i]); // } int serial = open("/dev/ttyUSB0", O_WRONLY); if (serial < 0) printf("Not connected to arduino\n"); float angles[] = {0, 0, 0, 0, 0, 0}; int steps[6]; memcpy(steps, stepZero, 6 * sizeof(int)); char cmd[20]; Camera zed; InitParameters init; init.sdk_verbose = false; init.camera_resolution = RESOLUTION_VGA; init.camera_fps = 30; init.depth_mode = DEPTH_MODE_ULTRA;//MEDIUM; init.coordinate_units = UNIT_MILLIMETER; RuntimeParameters runtime; runtime.sensing_mode = SENSING_MODE_FILL; ERROR_CODE err = zed.open(init); if (err != SUCCESS) exit(-1); sl::Mat zed_img(zed.getResolution(), MAT_TYPE_8U_C4); sl::Mat zed_dep(zed.getResolution(), MAT_TYPE_32F_C1); cv::Mat img = slMat2cvMat(zed_img); cv::Mat dep = slMat2cvMat(zed_dep); cv::Mat comp, lab, seg, isRed; // values pixel for comparison uchar L, a, b, L2, a2, b2; float d, d2, pr, pc; int compMap[mapSize]; int lMap[mapSize]; int aMap[mapSize]; int bMap[mapSize]; int sMap[mapSize]; float x = 0, y = 0, z = 0; printInfo(); char key = ' '; while (key != 'q') { if (zed.grab(runtime) == SUCCESS) { // retrieve image and depth maps zed.retrieveImage(zed_img, VIEW_LEFT); zed.retrieveMeasure(zed_dep, MEASURE_DEPTH); cv::threshold(dep, dep, 5000, 0, cv::THRESH_TRUNC); double min, max; cv::minMaxLoc(dep, &min, &max); cv::imshow("dep", dep / max); cv::imshow("img", img); // convert to L*a*b for better color comparison cv::cvtColor(img, lab, CV_BGR2Lab); //cv::imshow("lab", lab); // === SEGMENTATION === // init component matrix int rows = lab.rows; int cols = lab.cols; comp = cv::Mat::zeros(rows, cols, CV_32SC1); int newComp = 1; // clear arrays fill_n(compMap, mapSize, 0); fill_n(lMap, mapSize, 0); fill_n(aMap, mapSize, 0); fill_n(bMap, mapSize, 0); fill_n(sMap, mapSize, 0); // our matrices are continuous - 1 long row - only 1 pointer needed // row pointers uchar* lPtr = lab.ptr<uchar>(0); int* cPtr = comp.ptr<int>(0); float* dPtr = dep.ptr<float>(0); // channel counts int lChan = lab.channels(), dChan = dep.channels(), cChan = comp.channels(); // iterate for (int r = 0; r < rows; r++) { for (int c = 0; c < cols; c++) { pr = 0; pc = 0; // get data for this pixel L = lPtr[(r * cols + c) * lChan]; a = lPtr[(r * cols + c) * lChan + 1]; b = lPtr[(r * cols + c) * lChan + 2]; d = dPtr[(r * cols + c) * dChan]; if (r > 0) { // compare with neighbor in previous row L2 = lPtr[((r-1) * cols + c) * lChan]; a2 = lPtr[((r-1) * cols + c) * lChan + 1]; b2 = lPtr[((r-1) * cols + c) * lChan + 2]; d2 = dPtr[((r-1) * cols + c) * dChan]; pr = compare(L, a, b, d, L2, a2, b2, d2); } if (c > 0) { // compare with neighbor in previous column L2 = lPtr[(r * cols + c-1) * lChan]; a2 = lPtr[(r * cols + c-1) * lChan + 1]; b2 = lPtr[(r * cols + c-1) * lChan + 2]; d2 = dPtr[(r * cols + c-1) * dChan]; pc = compare(L, a, b, d, L2, a2, b2, d2); } //cPtr[(r * cols + c) * cChan] = (uchar) (pr < pc? pr : pc); int compToSet = 0; if (r > 0) { if (c > 0) { // inside image if (pr < thresh) { if (pc < thresh) { // both similar int compR = cPtr[((r-1) * cols + c) * cChan]; int compC = cPtr[(r * cols + c - 1) * cChan]; if (compR == compC) { // both previous row and colum are in the same component compToSet = compR; } else { // different components, need to mark as same // check if they are merged already int mR = findCompMap(compMap, compR); int mC = findCompMap(compMap, compC); if (mR < mC) { compToSet = mR; compMap[compC] = mR; } else { compToSet = mC; compMap[compR] = mC; } } } else { // only previous row similar compToSet = cPtr[((r-1) * cols + c) * cChan]; } } else { if (pc < thresh) { // only previous column similar compToSet = cPtr[(r * cols + c - 1) * cChan]; } else { // neither similar compToSet = newComp++; } } } else { // first column - check only previous row if (pr < thresh) compToSet = cPtr[((r-1) * cols) * cChan]; // similar - same component else compToSet = newComp++; } } else { if (c > 0) { // first row - check only previous column if (pc < thresh) compToSet = cPtr[(c-1) * cChan]; // similar - same component else compToSet = newComp++; // else - new component } else { // first corner - new component compToSet = newComp++; } } cPtr[(r * cols + c) * cChan] = compToSet; if (newComp >= mapSize) break; } if (newComp >= mapSize) break; } // iterate over segment image, merging and collecting segment stats for (int r = 0; r < rows; r++) { for (int c = 0; c < cols; c++) { // replace using map if needed int comp = cPtr[(r * cols + c) * cChan]; comp = findCompMap(compMap, comp); cPtr[(r * cols + c) * cChan] = comp; // set data lMap[comp] += lPtr[(r * cols + c) * lChan]; aMap[comp] += lPtr[(r * cols + c) * lChan + 1]; bMap[comp] += lPtr[(r * cols + c) * lChan + 2]; sMap[comp] += 1; } } //cv::imshow("comp", comp); // create colored component image seg = cv::Mat::zeros(rows, cols, CV_8UC3); lPtr = seg.ptr<uchar>(0); lChan = seg.channels(); int bestRedId = 0; int bestRedSize = 0; for (int r = 0; r < rows; r++) { for (int c = 0; c < cols; c++) { int comp = cPtr[(r * cols + c) * cChan]; lPtr[(r * cols + c) * lChan] = lMap[comp] / sMap[comp]; lPtr[(r * cols + c) * lChan + 1] = aMap[comp] / sMap[comp]; lPtr[(r * cols + c) * lChan + 2] = bMap[comp] / sMap[comp]; if (lPtr[(r * cols + c) * lChan + 2] > redThresh && lPtr[(r * cols + c) * lChan + 1] > redThresh) { if (sMap[comp] > bestRedSize) { bestRedSize = sMap[comp]; bestRedId = comp; } } } } int tx = 0, ty = 0; isRed = cv::Mat::zeros(rows, cols, CV_8UC1); uchar* rPtr = isRed.ptr<uchar>(0); for (int r = 0; r < rows; r++) { for (int c = 0; c < cols; c++) { int comp = cPtr[(r * cols + c) * cChan]; if (comp == bestRedId) { rPtr[r * cols + c] = 255; tx += c; ty += r; } } } tx /= bestRedSize; ty /= bestRedSize; cv::imshow("red", isRed); cv::Mat seg2; //cv::imshow("seg_lab", seg); cv::cvtColor(seg, seg2, CV_Lab2BGR); cv::imshow("seg", seg2); key = cv::waitKey(1); if (key != 255) { if (key == ',') unit /= 10; if (key == '.') unit *= 10; if (key == 'a') wLight += unit; if (key == 'z') wLight -= unit; if (key == 's') wColor += unit; if (key == 'x') wColor -= unit; if (key == 'd') wDepth += unit; if (key == 'c') wDepth -= unit; if (key == 'f') thresh += unit; if (key == 'v') thresh -= unit; if (key == 'g') redThresh += unit; if (key == 'b') redThresh -= unit; printInfo(); if (key == ' ') { } } if (bestRedSize > 1000) { z = dPtr[(ty * cols + tx) * dChan]; x = (tx - cx) * z / fx; y = (ty - cy) * z / fy; float alpha = 0.01; int stepCount = 1000; //fill_n(angles, 6, 0); cv::Mat target = (cv::Mat_<float>(3,1) << x, y, z); for (int i = 1; i <= stepCount; i++) { gradientDescent(angles, target, alpha); } cout << "target " << target.t() << endl; cout << "arm " << calculateArm(angles).t() << endl << endl; anglesToSteps(angles, steps); for (int i = 0; i < 6; i++) { printf("%f %d\n", angles[i], steps[i]); sprintf(cmd, "#%d,%d,1*", angleIdx[i], steps[i]); if (serial > 0) { if (write(serial, cmd, strlen(cmd)) < 0) printf("error\n"); } } } } } close(serial); } int findCompMap(int* compMap, int comp) { if (compMap[comp] == 0) { // not in map yet return comp; } else { // return found return compMap[comp]; } } float compare(uchar L, uchar a, uchar b, float d, uchar L2, uchar a2, uchar b2, float d2) { // 4D euclidean distance return sqrt(wLight*(L-L2)*(L-L2) + wColor*(a-a2)*(a-a2) + wColor*(b-b2)*(b-b2) + wDepth*(d-d2)*(d-d2)); } /** * Conversion function between sl::Mat and cv::Mat **/ cv::Mat slMat2cvMat(Mat& input) { // Mapping between MAT_TYPE and CV_TYPE int cv_type = -1; switch (input.getDataType()) { case MAT_TYPE_32F_C1: cv_type = CV_32FC1; break; case MAT_TYPE_32F_C2: cv_type = CV_32FC2; break; case MAT_TYPE_32F_C3: cv_type = CV_32FC3; break; case MAT_TYPE_32F_C4: cv_type = CV_32FC4; break; case MAT_TYPE_8U_C1: cv_type = CV_8UC1; break; case MAT_TYPE_8U_C2: cv_type = CV_8UC2; break; case MAT_TYPE_8U_C3: cv_type = CV_8UC3; break; case MAT_TYPE_8U_C4: cv_type = CV_8UC4; break; default: break; } // Since cv::Mat data requires a uchar* pointer, we get the uchar1 pointer from sl::Mat (getPtr<T>()) // cv::Mat and sl::Mat will share a single memory structure return cv::Mat(input.getHeight(), input.getWidth(), cv_type, input.getPtr<sl::uchar1>(MEM_CPU)); } // openCV mat type debug string type2str(int type) { string r; uchar depth = type & CV_MAT_DEPTH_MASK; uchar chans = 1 + (type >> CV_CN_SHIFT); switch ( depth ) { case CV_8U: r = "8U"; break; case CV_8S: r = "8S"; break; case CV_16U: r = "16U"; break; case CV_16S: r = "16S"; break; case CV_32S: r = "32S"; break; case CV_32F: r = "32F"; break; case CV_64F: r = "64F"; break; default: r = "User"; break; } r += "C"; r += (chans+'0'); return r; }
[ "pavel.petrovic@gmail.com" ]
pavel.petrovic@gmail.com
3bf751a5cfcd091d5784030dce4b3eb89aefb944
73e5d2812ec4aa07dc9eacf11decb6a73e907d64
/src/MIT_alice/MUILineCircleVisual.h
17f6045b1f9d1bebb3b5e195d6fe92a2d4b3914e
[ "MIT" ]
permissive
midasitdev/aliceui
cdf781f84e2d488d0cc7083aa3c783937459ba76
3693018021892bcccbc66f29b931d9736db6f9dc
refs/heads/master
2020-04-24T06:51:27.386806
2020-03-05T23:55:48
2020-03-05T23:55:48
171,779,938
10
5
NOASSERTION
2019-03-08T00:07:41
2019-02-21T01:44:39
C++
UTF-8
C++
false
false
706
h
#pragma once #define MIDAS_SDK #include "MUILinesVisual.h" #include "MUICircleDef.h" #include "HeaderPre.h" namespace mit { namespace ui { class __MY_EXT_CLASS__ MUILineCircleVisual : public MUILinesVisual { MRUNTIME_DECL_KINDOF( MUILineCircleVisual ); public: MUILineCircleVisual(); virtual ~MUILineCircleVisual(); ////////////////////////////////////////////////////////////////////////// // Rendering data public: const std::vector< Circle >& GetCircles() const; float GetLineWidth() const; SkColor GetLineColor() const; }; } } #include "HeaderPost.h"
[ "skwoo@midasit.com" ]
skwoo@midasit.com
8f08e50e077817fcbdbce65db8da26f5867dc267
d32b701f6ccd833293c8571b5411fa55a57b0cb9
/src/orient_module.cpp
bd53a3b6f28475f71e0a511d8913f6caee31f5e2
[]
no_license
mitchellgordon95/GraphicsFromScratch
d0108795d50eb500a3d166602f761cad102e4ea7
30b678f713597a95370411eaf48450737a3d2399
refs/heads/master
2020-05-29T21:14:59.508395
2015-05-05T05:14:45
2015-05-05T05:14:45
35,078,624
0
0
null
null
null
null
UTF-8
C++
false
false
952
cpp
#include "orient_module.h" #include "cli_pipeline.h" #include <armadillo> CLI_Orient::~CLI_Orient() { } using namespace CLI_Pipeline; using namespace arma; void CLI_Orient::execute(std::vector<char *> &params) { float a = CLI_Module::parseNumericalArg(params[0]); float b = CLI_Module::parseNumericalArg(params[1]); float c = CLI_Module::parseNumericalArg(params[2]); float d = CLI_Module::parseNumericalArg(params[3]); float e = CLI_Module::parseNumericalArg(params[4]); float f = CLI_Module::parseNumericalArg(params[5]); float g = CLI_Module::parseNumericalArg(params[6]); float h = CLI_Module::parseNumericalArg(params[7]); float i = CLI_Module::parseNumericalArg(params[8]); fmat trans = eye<fmat>(4,4); fmat smaller; smaller << a << b << c << d << e << f << g << h << i; trans.submat(0,0,2,2) = smaller; fmat current = transform_stack.back(); transform_stack.pop_back(); transform_stack.push_back(current * trans); }
[ "mitchell.gordon95@gmail.com" ]
mitchell.gordon95@gmail.com
8607856aac8e3fbea08d2adf0c61c33ca35b8c5e
c9e3a15a9df784dd6e97334dd465e437726dd31c
/sources/prgm sol/traitement images/essai1.cpp
938bed29ce03503ebcb8adc726f9b6aee216e503
[]
no_license
thriller91/Cansat-SupOp
75964e5484f88620f4b3468b5a8c526d2fcd9829
3fecc6433ff6a0d22d82ba238558d97c6c233fb4
refs/heads/master
2020-05-30T18:30:46.153984
2017-02-20T17:51:01
2017-02-20T17:51:01
2,622,802
0
2
null
null
null
null
UTF-8
C++
false
false
1,469
cpp
#include "highgui.h" #include "cxcore.h" #include <iostream> #include <vector> using namespace std; using namespace cv; int main( int argc, char** argv ) { int rows,cols; cv::Mat img3; IplImage *img1,*img2,image; std::vector<Mat> planes1,planes2; if(argc<2){ std::cout<<"Usage: main <image-file-name>"<<std::endl; exit(0); } img1=cvLoadImage(argv[1]); img2=cvLoadImage(argv[2]); /*if(!img1){ std::cout<<"Could not load image file:"<<argv[1])<<std::endl; exit(0); } if(!img2){ std::cout<<"Could not load image file:"<<argv[2])<<std::endl; exit(0); }*/ split(img1,planes1); split(img2,planes2); cvReleaseImage(&img1); cvReleaseImage(&img2); cols=planes1[2].cols; rows=planes1[2].rows; if ((planes2[2].cols!=cols)|(planes2[2].rows!=rows)){ std::cout<<"Images should have the same size"<<std::endl; } img3=1.1*planes1[2]-1.09*planes2[2]; for (int k=0;k<3;k++) { planes1[k].release(); planes2[k].release(); } /*img3=Mat(rows,cols,CV_8UC1); MatIterator_<uchar> it1 = planes1[2].begin<uchar>(),it_end1 = planes1[2].end<uchar>(); MatIterator_<uchar> it2 = planes2[2].begin<uchar>(),it_end2 = planes2[2].end<uchar>(); MatIterator_<uchar> it3 = img3.begin<uchar>(),it_end3 = img3.end<uchar>(); for(; it1 != it_end1; ++it1) { if (*it1>*it2) { *it3=*it1-*it2; } else { *it3=0; } ++it2; ++it3; }*/ image=IplImage(img3); //cvShowImage("test",&image); cvSaveImage("test10039.jpg",&image); }
[ "zubair91@hotmail.fr" ]
zubair91@hotmail.fr
52a7768d1bb0fce02b20b348aac40f498ccbdea1
b400ea725f0f6d6cbb59fa801d56c8513c851993
/include/hpp/foot/solvers/LPQPsolver.hh
1348050561afe11167af74f850b3e99fdbedbad8
[]
no_license
ggory15/HPP_foottrajectory
db43718ee5715573ca5e79d2d2b18d2645cb9560
11d136ce7234c6d437e0a8b8ddbd8ce9f7854da5
refs/heads/master
2020-03-28T17:04:42.451964
2018-10-19T14:42:04
2018-10-19T14:42:04
148,756,293
0
1
null
2018-09-14T15:31:05
2018-09-14T08:04:11
CMake
UTF-8
C++
false
false
1,828
hh
#pragma once #include <iostream> #include <fstream> // #include <eigenqp/LSSOL.h> // #include <eigenqp/LSSOL_QP.h> // #include <eigenqp/LSSOL_LP.h> #include <qpOASES.hpp> #include <hpp/foot/TrajectoryProblem.hh> // done #include <hpp/foot/utils/defs.hh> // done #include <hpp/foot/solvers/QP.hh> #include <hpp/foot/solvers/QPPlanesFixed.hh> //done #include <hpp/foot/solvers/QPBoxesFixed.hh> // done #include <hpp/foot/solvers/QPBoxesFixedIndividual.hh> //done namespace hpp{ namespace foot { class LPQPSolver { public: LPQPSolver(const TrajectoryProblem& pb, const size_t& maxIter, const double& precision = 1e-8); virtual ~LPQPSolver(); void init(const Eigen::VectorXd& xInit); void solve(); void logAllX(const std::string& fileName) const; const QPPlanesFixed& qpPlanesFixed() const { return qpPlanesFixed_; } const QPBoxesFixed& qpBoxesFixed() const { return qpBoxesFixed_; } void formAndSolveQPPlanesFixed(RefVec x); void formAndSolveLPBoxesFixed(RefVec x); void formAndSolveIndividualLPBoxesFixed(RefVec x); Eigen::VectorXd res() const { return res_; } const size_t& totalIter() const { return totalIter_; } private: const TrajectoryProblem& pb_; QPPlanesFixed qpPlanesFixed_; QPBoxesFixed qpBoxesFixed_; QPBoxesFixedIndividual qpBoxesFixedIndividual_; Eigen::VectorXd res_; size_t maxIter_, totalIter_; std::vector<Eigen::VectorXd> resHistory_; double precision_; /// @brief QP solver qpOASES::SQProblem* QPSolver_; qpOASES::SQProblem* LPSolver_; qpOASES::SQProblem* LPSolverIndiv_; bool m_init_QP, m_init_LP, m_init_LPInd; qpOASES::returnValue m_status_QP, m_status_LP, m_status_LPInd; qpOASES::Options m_options; Eigen::VectorXd x_sol_; }; } /* feettrajectory */ }
[ "ggory15@snu.ac.kr" ]
ggory15@snu.ac.kr
3aeebfc2aceb1adbf1a5481edbe7afed3b715f42
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/chromeos/components/camera_app_ui/url_constants.cc
96894c1d8bab757e4aa201eee81af9010c9cbb84
[ "BSD-3-Clause" ]
permissive
otcshare/chromium-src
26a7372773b53b236784c51677c566dc0ad839e4
64bee65c921db7e78e25d08f1e98da2668b57be5
refs/heads/webml
2023-03-21T03:20:15.377034
2020-11-16T01:40:14
2020-11-16T01:40:14
209,262,645
18
21
BSD-3-Clause
2023-03-23T06:20:07
2019-09-18T08:52:07
null
UTF-8
C++
false
false
389
cc
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromeos/components/camera_app_ui/url_constants.h" namespace chromeos { const char kChromeUICameraAppHost[] = "camera-app"; const char kChromeUICameraAppURL[] = "chrome://camera-app/"; } // namespace chromeos
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
777e87fe8fb1dccae1690c003f971c2ec9379754
f153b04464e0bbe7c2db57f7b6c2d64d87f8953b
/leetcode/NumberOfBoomerangs.cpp
13b52ebaee4fb4f7bb3bc88104b59f47c5527bbb
[]
no_license
alvas/ms_interview_100
82f4f7222db775c68b035dc616d812c63f3127a7
8587116a3c4227f71783e7dac42517b6561d17b0
refs/heads/master
2022-03-18T10:48:46.834899
2022-02-24T04:10:05
2022-02-24T04:10:05
16,854,684
4
1
null
null
null
null
UTF-8
C++
false
false
10,617
cpp
#include <iostream> #include <map> #include <unordered_map> #include <vector> using namespace std; class Solution { public: int numberOfBoomerangs(vector<pair<int, int>>& points) { int res = 0; int sz = points.size(); for (int i = 0; i < sz; ++i) { unordered_map<long, int> m; for (int j = 0; j < sz; ++j) { if (i == j) { continue; } // for each new pair with distance, it could form 2 new boomerang // with each exising of m[dis] pair with distance. long dis = distance(points[i], points[j]); res += m[dis] * 2; m[dis]++; } } return res; } long distance(pair<int, int> &p1, pair<int, int> &p2) { int d1 = p1.first - p2.first; int d2 = p1.second - p2.second; return d1 * d1 + d2 * d2; } int numberOfBoomerangs_slow(vector<pair<int, int>>& points) { int sz = points.size(); int res = 0; vector<vector<long>> v(500, vector<long>(500, LONG_MIN)); //map<pair<int, int>, long> m; for (int i = 0; i < sz; ++i) { for (int j = 0; j < sz; ++j) { if (i == j) { continue; } long len1 = 0; //pair<int, int> p1(i, j), p2(j, i); //auto itr = m.find(p1), itr2 = m.find(p2); //if (itr != m.end()) { //len1 = itr->second; //} //else if (itr2 != m.end()) { //len1 = itr2->second; //} //else { //long a = points[i].first - points[j].first, b = points[i].second - points[j].second; //len1 = a * a + b * b; //m.insert(make_pair(p1, len1)); //m.insert(make_pair(p2, len1)); //} if (v[i][j] != LONG_MIN) { len1 = v[i][j]; } else if (v[j][i] != LONG_MIN) { len1 = v[j][i]; } else { long a = points[i].first - points[j].first, b = points[i].second - points[j].second; len1 = a * a + b * b; v[i][j] = len1; v[j][i] = len1; } for (int k = 0; k < sz; ++k) { if (k == i || k == j) { continue; } long len2 = 0; //pair<int, int> p3(i, k), p4(k, i); //itr = m.find(p3), itr2 = m.find(p4); //if (itr != m.end()) { //len2 = itr->second; //} //else if (itr2 != m.end()) { //len2 = itr2->second; //} //else { //long c = points[i].first - points[k].first, d = points[i].second - points[k].second; //len2 = c * c + d * d; //m.insert(make_pair(p3, len2)); //m.insert(make_pair(p4, len2)); //} if (v[i][k] != LONG_MIN) { len2 = v[i][k]; } else if (v[k][i] != LONG_MIN) { len2 = v[k][i]; } else { long c = points[i].first - points[k].first, d = points[i].second - points[k].second; len2 = c * c + d * d; v[i][k] = len2; v[k][i] = len2; } if (len1 == len2) { res++; } } } } return res; } }; int main() { Solution sln; //vector<pair<int, int>> points = {{0, 0}, {1, 0}, {2, 0}}; //vector<pair<int, int>> points = {{1, 1}, {2, 2}, {3, 3}}; //vector<pair<int, int>> points = {{0, 0}, {1, 0}, {-1, 0}, {0, 1}, {0, -1}}; //vector<pair<int, int>> points = {{1, 8}, {7, 9}, {2, 0}, {2, 3}, {7, 5}, {9, 2}, {2, 8}, {9, 7}, {3, 6}, {1, 2}}; vector<pair<int, int>> points = {{3327,-549},{9196,-8118},{7610,-9506},{5098,8392},{8582,7953},{1053,5802},{3847,2652},{7654,8355},{1614,-9409},{9986,5538},{4660,2944},{4528,-9512},{7483,-1455},{3422,-3966},{2037,-4456},{5107,-4635},{4996,655},{7247,2606},{1149,8697},{7350,6083},{3002,8403},{8238,6850},{1055,5892},{5205,9021},{2835,5191},{911,-2505},{4488,-4561},{7983,-1677},{336,-2243},{4358,-1274},{3302,9465},{4091,-5350},{120,7690},{3608,7622},{6388,-9042},{57,-610},{9361,8295},{6240,-3232},{540,7797},{2141,-6625},{9341,3053},{7223,3829},{4844,1558},{2152,-8467},{9316,6510},{259,-1030},{2327,-5650},{9972,8800},{2040,-6420},{2774,4780},{4538,-7169},{4171,-6101},{7479,-3237},{7019,-1981},{4561,-4488},{7746,254},{4917,4969},{4083,-238},{6528,-7413},{1295,-7804},{5450,-8446},{1166,-5871},{2256,-8862},{2929,-5704},{4718,2055},{5429,-4392},{4887,9600},{9507,-1282},{2715,2878},{6737,-6372},{8390,-9165},{3882,3308},{5805,4317},{9422,8685},{3257,-2931},{881,-1293},{8623,-1601},{2836,879},{5889,2118},{1527,607},{4173,-3044},{6215,5412},{2908,-7926},{4130,-8024},{1304,7219},{1956,-3954},{8055,5839},{5706,212},{6508,5128},{8897,9765},{2197,-3870},{8472,-2828},{4529,7661},{4403,-9582},{6131,-7717},{7377,-3344},{5591,9944},{2069,-5148},{8370,-7449},{6828,-3974},{6123,-1216},{2072,530},{975,-2221},{7094,-2516},{9259,-4009},{7249,7809},{8473,2074},{4981,-6998},{9735,5737},{9772,5866},{8020,-6499},{8874,-6389},{3445,-9057},{4815,8167},{9847,1643},{4193,2322},{6780,2617},{9204,4107},{396,6298},{1591,6008},{2289,-4807},{3817,762},{7267,5150},{116,-6646},{887,-3760},{5572,-4741},{9741,4446},{5223,-462},{1742,38},{7705,1589},{1682,-1750},{263,4814},{867,9467},{8921,7616},{5765,-3135},{3624,4406},{2058,-2559},{1520,-675},{2591,-2012},{2679,-169},{4228,-1749},{5090,-6031},{2697,-9687},{9859,791},{352,3916},{8732,-1614},{2166,8995},{3200,9385},{4814,-1527},{7001,579},{5338,-3023},{1337,-2604},{4418,-7143},{3073,3362},{845,-7896},{3193,-8575},{6707,4635},{1746,-595},{4949,1605},{6548,-8347},{1873,5281},{39,-5961},{4276,-409},{9777,-909},{8064,3130},{6022,-245},{108,7360},{7151,4526},{6569,-3423},{4240,-2585},{8681,-2567},{5192,5389},{2069,-3061},{1146,3370},{4896,7694},{5023,6770},{2975,-8586},{7161,-6396},{1005,6938},{2695,-4579},{69,-4931},{5176,177},{2429,-1320},{1055,8999},{5257,-4704},{2766,-6062},{9081,-2042},{5679,-2498},{1249,6825},{7224,-3854},{872,2247},{2916,-6153},{3661,-9923},{7451,-8982},{7016,6498},{6440,-6563},{1568,-8384},{9966,-9651},{296,1021},{9348,-8095},{2669,8466},{2196,-8249},{2777,7875},{5605,4026},{1053,-7170},{172,-8075},{1429,-6912},{5772,-8557},{9518,-424},{2461,2886},{2426,-1099},{6323,-6006},{6870,-3711},{696,3518},{3662,6396},{5424,-3668},{4863,7620},{4435,7640},{1847,-3608},{8018,-7100},{9222,-5457},{4825,7004},{3983,-3050},{8447,-6499},{2878,-9092},{6387,5304},{6162,-938},{5651,3032},{5351,6347},{2902,-4634},{2743,8326},{8050,-6042},{2298,-1163},{7950,-9502},{5229,-4031},{3398,-9196},{512,-5424},{7808,847},{7878,6255},{4349,7108},{7163,736},{8764,9677},{6151,-5585},{2709,-2146},{7114,5612},{3220,-3790},{290,-8730},{168,8941},{107,-5529},{9439,-8311},{440,9189},{2493,7304},{117,6653},{8151,-5653},{2908,8852},{1455,-3577},{5941,-3428},{6101,-7908},{7339,5162},{9946,-5546},{7126,9519},{7016,3769},{789,7184},{2710,-2751},{1655,-1499},{5290,-1553},{4042,-2217},{2103,-9488},{788,-3393},{1211,3696},{1811,9019},{6471,-2248},{5591,8924},{6196,2930},{4087,6143},{3736,7565},{5662,-9248},{1334,2803},{4289,-9604},{6404,2296},{8897,-8306},{7096,-708},{5829,9199},{6156,-3383},{2158,-2633},{6665,-9678},{6386,3137},{8074,1977},{2061,4271},{4908,-7500},{6766,4996},{66,8780},{5749,1400},{7935,38},{1797,-5660},{2334,7046},{2386,9430},{2690,-1784},{4982,-1154},{1185,3492},{6214,-2149},{3814,8952},{7340,8241},{930,-4247},{8864,2190},{8254,5630},{7186,-5328},{762,9287},{6072,8697},{9325,-5779},{9389,1660},{7620,-8224},{7442,-9690},{9992,-7576},{5509,7529},{2269,8075},{5380,-3917},{7027,-7280},{4324,-5691},{8474,3188},{6499,3080},{5170,-9962},{7752,5932},{9325,176},{982,-1349},{4398,371},{6663,-1630},{2147,-9543},{5032,8491},{9234,541},{6021,1503},{8616,7753},{3938,-8004},{6826,8263},{6305,-8348},{7803,9157},{4732,-674},{9195,-1164},{5258,8520},{9012,2592},{3523,-238},{2964,6538},{8132,1463},{3348,-6835},{6307,2582},{58,-7672},{437,5027},{6433,4375},{7023,3259},{8990,-6672},{4911,3146},{2485,-4005},{2472,8032},{4831,-5918},{2905,196},{6675,6428},{9958,9639},{9319,4443},{7454,-7333},{3960,3761},{1601,-9630},{2441,2038},{5397,-1125},{6413,2420},{8486,1756},{2101,3398},{4902,938},{5745,-2626},{5323,-3071},{1456,8228},{7125,-1869},{1008,3435},{4122,6679},{4230,1577},{9346,8190},{1690,947},{4913,4132},{9337,310},{3007,-4249},{9083,-8507},{7507,-2464},{1243,-7591},{4826,-3011},{6135,-9851},{3918,7591},{8377,-2605},{5723,-4262},{830,-3803},{2417,-8587},{7774,8116},{5955,9465},{5415,868},{9949,-5247},{1179,2956},{6856,6614},{801,-9285},{4150,8397},{9476,8976},{1738,-4389},{9126,2008},{3202,3855},{9403,-4723},{9593,6585},{1475,-7989},{7998,-4399},{127,306},{1418,-4458},{1174,1367},{6647,-7647},{4323,3503},{8967,1477},{4218,9469},{6226,3694},{8446,-2036},{9305,3924},{9972,8860},{7779,5727},{4137,-6275},{8664,1964},{5736,-6985},{7566,-7785},{3321,8984},{4109,4495},{352,757},{3201,1027},{4260,-1480},{8856,4831},{7990,-4918},{8525,-7212},{3046,-5817},{6712,-630},{3043,-5509},{1449,-6468},{8216,-3534},{5497,304},{9481,3063},{8871,9154},{8399,2981},{1,8751},{90,-6798},{6131,-9298},{8075,-5013},{5533,6065},{70,-9589},{5205,9468},{946,1917},{5191,-6011},{2760,-7008},{3873,7329},{9458,9370},{7633,5291},{8785,2857},{797,3537},{2190,-9201},{2288,-7720},{353,4771},{9334,-1572},{9759,1220},{845,-3819},{7983,6050},{2001,-1071},{4319,-2808},{9270,7080},{6537,3143},{4409,2347},{8866,8394},{7639,4003},{7603,4788},{7540,-207},{5587,6181},{8425,5941},{952,-5888},{721,-2937},{5332,-8433},{3244,-6685},{3969,5246},{2244,8289},{8790,-8486},{1721,-4673},{1009,-3870},{7675,9875},{876,-8334},{231,-1520},{6454,7771},{4625,2042},{304,9403},{4335,-8743},{3515,-4944},{4672,8847},{2975,7917},{8514,6945},{3163,758},{1586,1953},{8624,-6693},{7281,9633},{5789,1308},{5861,-6983},{2974,-3908},{7849,-572},{215,-7525}}; cout << sln.numberOfBoomerangs(points) << endl; return 0; }
[ "qingyun.oracle@gmail.com" ]
qingyun.oracle@gmail.com
565a84d14033fc78aa3ba310f573d4e2a419a3dc
5d01a2a16078b78fbb7380a6ee548fc87a80e333
/ETS/Components/MM/EtsMmRisks/_IMmRvGrpAtomEvents_CP.H
5ee06bb22200a034047d4cd4eef8b282f0c88c44
[]
no_license
WilliamQf-AI/IVRMstandard
2fd66ae6e81976d39705614cfab3dbfb4e8553c5
761bbdd0343012e7367ea111869bb6a9d8f043c0
refs/heads/master
2023-04-04T22:06:48.237586
2013-04-17T13:56:40
2013-04-17T13:56:40
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,947
h
// Wizard-generated connection point proxy class // WARNING: This file may be regenerated by the wizard #pragma once template<class T> class CProxy_IMmRvGrpAtomEvents : public IConnectionPointImpl<T, &__uuidof(_IMmRvGrpAtomEvents)> { public: HRESULT Fire_OnError( LONG ErrorCode, BSTR Symbol, BSTR ErrorDescription) { HRESULT hr = S_OK; T * pThis = static_cast<T *>(this); int cConnections = m_vec.GetSize(); for (int iConnection = 0; iConnection < cConnections; iConnection++) { pThis->Lock(); CComPtr<IUnknown> punkConnection = m_vec.GetAt(iConnection); pThis->Unlock(); IDispatch * pConnection = static_cast<IDispatch *>(punkConnection.p); if (pConnection) { CComVariant avarParams[3]; avarParams[2] = ErrorCode; avarParams[2].vt = VT_I4; avarParams[1] = Symbol; avarParams[1].vt = VT_BSTR; avarParams[0] = ErrorDescription; avarParams[0].vt = VT_BSTR; CComVariant varResult; DISPPARAMS params = { avarParams, NULL, 3, 0 }; hr = pConnection->Invoke(1, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &params, &varResult, NULL, NULL); } } return hr; } HRESULT Fire_OnCalculation( LONG PositionNumber) { HRESULT hr = S_OK; T * pThis = static_cast<T *>(this); int cConnections = m_vec.GetSize(); for (int iConnection = 0; iConnection < cConnections; iConnection++) { pThis->Lock(); CComPtr<IUnknown> punkConnection = m_vec.GetAt(iConnection); pThis->Unlock(); IDispatch * pConnection = static_cast<IDispatch *>(punkConnection.p); if (pConnection) { CComVariant avarParams[1]; avarParams[0] = PositionNumber; avarParams[0].vt = VT_I4; CComVariant varResult; DISPPARAMS params = { avarParams, NULL, 1, 0 }; hr = pConnection->Invoke(2, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &params, &varResult, NULL, NULL); } } return hr; } };
[ "chuchev@egartech.com" ]
chuchev@egartech.com
ddbbcaa30874c15f8ec4f8fb4ee8f4fdccda485b
e1c054f36ea1eb0b2205d1dcfba2fc971731cb23
/doublesetting.h
eab52bd00e4e718e93547475f0d95b94054454cd
[]
no_license
62ocean/Qlink
fbc0c9ac69982786977e6e12e984d0db757aff64
56c9ea0013669c1061f8eb26aef86860d9cf8bae
refs/heads/master
2023-08-25T19:43:13.509283
2021-09-17T05:54:08
2021-09-17T05:54:08
407,416,557
0
0
null
null
null
null
UTF-8
C++
false
false
491
h
#ifndef DOUBLESETTING_H #define DOUBLESETTING_H #include <QDialog> #include <QButtonGroup> namespace Ui { class DoubleSetting; } class DoubleSetting : public QDialog { Q_OBJECT public: explicit DoubleSetting(QWidget *parent = nullptr); ~DoubleSetting(); private slots: void startGame(); void cancel(); private: Ui::DoubleSetting *ui; QButtonGroup *bgDensity, *bgCharacter1, *bgCharacter2; QButtonGroup *bg1,*bg2,*bg3,*bg4; }; #endif // DOUBLESETTING_H
[ "ocean62yjl@gmail.com" ]
ocean62yjl@gmail.com
44abd5774a1e12f49162f70b97c47115d5056451
27c1cb57c1608b65639c6194dc945a440df25473
/cg_exercise_04/cglib/lib/glm/glm/gtx/optimum_pow.inl
b4f12cb7b217e44b265a1b03d2d4698fbf517ebe
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause", "LicenseRef-scancode-happy-bunny" ]
permissive
brankyy/CG
41c7de721ffdba2aefda48db823521fb0d409710
217960504e0c723b73dab664e6ca0ccf3aeeeec8
refs/heads/master
2020-04-05T00:36:27.888286
2019-01-06T22:02:49
2019-01-06T22:02:49
156,395,913
0
0
null
null
null
null
UTF-8
C++
false
false
494
inl
/// @ref gtx_optimum_pow /// @file glm/gtx/optimum_pow.inl namespace glm { template<typename genType> GLM_FUNC_QUALIFIER genType pow2(genType const& x) { return x * x; } template<typename genType> GLM_FUNC_QUALIFIER genType pow3(genType const& x) { return x * x * x; } template<typename genType> GLM_FUNC_QUALIFIER genType pow4(genType const& x) { return (x * x) * (x * x); } }//namespace glm // CG_REVISION 4ad3af6a3d282d95a68e54f217347edc0b637413
[ "brankyy@gmail.com" ]
brankyy@gmail.com
4e22c4f7a4fe690c83ff43a530f220b787ae7782
a932933fc4cb848e7b3484e90cf8a6d26216cb09
/Module03/ex01/ScavTrap.cpp
1d1c9018fe126b7ffb3e1d1c7316d32556c41aca
[]
no_license
robijnvh/CPP
77c0d3e8db475c2fd0596fa2eda99e50bc8e6d59
52b0b958453df484b276c5306db6d6f3c7b62c99
refs/heads/master
2023-05-03T11:07:45.368207
2021-05-26T09:44:44
2021-05-26T09:44:44
283,137,046
0
0
null
null
null
null
UTF-8
C++
false
false
5,013
cpp
/* ************************************************************************** */ /* */ /* :::::::: */ /* ScavTrap.cpp :+: :+: */ /* +:+ */ /* By: rvan-hou <rvan-hou@student.42.fr> +#+ */ /* +#+ */ /* Created: 2020/08/01 17:38:06 by robijnvanho #+# #+# */ /* Updated: 2020/09/29 11:29:00 by rvan-hou ######## odam.nl */ /* */ /* ************************************************************************** */ #include "ScavTrap.hpp" ScavTrap::ScavTrap(std::string name) { std::cout << "Hi! I'm ScavTrap " << name << "!" << std::endl; this->_name = name; this->hit_points = 100; this->max_hit_points = 100; this->energy_points = 50; this->max_energy_points = 50; this->level = 1; this->melee_att_damage = 20; this->ranged_att_damage = 15; this->armour_damage_red = 3; return ; } ScavTrap::ScavTrap() { std::cout << "Creating ScavTrap... Jo-88" << std::endl; this->_name = "Jo-88"; this->hit_points = 100; this->max_hit_points = 100; this->energy_points = 50; this->max_energy_points = 50; this->level = 1; this->melee_att_damage = 20; this->ranged_att_damage = 15; this->armour_damage_red = 3; } ScavTrap::ScavTrap(const ScavTrap& scavTrap) { *this = scavTrap; } ScavTrap::~ScavTrap() { std::cout << this->_name << " has excited the game..." << std::endl; } ScavTrap& ScavTrap::operator=(ScavTrap const &obj) { this->_name = obj._name; this->hit_points = obj.hit_points; this->max_hit_points = obj.max_hit_points; this->energy_points = obj.energy_points; this->max_energy_points = obj.max_energy_points; this->level = obj.level; this->melee_att_damage = obj.melee_att_damage; this->ranged_att_damage = obj.ranged_att_damage; this->armour_damage_red = obj.armour_damage_red; return (*this); } void ScavTrap::meleeAttack(std::string const &target) { std::cout << "SCAV-TP " << this->_name << " attacks " << target \ << " with melee, causing " << this->melee_att_damage \ << " points of EXTREME damage !" << std::endl; return ; } void ScavTrap::rangedAttack(std::string const & target) { std::cout << "SCAV-TP " << this->_name << " attacks " << target \ << " at range, causing " << this->ranged_att_damage \ << " points of EXTREME damage !" << std::endl; return ; } void ScavTrap::takeDamage(unsigned int amount) { unsigned int damage; if (amount <= armour_damage_red) damage = 0; else damage = amount - armour_damage_red; if (damage > hit_points) { hit_points = 0; std::cout << _name << ">> Game over..." << std::endl; } else { hit_points -= damage; std::cout << _name << " >> That's all?! Try again!" << std::endl; std::cout << "Armour reduction: " << armour_damage_red << std::endl; std::cout << "Damage: " << damage << std::endl; std::cout << "Hit Points: " << hit_points << "|" \ << max_hit_points << std::endl; } return ; } void ScavTrap::beRepaired(unsigned int amount) { if (energy_points < amount) { std::cout << _name << " >> Not enough energy..." << std::endl; } else { energy_points -= amount; hit_points += amount; std::cout << _name << " >> Busy repairing..." << std::endl; std::cout << "Hit Points: " << hit_points << std::endl; } std::cout << "Energy Points: " << energy_points << std::endl; return ; } void ScavTrap::challengeNewcomer(std::string const & target) { int index; std::string challenge[] = { "Go for a nice relaxing walk", "Go find another opponent, you'll never win", "Give me 100+% during the eval", "Just keep going", "You're lucky, you're dismissed" }; srand(time(NULL)); index = rand() % 5; this->challenge = challenge[index]; std::cout << this->_name << ": Your challenge is: " << this->challenge \ << "! Have fun " << target << std::endl; return ; } std::string ScavTrap::getName() { return (this->_name); } unsigned int ScavTrap::getMeleeAttackDamage() { return (this->melee_att_damage); } unsigned int ScavTrap::getRangedAttackDamage() { return (this->ranged_att_damage); } unsigned int ScavTrap::getArmourDamageReduction() { return (this->armour_damage_red); } std::string ScavTrap::getChallenge(void) { return (this->challenge); }
[ "rvan-hou@f0r3s26.codam.nl" ]
rvan-hou@f0r3s26.codam.nl
b632f39229a96dd9634c1624a0e1b3348c8ebd53
00fc56cab43c3eba4e3d6f724a2754466bf6312f
/mod5/project/src/calcBandI.cpp
c8157f0cf2a3801dc4d1cbd8964b6c42f92868a0
[]
no_license
JohnJ-Led/cpp_based_projects
b6ec697f03172dc7bc41aac9ddaa341ca7367d31
3b9d990edab33dec9b25cc26516af7fb1a243553
refs/heads/master
2023-06-21T01:19:18.802716
2020-08-23T22:47:26
2020-08-23T22:47:26
289,593,078
0
0
null
null
null
null
UTF-8
C++
false
false
2,177
cpp
#include <iostream> #include <iomanip> #include <ios> #include "calcBandI.h" void calBandINoAddDeposits(double openAmt, double interestRate, int yearCount ){ //int monthCount = yearCount * 12; double earnedInterest; double totalEarned; double totalInterest = 0; int i; int j; double temp = openAmt; for(j = 0; j < yearCount; ++j){ for(i = 0; i < 12; ++i){ earnedInterest = temp * ((interestRate/100)/12); totalEarned = temp + earnedInterest; totalInterest = totalInterest + earnedInterest; temp = totalEarned; } std::cout << std::fixed << std::setprecision(2) << std::setw(6) << std::right << j + 1; std::cout << std::setw(22 - std::to_string(int(totalEarned)).length() -1) << std::right << "$"; std::cout << totalEarned; std::cout << std::setw(27 - std::to_string(int(totalInterest)).length()) << std::right << "$" << totalInterest << std::endl; std::cout << std::endl; temp = totalEarned; totalInterest =0; } } void calBandIAddDeposits(double openAmt, double depAmt, double interestRate, int yearCount){ //int monthCount = yearCount * 12; double earnedInterest; double totalEarned; double totalInterest = 0; int i; int j; double temp = openAmt; for(j = 0; j < yearCount; ++j){ for(i = 0; i < 12; ++i){ earnedInterest = (temp + depAmt) * ((interestRate/100)/12); totalEarned = temp + depAmt + earnedInterest; //std::cout << earnedInterest << "<--Earned Interest" << std::endl;; totalInterest = totalInterest + earnedInterest; temp = totalEarned; } std::cout << std::fixed << std::setprecision(2) << std::setw(6) << std::right << j + 1; std::cout << std::setw(22 - std::to_string(int(totalEarned)).length() -1) << std::right << "$"; std::cout << totalEarned; std::cout << std::setw(27 - std::to_string(int(totalInterest)).length()) << std::right << "$" << totalInterest << std::endl; std::cout << std::endl; temp = totalEarned; totalInterest =0; } }
[ "jacob.ledthebox@gmail.com" ]
jacob.ledthebox@gmail.com
dd5ee657c673eb566f9cdc8dd4de35f69c1d6c29
025b6f6daa885a43705876b0401b32d1713ca7ad
/roamfree/ROAMestimation/include/ROAMestimation/SpatialIndex/SpatialIndex.h
33ad1bee41da895dd52f348db180b1dc167d14ac
[]
no_license
AIRLab-POLIMI/ROAMFREE
dcd1c3e1ff7de7905e4bad2a018178d1a8d6263a
a0f875a4e30455758b33b8dde2b13bdddd7302e6
refs/heads/master
2023-03-10T02:31:39.737671
2022-09-23T08:53:24
2022-09-23T08:53:24
39,181,027
33
12
null
null
null
null
UTF-8
C++
false
false
2,415
h
/* Copyright (c) 2013-2016 Politecnico di Milano. All rights reserved. This program and the accompanying materials are made available under the terms of the GNU Lesser Public License v3 which accompanies this distribution, and is available at https://www.gnu.org/licenses/lgpl.html Contributors: Davide A. Cucci (davide.cucci@epfl.ch) */ /* * SpatialIndex.h * * Created on: Mar 20, 2014 * Author: davide */ #ifndef SPATIALINDEX_H_ #define SPATIALINDEX_H_ #include "types.h" namespace ROAMestimation { class SpatialIndex { public: /** * \brief builds a spatial index * * @param poses the set of poses among which there are the ones which have to go into the spatial index * * NOTES: * * how to test if a vertex has to be kept into the spatial index or not * * PoseVertex *v; // a pose vertex * PoseVertexWrapper w(v); * if (w.getKeepSpatialIndex() == true) ... * * how to get the {x, y, z, qw, qx, qy, qz} estimate of a pose vertex * * PoseVertex *v; * const Eigen::Vector &x = v->estimate(); * if (std::sqrt( x(0)*x(0) + x(1)*x(1) ) < d ) ... * */ void build(const PoseMap &poses); /** * \brief performs a rande search query to the spatial index * * by means of the provided output iterator, this method fills a collection of the PoseVertex which are * within d distance from x, with respect to a certain metric. The metric is to be defined in sublcasses. * * @param x a vector of 7 elements {x, y, z, qw, qx, qy, qz} encoding pose and orientation of the sample * @param d max distance * @param outIter the output_iterator by means of which this methods fills the output collection * * NOTES: * * how to add a PoseVertex to the output collection * * PoseVertex *toadd; * OutputIterator outIter * *(outIter++) = toadd; */ template <typename OutputIterator> void rangeSearch(const Eigen::VectorXd &x1, double d, OutputIterator outIter) { assert(x1.size() == 7); // people has to give me pose samples for (PoseMap::const_iterator it = _index.begin(); it !=_index.end(); ++it) { const Eigen::VectorXd &x2 = it->second->estimate(); if (euclidean2DDistance(x1,x2) < d) { *(outIter++) = it->second; } } } protected: PoseMap _index; double euclidean2DDistance(const Eigen::VectorXd &x1, const Eigen::VectorXd &x2) const ; }; } /* namespace ROAMestimation */ #endif /* SPATIALINDEX_H_ */
[ "davide.cucci@epfl.ch" ]
davide.cucci@epfl.ch
1a14cdf902e9c1fdb0f9ce8ef307201dc843e365
2b31b6a58a6677f23422a07b9aebbc0ae89e8cb0
/libvis/src/libvis/image_io_netpbm.h
d409e7ae857a51df465ee92b2c49a4d9e58d97d1
[ "BSD-3-Clause" ]
permissive
SnowCarter/surfelmeshing
eef27c8d8797432f0706502e8507e45adee7323b
5b1c8d160c1d64f5144b58309b725812d8e6e3ab
refs/heads/master
2020-04-03T06:25:35.202401
2018-10-02T12:31:55
2018-10-02T12:31:55
155,074,298
1
0
BSD-3-Clause
2018-10-28T13:30:43
2018-10-28T13:30:42
null
UTF-8
C++
false
false
2,830
h
// Copyright 2018 ETH Zürich, Thomas Schöps // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // // 2. Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // // 3. Neither the name of the copyright holder nor the names of its contributors // may be used to endorse or promote products derived from this software // without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. #pragma once #include "libvis/image_io.h" namespace vis { // Image IO for netpbm formats (pbm, pgm, ppm, pnm). class ImageIONetPBM : public ImageIO { public: virtual ImageFormatSupport GetSupportForFormat(ImageFormat format) const override { if (format == ImageFormat::kPBM || format == ImageFormat::kPGM || format == ImageFormat::kPPM || format == ImageFormat::kPNM) { return ImageFormatSupport::kComplete; } else { return ImageFormatSupport::kNone; } } virtual bool Read(const std::string& image_file_name, Image<u8>* image) const override; virtual bool Read(const std::string& image_file_name, Image<u16>* image) const override; virtual bool Read(const std::string& image_file_name, Image<Vec3u8>* image) const override; virtual bool Read(const std::string& image_file_name, Image<Vec4u8>* image) const override; virtual bool Write(const std::string& image_file_name, const Image<u8>& image) const override; virtual bool Write(const std::string& image_file_name, const Image<u16>& image) const override; virtual bool Write(const std::string& image_file_name, const Image<Vec3u8>& image) const override; virtual bool Write(const std::string& image_file_name, const Image<Vec4u8>& image) const override; }; }
[ "tom.schoeps@gmail.com" ]
tom.schoeps@gmail.com
59cbfc7165a8e55e41184e69a9d93bd41550a2e1
2b5c710c9b372ad7e4d49e16852944aaf8926a07
/DerivedSources/WebCore/JSSVGViewSpec.cpp
cb1ff2282fd125dafd649a69cadd0d615f5056fc
[ "Apache-2.0" ]
permissive
FMSoftCN/mdolphin-core
8ce68f1055d3a38f6e46bd311f2c20b7afc183b8
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
refs/heads/master
2022-04-09T22:16:12.602078
2020-02-11T10:06:11
2020-02-11T10:06:11
92,716,592
5
0
null
null
null
null
UTF-8
C++
false
false
10,790
cpp
/* This file is part of the WebKit open source project. This file has been generated by generate-bindings.pl. DO NOT MODIFY! This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "config.h" #if ENABLE(SVG) #include "JSSVGViewSpec.h" #include "JSSVGAnimatedPreserveAspectRatio.h" #include "JSSVGAnimatedRect.h" #include "JSSVGElement.h" #include "JSSVGTransformList.h" #include "KURL.h" #include "SVGElement.h" #include "SVGTransformList.h" #include "SVGViewSpec.h" #include <runtime/JSString.h> #include <wtf/GetPtr.h> using namespace JSC; namespace WebCore { ASSERT_CLASS_FITS_IN_CELL(JSSVGViewSpec); /* Hash table */ #if ENABLE(JIT) #define THUNK_GENERATOR(generator) , generator #else #define THUNK_GENERATOR(generator) #endif static const HashTableValue JSSVGViewSpecTableValues[10] = { { "transform", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGViewSpecTransform), (intptr_t)0 THUNK_GENERATOR(0) }, { "viewTarget", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGViewSpecViewTarget), (intptr_t)0 THUNK_GENERATOR(0) }, { "viewBoxString", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGViewSpecViewBoxString), (intptr_t)0 THUNK_GENERATOR(0) }, { "preserveAspectRatioString", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGViewSpecPreserveAspectRatioString), (intptr_t)0 THUNK_GENERATOR(0) }, { "transformString", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGViewSpecTransformString), (intptr_t)0 THUNK_GENERATOR(0) }, { "viewTargetString", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGViewSpecViewTargetString), (intptr_t)0 THUNK_GENERATOR(0) }, { "viewBox", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGViewSpecViewBox), (intptr_t)0 THUNK_GENERATOR(0) }, { "preserveAspectRatio", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGViewSpecPreserveAspectRatio), (intptr_t)0 THUNK_GENERATOR(0) }, { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGViewSpecConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, { 0, 0, 0, 0 THUNK_GENERATOR(0) } }; #undef THUNK_GENERATOR static JSC_CONST_HASHTABLE HashTable JSSVGViewSpecTable = { 33, 31, JSSVGViewSpecTableValues, 0 }; /* Hash table for constructor */ #if ENABLE(JIT) #define THUNK_GENERATOR(generator) , generator #else #define THUNK_GENERATOR(generator) #endif static const HashTableValue JSSVGViewSpecConstructorTableValues[1] = { { 0, 0, 0, 0 THUNK_GENERATOR(0) } }; #undef THUNK_GENERATOR static JSC_CONST_HASHTABLE HashTable JSSVGViewSpecConstructorTable = { 1, 0, JSSVGViewSpecConstructorTableValues, 0 }; class JSSVGViewSpecConstructor : public DOMConstructorObject { public: JSSVGViewSpecConstructor(JSC::ExecState*, JSDOMGlobalObject*); virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); static const JSC::ClassInfo s_info; static PassRefPtr<JSC::Structure> createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype) { return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info); } protected: static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; }; const ClassInfo JSSVGViewSpecConstructor::s_info = { "SVGViewSpecConstructor", &DOMConstructorObject::s_info, &JSSVGViewSpecConstructorTable, 0 }; JSSVGViewSpecConstructor::JSSVGViewSpecConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) : DOMConstructorObject(JSSVGViewSpecConstructor::createStructure(globalObject->globalData(), globalObject->objectPrototype()), globalObject) { ASSERT(inherits(&s_info)); putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGViewSpecPrototype::self(exec, globalObject), DontDelete | ReadOnly); } bool JSSVGViewSpecConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) { return getStaticValueSlot<JSSVGViewSpecConstructor, DOMObject>(exec, &JSSVGViewSpecConstructorTable, this, propertyName, slot); } bool JSSVGViewSpecConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) { return getStaticValueDescriptor<JSSVGViewSpecConstructor, DOMObject>(exec, &JSSVGViewSpecConstructorTable, this, propertyName, descriptor); } /* Hash table for prototype */ #if ENABLE(JIT) #define THUNK_GENERATOR(generator) , generator #else #define THUNK_GENERATOR(generator) #endif static const HashTableValue JSSVGViewSpecPrototypeTableValues[1] = { { 0, 0, 0, 0 THUNK_GENERATOR(0) } }; #undef THUNK_GENERATOR static JSC_CONST_HASHTABLE HashTable JSSVGViewSpecPrototypeTable = { 1, 0, JSSVGViewSpecPrototypeTableValues, 0 }; const ClassInfo JSSVGViewSpecPrototype::s_info = { "SVGViewSpecPrototype", &JSC::JSObjectWithGlobalObject::s_info, &JSSVGViewSpecPrototypeTable, 0 }; JSObject* JSSVGViewSpecPrototype::self(ExecState* exec, JSGlobalObject* globalObject) { return getDOMPrototype<JSSVGViewSpec>(exec, globalObject); } const ClassInfo JSSVGViewSpec::s_info = { "SVGViewSpec", &JSSVGZoomAndPan::s_info, &JSSVGViewSpecTable, 0 }; JSSVGViewSpec::JSSVGViewSpec(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGViewSpec> impl) : JSSVGZoomAndPan(structure, globalObject, impl) { ASSERT(inherits(&s_info)); } JSObject* JSSVGViewSpec::createPrototype(ExecState* exec, JSGlobalObject* globalObject) { return new (exec) JSSVGViewSpecPrototype(globalObject, JSSVGViewSpecPrototype::createStructure(exec->globalData(), JSSVGZoomAndPanPrototype::self(exec, globalObject))); } bool JSSVGViewSpec::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) { return getStaticValueSlot<JSSVGViewSpec, Base>(exec, &JSSVGViewSpecTable, this, propertyName, slot); } bool JSSVGViewSpec::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) { return getStaticValueDescriptor<JSSVGViewSpec, Base>(exec, &JSSVGViewSpecTable, this, propertyName, descriptor); } JSValue jsSVGViewSpecTransform(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGViewSpec* castedThis = static_cast<JSSVGViewSpec*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGViewSpec* imp = static_cast<SVGViewSpec*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(SVGTransformListPropertyTearOff::create(imp->transform()))); return result; } JSValue jsSVGViewSpecViewTarget(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGViewSpec* castedThis = static_cast<JSSVGViewSpec*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGViewSpec* imp = static_cast<SVGViewSpec*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->viewTarget())); return result; } JSValue jsSVGViewSpecViewBoxString(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGViewSpec* castedThis = static_cast<JSSVGViewSpec*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGViewSpec* imp = static_cast<SVGViewSpec*>(castedThis->impl()); JSValue result = jsString(exec, imp->viewBoxString()); return result; } JSValue jsSVGViewSpecPreserveAspectRatioString(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGViewSpec* castedThis = static_cast<JSSVGViewSpec*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGViewSpec* imp = static_cast<SVGViewSpec*>(castedThis->impl()); JSValue result = jsString(exec, imp->preserveAspectRatioString()); return result; } JSValue jsSVGViewSpecTransformString(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGViewSpec* castedThis = static_cast<JSSVGViewSpec*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGViewSpec* imp = static_cast<SVGViewSpec*>(castedThis->impl()); JSValue result = jsString(exec, imp->transformString()); return result; } JSValue jsSVGViewSpecViewTargetString(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGViewSpec* castedThis = static_cast<JSSVGViewSpec*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGViewSpec* imp = static_cast<SVGViewSpec*>(castedThis->impl()); JSValue result = jsString(exec, imp->viewTargetString()); return result; } JSValue jsSVGViewSpecViewBox(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGViewSpec* castedThis = static_cast<JSSVGViewSpec*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGViewSpec* imp = static_cast<SVGViewSpec*>(castedThis->impl()); RefPtr<SVGAnimatedRect> obj = imp->viewBoxAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return result; } JSValue jsSVGViewSpecPreserveAspectRatio(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGViewSpec* castedThis = static_cast<JSSVGViewSpec*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGViewSpec* imp = static_cast<SVGViewSpec*>(castedThis->impl()); RefPtr<SVGAnimatedPreserveAspectRatio> obj = imp->preserveAspectRatioAnimated(); JSValue result = toJS(exec, castedThis->globalObject(), obj.get()); return result; } JSValue jsSVGViewSpecConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGViewSpec* domObject = static_cast<JSSVGViewSpec*>(asObject(slotBase)); return JSSVGViewSpec::getConstructor(exec, domObject->globalObject()); } JSValue JSSVGViewSpec::getConstructor(ExecState* exec, JSGlobalObject* globalObject) { return getDOMConstructor<JSSVGViewSpecConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject)); } } #endif // ENABLE(SVG)
[ "vincent@minigui.org" ]
vincent@minigui.org
da25ac7845cd82a3613baceebe9a0d02e08766fe
7619eda583a979c6078c38d57b0fbeaaff44cc0a
/Pods/MMKVCore/Core/MemoryFile.cpp
e581dcb95f178bff38f8561b9b4e68d22a920f83
[ "BSD-3-Clause", "Zlib", "LicenseRef-scancode-openssl", "LicenseRef-scancode-ssleay-windows", "OpenSSL", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
mohsinalimat/WeChatSwift
f6ca421a4222b14016d2fe67dccf933788c287d0
574d0fd2b95d5fb79d978b9cd8652570fd42b3e8
refs/heads/master
2021-11-22T23:08:25.764547
2021-10-08T08:47:48
2021-10-08T08:47:48
217,524,779
1
0
MIT
2019-10-25T12:03:40
2019-10-25T12:03:40
null
UTF-8
C++
false
false
8,309
cpp
/* * Tencent is pleased to support the open source community by making * MMKV available. * * Copyright (C) 2018 THL A29 Limited, a Tencent company. * All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use * this file except in compliance with the License. You may obtain a copy of * the License at * * https://opensource.org/licenses/BSD-3-Clause * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "MemoryFile.h" #ifndef MMKV_WIN32 # include "InterProcessLock.h" # include "MMBuffer.h" # include "MMKVLog.h" # include "ScopedLock.hpp" # include <cerrno> # include <fcntl.h> # include <sys/mman.h> # include <sys/stat.h> # include <unistd.h> using namespace std; namespace mmkv { static bool getFileSize(int fd, size_t &size); # ifdef MMKV_ANDROID extern size_t ASharedMemory_getSize(int fd); # else MemoryFile::MemoryFile(const MMKVPath_t &path) : m_name(path), m_fd(-1), m_ptr(nullptr), m_size(0) { reloadFromFile(); } # endif // MMKV_ANDROID # ifdef MMKV_IOS void tryResetFileProtection(const string &path); # endif bool MemoryFile::truncate(size_t size) { if (m_fd < 0) { return false; } if (size == m_size) { return true; } # ifdef MMKV_ANDROID if (m_fileType == MMFILE_TYPE_ASHMEM) { if (size > m_size) { MMKVError("ashmem %s reach size limit:%zu, consider configure with larger size", m_name.c_str(), m_size); } else { MMKVInfo("no way to trim ashmem %s from %zu to smaller size %zu", m_name.c_str(), m_size, size); } return false; } # endif // MMKV_ANDROID auto oldSize = m_size; m_size = size; // round up to (n * pagesize) if (m_size < DEFAULT_MMAP_SIZE || (m_size % DEFAULT_MMAP_SIZE != 0)) { m_size = ((m_size / DEFAULT_MMAP_SIZE) + 1) * DEFAULT_MMAP_SIZE; } if (::ftruncate(m_fd, static_cast<off_t>(m_size)) != 0) { MMKVError("fail to truncate [%s] to size %zu, %s", m_name.c_str(), m_size, strerror(errno)); m_size = oldSize; return false; } if (m_size > oldSize) { if (!zeroFillFile(m_fd, oldSize, m_size - oldSize)) { MMKVError("fail to zeroFile [%s] to size %zu, %s", m_name.c_str(), m_size, strerror(errno)); m_size = oldSize; return false; } } if (m_ptr) { if (munmap(m_ptr, oldSize) != 0) { MMKVError("fail to munmap [%s], %s", m_name.c_str(), strerror(errno)); } } auto ret = mmap(); if (!ret) { doCleanMemoryCache(true); } return ret; } bool MemoryFile::msync(SyncFlag syncFlag) { if (m_ptr) { auto ret = ::msync(m_ptr, m_size, syncFlag ? MS_SYNC : MS_ASYNC); if (ret == 0) { return true; } MMKVError("fail to msync [%s], %s", m_name.c_str(), strerror(errno)); } return false; } bool MemoryFile::mmap() { m_ptr = (char *) ::mmap(m_ptr, m_size, PROT_READ | PROT_WRITE, MAP_SHARED, m_fd, 0); if (m_ptr == MAP_FAILED) { MMKVError("fail to mmap [%s], %s", m_name.c_str(), strerror(errno)); m_ptr = nullptr; return false; } return true; } void MemoryFile::reloadFromFile() { # ifdef MMKV_ANDROID if (m_fileType == MMFILE_TYPE_ASHMEM) { return; } # endif if (isFileValid()) { MMKVWarning("calling reloadFromFile while the cache [%s] is still valid", m_name.c_str()); MMKV_ASSERT(0); clearMemoryCache(); } m_fd = open(m_name.c_str(), O_RDWR | O_CREAT | O_CLOEXEC, S_IRWXU); if (m_fd < 0) { MMKVError("fail to open:%s, %s", m_name.c_str(), strerror(errno)); } else { FileLock fileLock(m_fd); InterProcessLock lock(&fileLock, ExclusiveLockType); SCOPED_LOCK(&lock); mmkv::getFileSize(m_fd, m_size); // round up to (n * pagesize) if (m_size < DEFAULT_MMAP_SIZE || (m_size % DEFAULT_MMAP_SIZE != 0)) { size_t roundSize = ((m_size / DEFAULT_MMAP_SIZE) + 1) * DEFAULT_MMAP_SIZE; truncate(roundSize); } else { auto ret = mmap(); if (!ret) { doCleanMemoryCache(true); } } # ifdef MMKV_IOS tryResetFileProtection(m_name); # endif } } void MemoryFile::doCleanMemoryCache(bool forceClean) { # ifdef MMKV_ANDROID if (m_fileType == MMFILE_TYPE_ASHMEM && !forceClean) { return; } # endif if (m_ptr && m_ptr != MAP_FAILED) { if (munmap(m_ptr, m_size) != 0) { MMKVError("fail to munmap [%s], %s", m_name.c_str(), strerror(errno)); } } m_ptr = nullptr; if (m_fd >= 0) { if (::close(m_fd) != 0) { MMKVError("fail to close [%s], %s", m_name.c_str(), strerror(errno)); } } m_fd = -1; m_size = 0; } size_t MemoryFile::getActualFileSize() { # ifdef MMKV_ANDROID if (m_fileType == MMFILE_TYPE_ASHMEM) { return ASharedMemory_getSize(m_fd); } # endif size_t size = 0; mmkv::getFileSize(m_fd, size); return size; } bool isFileExist(const string &nsFilePath) { if (nsFilePath.empty()) { return false; } struct stat temp = {}; return lstat(nsFilePath.c_str(), &temp) == 0; } extern bool mkPath(const MMKVPath_t &str) { char *path = strdup(str.c_str()); struct stat sb = {}; bool done = false; char *slash = path; while (!done) { slash += strspn(slash, "/"); slash += strcspn(slash, "/"); done = (*slash == '\0'); *slash = '\0'; if (stat(path, &sb) != 0) { if (errno != ENOENT || mkdir(path, 0777) != 0) { MMKVWarning("%s : %s", path, strerror(errno)); free(path); return false; } } else if (!S_ISDIR(sb.st_mode)) { MMKVWarning("%s: %s", path, strerror(ENOTDIR)); free(path); return false; } *slash = '/'; } free(path); return true; } MMBuffer *readWholeFile(const MMKVPath_t &path) { MMBuffer *buffer = nullptr; int fd = open(path.c_str(), O_RDONLY | O_CLOEXEC); if (fd >= 0) { auto fileLength = lseek(fd, 0, SEEK_END); if (fileLength > 0) { buffer = new MMBuffer(static_cast<size_t>(fileLength)); lseek(fd, 0, SEEK_SET); auto readSize = read(fd, buffer->getPtr(), static_cast<size_t>(fileLength)); if (readSize != -1) { //fileSize = readSize; } else { MMKVWarning("fail to read %s: %s", path.c_str(), strerror(errno)); delete buffer; buffer = nullptr; } } close(fd); } else { MMKVWarning("fail to open %s: %s", path.c_str(), strerror(errno)); } return buffer; } bool zeroFillFile(int fd, size_t startPos, size_t size) { if (fd < 0) { return false; } if (lseek(fd, static_cast<off_t>(startPos), SEEK_SET) < 0) { MMKVError("fail to lseek fd[%d], error:%s", fd, strerror(errno)); return false; } static const char zeros[4096] = {}; while (size >= sizeof(zeros)) { if (write(fd, zeros, sizeof(zeros)) < 0) { MMKVError("fail to write fd[%d], error:%s", fd, strerror(errno)); return false; } size -= sizeof(zeros); } if (size > 0) { if (write(fd, zeros, size) < 0) { MMKVError("fail to write fd[%d], error:%s", fd, strerror(errno)); return false; } } return true; } static bool getFileSize(int fd, size_t &size) { struct stat st = {}; if (fstat(fd, &st) != -1) { size = (size_t) st.st_size; return true; } return false; } size_t getPageSize() { return static_cast<size_t>(getpagesize()); } } // namespace mmkv #endif // MMKV_WIN32
[ "xshf87@126.com" ]
xshf87@126.com
44f9bf7a3a5eb18bba1fb618925fe289fcdf7dac
4d8941141571cca0b67f9d232bc29a3808029982
/winter training/winter training day 3 A/main.cpp
f8d848028b3e0e54acbe989e0d33651a27f2404d
[]
no_license
2003pro/code-of-acm
38a10bf7504f895bffc74b82b3940d659008dedd
6797ab837c9d41ed4db2faf0e0e57f7afb2de5ae
refs/heads/master
2021-01-19T21:58:08.533594
2017-04-27T10:47:34
2017-04-27T10:47:34
88,726,025
3
0
null
null
null
null
UTF-8
C++
false
false
1,129
cpp
#include <bits/stdc++.h> using namespace std; typedef pair<int ,int> pii; vector<pii> sk; queue <string> p; stack <char> p1; stack <int> pp; string tt; char s1[1003]; int main() { string s,s2; while(cin >> s){ if(s[0] == '(') s = s.substr(1,s.length()-2); int l = s.length(),i,vis=0,flag = 0; strcpy(s1,s.c_str()); for(int i = 0;i < l;i++){ if(s1[i] != '(' && s1[i] != ')') p1.push(s1[i]); else { if(s1[i] == '(') pp.push(i); else { pii t;t.first = pp.top();t.second = i;pp.pop(); sk.push_back(t); } } } for(int i = 0;i < sk.size();i++){ if(sk[i-1].first - sk[i].first == 1 && sk[i].second - sk[i-1].second == 1){ int t1 = sk[i].first,t2 = sk[i].second; s1[t1] = '0';s1[t2] = '0'; } // printf("%d %d\n",sk[i].first,sk[i].second); } for(int i = 0;i < l;i++) { if(s1[i] != '0') s2 += s1[i]; } strcpy(s1,s2.c_str()); } return 0; }
[ "张骥鹏" ]
张骥鹏
5ce09bd348593139b714480c538bf1dcb165d861
4ec84d397a741bef5d390a638046086577461900
/game/model/message_processor/message_processor.h
e4c6250e456b5217c3df93a17ed6daa4f585ebb3
[]
no_license
luchengbiao/xqs_game
186934d41b10a085650bf45bc0a496fb52d44582
ce447bb923188a3ae13710033bcb074529a0d2e4
refs/heads/master
2020-04-05T06:17:55.699468
2019-03-21T10:40:26
2019-03-21T10:40:26
156,632,557
0
0
null
null
null
null
UTF-8
C++
false
false
1,713
h
#ifndef __GAME_MODEL_MESSAGE_PROCESSOR_MESSAGE_PROCESSOR_H__ #define __GAME_MODEL_MESSAGE_PROCESSOR_MESSAGE_PROCESSOR_H__ #include <stdint.h> #include <memory> #include <string> #include <QObject> #include "base/framework/observer_list.h" #include "game/macros.h" #include "channel_manager/channel_manager_global.h" #include "protocol/command/base/command_fwd.h" GAME_NAMESPACE_BEGIN class MessageProcessor : public QObject { Q_OBJECT using CommandFactoryPtr = std::shared_ptr<proto::CommandFactory>; public: class CommandObserver { public: virtual ~CommandObserver() = default; virtual void OnCommand(const CommandSharedPtr& cmd_ptr, bool sender_is_self) = 0; }; using CommandObserverList = ObserverList<CommandObserver>; public: MessageProcessor(const std::string& msg_channel_account, NetworkServiceType msg_channel_service, const CommandFactoryPtr& cmd_factory); ~MessageProcessor(); MessageProcessor(const MessageProcessor&) = delete; MessageProcessor& operator=(const MessageProcessor&) = delete; void AddCommandObserver(CommandObserver*); void RemoveCommandObserver(CommandObserver*); private: bool ChannelMessageIsEncoded() const { return msg_channel_service_ != SWITCH_NETWORK_NETEASE; } void DecodeMessageIfEncoded(std::string& msg); void HandleCommandGroup(const proto::CommandGroup& cmd_group, bool sender_is_self); private slots: void SlotAgoraMessageChannel(std::string channel_id, std::string account, uint32_t uid, std::string msg); private: std::string msg_channel_account_; NetworkServiceType msg_channel_service_{ SWITCH_NETWORK_AGORA }; CommandFactoryPtr cmd_factory_; CommandObserverList cmd_observers_; }; GAME_NAMESPACE_END #endif
[ "993925668@qq.com" ]
993925668@qq.com
824429cee4c8330dcf833c5cd8e3c8a63bea3b41
a58ac1d4f118050f758281b72fb51f6fd37d8bd5
/src/fsync.hpp
f62f90b9848a2da6e81e042a96971cb691609e54
[ "MIT" ]
permissive
hilbix/mergerfs
cd9264908d478b5a1d801d1a0250ce4f812df0ee
0165fb24d40c5aa28eadf450df5d40f7c554c52e
refs/heads/master
2021-01-13T06:49:34.416501
2015-12-08T04:57:24
2015-12-08T04:57:24
47,934,663
0
0
null
2015-12-13T20:15:18
2015-12-13T20:15:17
null
UTF-8
C++
false
false
1,346
hpp
/* The MIT License (MIT) Copyright (c) 2014 Antonio SJ Musumeci <trapexit@spawn.link> 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. */ #include <fuse.h> namespace mergerfs { namespace fuse { int fsync(const char *fusepath, int isdatasync, fuse_file_info *fi); } }
[ "trapexit@spawn.link" ]
trapexit@spawn.link
266edb5921ee1e456427f24f2764e57d9f09c646
90d2a91fd4931c6e0c8aca344c11dc43d7c00ebc
/3rd-party/yaml-cpp/src/exceptions.cpp
f298e54aa00e8ec053c977c7929baaed8fb2985a
[ "MIT", "OML" ]
permissive
NavInfoNC/ncserver
7fc412f967f9ccf15d2b6fc34513e6be57581d75
6713e6b78ea21d03d144652b48afe8b46db1e63c
refs/heads/master
2022-01-02T05:25:40.615189
2021-12-29T10:03:41
2021-12-29T10:03:41
196,983,258
15
9
MIT
2021-12-02T09:42:49
2019-07-15T11:12:00
C++
UTF-8
C++
false
false
2,147
cpp
/* Copyright (c) 2008-2015 Jesse Beder. 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. */ #include "yaml-cpp/exceptions.h" // This is here for compatibility with older versions of Visual Studio // which don't support noexcept #if defined(_MSC_VER) && _MSC_VER < 1900 #define YAML_CPP_NOEXCEPT _NOEXCEPT #else #define YAML_CPP_NOEXCEPT noexcept #endif namespace YAML { // These destructors are defined out-of-line so the vtable is only emitted once. Exception::~Exception() YAML_CPP_NOEXCEPT {} ParserException::~ParserException() YAML_CPP_NOEXCEPT {} RepresentationException::~RepresentationException() YAML_CPP_NOEXCEPT {} InvalidScalar::~InvalidScalar() YAML_CPP_NOEXCEPT {} KeyNotFound::~KeyNotFound() YAML_CPP_NOEXCEPT {} InvalidNode::~InvalidNode() YAML_CPP_NOEXCEPT {} BadConversion::~BadConversion() YAML_CPP_NOEXCEPT {} BadDereference::~BadDereference() YAML_CPP_NOEXCEPT {} BadSubscript::~BadSubscript() YAML_CPP_NOEXCEPT {} BadPushback::~BadPushback() YAML_CPP_NOEXCEPT {} BadInsert::~BadInsert() YAML_CPP_NOEXCEPT {} EmitterException::~EmitterException() YAML_CPP_NOEXCEPT {} BadFile::~BadFile() YAML_CPP_NOEXCEPT {} } #undef YAML_CPP_NOEXCEPT
[ "zhangjs@mailbar.com" ]
zhangjs@mailbar.com
89b70c6d1b80b2e67426fc40d80305b4d9dfdf1f
25f1a35e2802ddab82f97c570491b9ad3599831e
/src/Deliverables/DediPro/MiscSettings.cpp
609a01f228e164a9c5715d288b510769b9a96497
[]
no_license
rockonedege/dediprog-SF1xx
1a8f35378e08a49dca7fc21474bfef00a43c162a
de57583ea3ec90ac90132c08258bbe1bebf3cc3f
refs/heads/master
2020-09-16T20:25:06.077225
2019-11-25T06:57:41
2019-11-25T06:57:41
223,880,292
2
1
null
null
null
null
UTF-8
C++
false
false
2,024
cpp
// MiscSettings.cpp : implementation file // #include "stdafx.h" #include "DediPro.h" #include "MiscSettings.h" #include "PreferenceEx.h" #include "dedicontext.h" #include <boost/array.hpp> // CMiscSettings dialog IMPLEMENT_DYNAMIC(CMiscSettings, CPropertyPage) CMiscSettings::CMiscSettings(Context::CDediContext& context) : CPropertyPage(CMiscSettings::IDD) , m_context(context) { } CMiscSettings::~CMiscSettings() { } void CMiscSettings::DoDataExchange(CDataExchange* pDX) { CPropertyPage::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CMiscSettings, CPropertyPage) ON_CONTROL_RANGE(BN_CLICKED, IDC_VCC3_5, IDC_VCC1_8, &CMiscSettings::OnSelectVcc) END_MESSAGE_MAP() // CMiscSettings message handlers BOOL CMiscSettings::OnInitDialog() { CPropertyPage::OnInitDialog(); // TODO: Add extra initialization here initVpp(); initVcc(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CMiscSettings::OnOK() { // TODO: Add your specialized code here and/or call the base class m_context.power.Misc_ApplyVpp = IsDlgButtonChecked(IDC_CHK_VPP) == BST_CHECKED; CPropertyPage::OnOK(); } void CMiscSettings::OnSelectVcc(UINT id) { // TODO: Add your control notification handler code here boost::array<power::VCC_VALUE, 2> vcc = { power::vcc3_5V, power::vcc1_8V }; m_context.power.vcc = vcc[id - IDC_VCC3_5]; } void CMiscSettings::initVcc() { if(power::vcc3_5V == m_context.power.vcc) { CheckRadioButton(IDC_VCC3_5, IDC_VCC1_8, IDC_VCC3_5); } else if (power::vcc1_8V == m_context.power.vcc) { CheckRadioButton(IDC_VCC3_5, IDC_VCC1_8, IDC_VCC1_8); } else {} } void CMiscSettings::initVpp() { bool applyVpp = m_context.power.Misc_ApplyVpp; CheckDlgButton(IDC_CHK_VPP, applyVpp ? BST_CHECKED : BST_UNCHECKED); }
[ "rockonedge@live.com" ]
rockonedge@live.com
e9bf8053dff7b2f3f06ebc5e0bc4f3a9be953313
d0fb46aecc3b69983e7f6244331a81dff42d9595
/live/include/alibabacloud/live/model/StopPlaylistResult.h
26e6860e298ba280f15084b205cd8b0914cc25db
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-cpp-sdk
3d8d051d44ad00753a429817dd03957614c0c66a
e862bd03c844bcb7ccaa90571bceaa2802c7f135
refs/heads/master
2023-08-29T11:54:00.525102
2023-08-29T03:32:48
2023-08-29T03:32:48
115,379,460
104
82
NOASSERTION
2023-09-14T06:13:33
2017-12-26T02:53:27
C++
UTF-8
C++
false
false
1,362
h
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef ALIBABACLOUD_LIVE_MODEL_STOPPLAYLISTRESULT_H_ #define ALIBABACLOUD_LIVE_MODEL_STOPPLAYLISTRESULT_H_ #include <string> #include <vector> #include <utility> #include <alibabacloud/core/ServiceResult.h> #include <alibabacloud/live/LiveExport.h> namespace AlibabaCloud { namespace Live { namespace Model { class ALIBABACLOUD_LIVE_EXPORT StopPlaylistResult : public ServiceResult { public: StopPlaylistResult(); explicit StopPlaylistResult(const std::string &payload); ~StopPlaylistResult(); std::string getProgramId()const; protected: void parse(const std::string &payload); private: std::string programId_; }; } } } #endif // !ALIBABACLOUD_LIVE_MODEL_STOPPLAYLISTRESULT_H_
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
af94524548bdfa8575170bba049307e89f429301
627d4d432c86ad98f669214d9966ae2db1600b31
/unprocessed/tools/designer/src/lib/sdk/abstractwidgetfactory.cpp
a82d34e43835c43e43716588b8d4df85745883e8
[]
no_license
fluxer/copperspice
6dbab905f71843b8a3f52c844b841cef17f71f3f
07e7d1315d212a4568589b0ab1bd6c29c06d70a1
refs/heads/cs-1.1
2021-01-17T21:21:54.176319
2015-08-26T15:25:29
2015-08-26T15:25:29
39,802,091
6
0
null
2015-07-27T23:04:01
2015-07-27T23:04:00
null
UTF-8
C++
false
false
3,037
cpp
/*********************************************************************** * * Copyright (c) 2012-2015 Barbara Geller * Copyright (c) 2012-2015 Ansel Sermersheim * Copyright (c) 2012-2014 Digia Plc and/or its subsidiary(-ies). * Copyright (c) 2008-2012 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * * This file is part of CopperSpice. * * CopperSpice is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation. * * CopperSpice 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with CopperSpice. If not, see * <http://www.gnu.org/licenses/>. * ***********************************************************************/ #include <QtDesigner/abstractwidgetfactory.h> #include "abstractformeditor.h" #include "abstractwidgetdatabase.h" QT_BEGIN_NAMESPACE /*! \class QDesignerWidgetFactoryInterface \brief The QDesignerWidgetFactoryInterface class provides an interface that is used to control the widget factory used by Qt Designer. \inmodule QtDesigner \internal */ /*! \fn QDesignerWidgetFactoryInterface::QDesignerWidgetFactoryInterface(QObject *parent) Constructs an interface to a widget factory with the given \a parent. */ QDesignerWidgetFactoryInterface::QDesignerWidgetFactoryInterface(QObject *parent) : QObject(parent) { } /*! \fn virtual QDesignerWidgetFactoryInterface::~QDesignerWidgetFactoryInterface() */ QDesignerWidgetFactoryInterface::~QDesignerWidgetFactoryInterface() { } /*! \fn virtual QDesignerFormEditorInterface *QDesignerWidgetFactoryInterface::core() const = 0 Returns the core form editor interface associated with this interface. */ /*! \fn virtual QWidget* QDesignerWidgetFactoryInterface::containerOfWidget(QWidget *child) const = 0 Returns the widget that contains the specified \a child widget. */ /*! \fn virtual QWidget* QDesignerWidgetFactoryInterface::widgetOfContainer(QWidget *container) const = 0 */ /*! \fn virtual QWidget *QDesignerWidgetFactoryInterface::createWidget(const QString &name, QWidget *parent) const = 0 Returns a new widget with the given \a name and \a parent widget. If no parent is specified, the widget created will be a top-level widget. */ /*! \fn virtual QLayout *QDesignerWidgetFactoryInterface::createLayout(QWidget *widget, QLayout *layout, int type) const = 0 Returns a new layout of the specified \a type for the given \a widget or \a layout. */ /*! \fn virtual bool QDesignerWidgetFactoryInterface::isPassiveInteractor(QWidget *widget) = 0 */ /*! \fn virtual void QDesignerWidgetFactoryInterface::initialize(QObject *object) const = 0 */ QT_END_NAMESPACE
[ "ansel@copperspice.com" ]
ansel@copperspice.com
a7fbd7755ef80f281f66d4420049f5c32586ea2d
0fccd1748ee7be55039e7bbfb4820197b5a85f0b
/2D Game Engine/2D Game Engine/LevelManager.h
971927bedf7486504c9856c7319e2b485fa904ea
[]
no_license
AustinChayka/C-Game
11d297ac5fd38a280da4701ec16c5e18f8680c58
56bd96fddc38cb4bfca6f69c37748b1417a51d8a
refs/heads/master
2022-02-13T02:39:14.724679
2019-05-30T22:10:43
2019-05-30T22:10:43
167,856,869
1
1
null
null
null
null
UTF-8
C++
false
false
960
h
#ifndef LevelManager_h #define LevelManager_h #include "StateManager.h" #include <vector> #include "ImageTile.h" class StateManager; class GameObject; class ImageTile; class Room; class LevelManager { public: LevelManager(); ~LevelManager(); void LoadLevel(int n); void GenerateLevel(int size, int seed); void Update(StateManager * sm); void Render(); void AddObject(GameObject * go); std::vector<GameObject *> * GetObjects(); void AddTile(ImageTile * it); std::vector<Room *> * GetRooms(); void NextLevel(); static GameObject * player; void AddItemRoom(float roomOffsetX, float roomOffsetY); private: std::vector<GameObject *> * objects; std::vector<ImageTile *> * tiles; std::vector<Room *> * rooms; std::vector<GameObject *> * allObjects; std::vector<int> specialRoomsBlacklist; int currentLevel = 0, leftOverEnemies = 0, specialRoomSkips = 0, activeRoom = 0; bool reloaded; bool IsBlacklisted(int r); }; #endif
[ "austinchayka@gmail.com" ]
austinchayka@gmail.com
275f4010861020409695a95f979e876e1f5fb323
e8ab6a8108801dfedb694557626fd847651564e2
/Dragon/include/operators/arithmetic/mul_op.h
395b1d58ae91d1c057e426b4d3bd786acdbf0d51
[ "BSD-2-Clause" ]
permissive
Spark001/Dragon-1
87f722bcb0feaec7fad29d923c60681cf9584267
310bcb5f6d9a6623bb58ed3d1ad02d1f440da474
refs/heads/master
2020-03-09T22:52:08.171500
2018-04-01T10:13:50
2018-04-01T10:13:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,108
h
// ------------------------------------------------------------ // Copyright (c) 2017-preseent, SeetaTech, Co.,Ltd. // // Licensed under the BSD 2-Clause License. // You should have received a copy of the BSD 2-Clause License // along with the software. If not, See, // // <https://opensource.org/licenses/BSD-2-Clause> // // ------------------------------------------------------------ #ifndef DRAGON_OPERATORS_ARITHMETIC_MUL_OP_H_ #define DRAGON_OPERATORS_ARITHMETIC_MUL_OP_H_ #include "core/operator.h" namespace dragon { template <class Context> class MulOp final : public Operator<Context> { public: USE_SIMPLE_CTOR_DTOR(MulOp); USE_OPERATOR_FUNCTIONS(Context); void RunOnDevice() override; template <typename T> void EltwiseRunWithType(); template <typename T> void BroadcastRunWithType(int type); protected: Tensor* bcast_multiplier; }; template <class Context> class MulGradientOp final : public Operator<Context> { public: USE_SIMPLE_CTOR_DTOR(MulGradientOp); USE_OPERATOR_FUNCTIONS(Context); void ShareGradient() override; void RunOnDevice() override; template <typename T> void EltwiseRunWithType(); template <typename T> void BroadcastRunWithType(int type); protected: Tensor* bcast_multiplier; }; template <class Context> class RMulOp final : public Operator<Context> { public: USE_SIMPLE_CTOR_DTOR(RMulOp); USE_OPERATOR_FUNCTIONS(Context); void RunOnDevice() override; template <typename T> void EltwiseRunWithType(); template <typename T> void BroadcastRunWithType(int type); protected: Tensor* bcast_multiplier; }; template <class Context> class RMulGradientOp final : public Operator<Context> { public: USE_SIMPLE_CTOR_DTOR(RMulGradientOp); USE_OPERATOR_FUNCTIONS(Context); void ShareGradient() override; void RunOnDevice() override; template <typename T> void EltwiseRunWithType(); template <typename T> void BroadcastRunWithType(int type); protected: Tensor* bcast_multiplier; }; } // namespace dragon #endif // DRAGON_OPERATORS_ARITHMETIC_MUL_OP_H_
[ "ting.pan@seetatech.com" ]
ting.pan@seetatech.com
f81a1df9709d95e5145cd1b3b0ec26add599c567
68984cbb4191be1192daa6e7de3e3ff6b1acc4ce
/settings.cpp
9fbd42236893b1cf656fa386f1b09964d8fa59ee
[]
no_license
xibeilang524/AntScope2
6699ef351c0d30f1d0649ed6d0b2823a53271c8a
017bb23a5e58166f21358bf721a5f03db1c97ff0
refs/heads/master
2020-07-03T11:03:33.446503
2019-06-15T19:27:53
2019-06-15T19:27:53
null
0
0
null
null
null
null
UTF-8
C++
false
false
33,490
cpp
#include "settings.h" #include "ui_settings.h" #include "popupindicator.h" #include "analyzer/customanalyzer.h" #include "fqinputvalidator.h" extern QString appendSpaces(const QString& number); QString Settings::iniFilePath; Settings::Settings(QWidget *parent) : QDialog(parent), ui(new Ui::Settings), m_analyzer(NULL), m_calibration(NULL), m_isComplete(false), m_generalTimer(NULL), m_markersHintEnabled(true), m_graphHintEnabled(true), m_graphBriefHintEnabled(true), m_onlyOneCalib(false), m_metricChecked(false), m_farEndMeasurement(0) { ui->setupUi(this); PopUpIndicator::setIndicatorVisible(false); QString style = "QPushButton:disabled{" "background-color: rgb(59, 59, 59);" "color: rgb(119, 119, 119);}"; ui->openOpenFileBtn->setStyleSheet(style); ui->openCalibBtn->setStyleSheet(style); ui->shortOpenFileBtn->setStyleSheet(style); ui->shortCalibBtn->setStyleSheet(style); ui->loadOpenFileBtn->setStyleSheet(style); ui->loadCalibBtn->setStyleSheet(style); ui->calibWizard->setStyleSheet(style); style = "QGroupBox {border: 2px solid rgb(100,100,100); margin-top: 1ex;}"; style += "QGroupBox::title {color: rgb(1, 178, 255);}"; ui->groupBox_10->setStyleSheet(style); ui->groupBox_11->setStyleSheet(style); ui->browseLine->setText(tr("Choose file")); ui->updateProgressBar->hide(); ui->checkUpdatesBtn->setEnabled(false); ui->openProgressBar->hide(); ui->shortProgressBar->hide(); ui->loadProgressBar->hide(); QString path = Settings::setIniFile(); m_settings = new QSettings(path, QSettings::IniFormat); m_settings->beginGroup("Settings"); m_markersHintEnabled = m_settings->value("markersHintEnabled", true).toBool(); m_graphHintEnabled = m_settings->value("graphHintEnabled", true).toBool(); m_graphBriefHintEnabled = m_settings->value("graphBriefHintEnabled", true).toBool(); ui->tabWidget->setCurrentIndex(m_settings->value("currentIndex",0).toInt()); ui->markersHintCheckBox->setChecked(m_markersHintEnabled); ui->graphHintCheckBox->setChecked(m_graphHintEnabled); ui->graphBriefHintCheckBox->setChecked(m_graphBriefHintEnabled); m_settings->endGroup(); ui->cableComboBox->addItem(tr("Change parameters or choose from list...")); ui->cableComboBox->setStyleSheet("QComboBox { combobox-popup: 0; }"); ui->cableComboBox->setMaxVisibleItems(20); connect(ui->lineEditMin, &QLineEdit::editingFinished, this, &Settings::on_fqMinFinished); connect(ui->lineEditMax, &QLineEdit::editingFinished, this, &Settings::on_fqMaxFinished); ui->lineEditPoints->setText("500"); connect(ui->lineEditPoints, &QLineEdit::editingFinished, this, &Settings::on_PointsFinished); //{ // TODO Bug #2247: update doesn't work from Antscope2 ui->tabWidget->removeTab(4); //} //{ // TODO Analyzer customization is not fully implemented yet extern bool g_developerMode; if (!g_developerMode) { ui->tabWidget->removeTab(3); } else { initCustomizeTab(); } //} QString cablesPath = Settings::programDataPath("cables.txt"); openCablesFile(cablesPath); foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts()) { ui->serialPortComboBox->addItem(info.portName()); } connect(ui->closeBtn, SIGNAL(pressed()), this, SLOT(close())); } Settings::~Settings() { emit paramsChanged(); double Z0 = ui->lineEdit_systemImpedance->text().toDouble(); if((Z0 > 0) && (Z0 <= 1000)) { emit Z0Changed(Z0); } CustomAnalyzer::save(); m_settings->beginGroup("Settings"); m_settings->setValue("markersHintEnabled", m_markersHintEnabled); m_settings->setValue("graphHintEnabled", m_graphHintEnabled); m_settings->setValue("graphBriefHintEnabled", m_graphBriefHintEnabled); m_settings->setValue("currentIndex",ui->tabWidget->currentIndex()); m_settings->endGroup(); if(m_analyzer != NULL) { m_analyzer->setIsMeasuring(false); } if(m_generalTimer) { m_generalTimer->stop(); delete m_generalTimer; m_generalTimer = NULL; } delete ui; } void Settings::setZ0(double _Z0) { ui->lineEdit_systemImpedance->setText(QString::number(_Z0)); } void Settings::on_browseBtn_clicked() { QFileInfo info; QString path; QString fileName = QFileDialog::getOpenFileName(this, tr("Open firmware file"), "","*.bin"); m_path = fileName; ui->browseLine->setText(fileName); if (!fileName.isEmpty()) { info.setFile(fileName); path = info.absolutePath(); m_isComplete = m_analyzer->checkFile(m_path); if (m_isComplete) { m_pathToFw = fileName; ui->updateBtn->setEnabled(true); } } else { ui->browseLine->setText(tr("Choose file")); m_isComplete = false; } } void Settings::on_checkUpdatesBtn_clicked() { ui->checkUpdatesBtn->setText(tr("Checking")); if(m_generalTimer) { m_generalTimer->stop(); delete m_generalTimer; } m_generalTimer = new QTimer(this); connect(m_generalTimer, SIGNAL(timeout()), this, SLOT(on_generalTimerTick())); m_generalTimer->start(200); emit checkUpdatesBtn(); } void Settings::on_generalTimerTick() { static qint32 state = 0; static qint32 ticks = 0; ticks++; if(ticks >= 25) { ui->checkUpdatesBtn->setText(tr("Check Updates")); ticks = 0; m_generalTimer->stop(); return; } QString strChecking = tr("Checking"); switch(state) { case 0 : state++; ui->checkUpdatesBtn->setText(strChecking); break; case 1 : state++; ui->checkUpdatesBtn->setText(strChecking + "."); break; case 2 : state++; ui->checkUpdatesBtn->setText(strChecking + ".."); break; case 3 : state = 0; ui->checkUpdatesBtn->setText(strChecking + "..."); break; default: state = 0; break; } } void Settings::setAnalyzer(Analyzer * analyzer) { if(analyzer) { m_analyzer = analyzer; qint32 num = m_analyzer->getModel(); if(num != 0) { ui->checkUpdatesBtn->setEnabled(true); ui->analyzerModelLabel->setText(m_analyzer->getModelString()); ui->serialLabel->setText(m_analyzer->getSerialNumber()); QString version = QString::number(m_analyzer->getVersion()); if(version.length() == 3) { version.insert(1,"."); } ui->versionLabel->setText(version); }else { ui->checkUpdatesBtn->setEnabled(false); m_analyzer->closeComPort(); findBootloader(); } } } void Settings::setCalibration(Calibration * calibration) { if(calibration) { m_calibration = calibration; ui->labelOpenState->setText(m_calibration->getOpenFileName()); ui->labelShortState->setText(m_calibration->getShortFileName()); ui->labelLoadState->setText(m_calibration->getLoadFileName()); ui->lineEditPoints->setText(QString::number(m_calibration->dotsNumber())); if(m_calibration->getCalibrationPerformed()) { if(m_calibration->getCalibrationEnabled()) { emit calibrationEnabled(true); } else { emit calibrationEnabled(false); } } } } void Settings::setGraphHintChecked(bool checked) { ui->graphHintCheckBox->setChecked(checked); } void Settings::setGraphBriefHintChecked(bool checked) { ui->graphBriefHintCheckBox->setChecked(checked); } void Settings::setMarkersHintChecked(bool checked) { ui->markersHintCheckBox->setChecked(checked); } void Settings::findBootloader (void) { static qint32 counter = 0; QList<ReDeviceInfo> list; list = ReDeviceInfo::availableDevices(ReDeviceInfo::Serial); for(int n = 0; n < list.length(); ++n) { QString name = ReDeviceInfo::deviceName(list.at(n)); for(int i = QUANTITY-1; i > 0; i--) { if(names[i].indexOf(name) >= 0 ) { m_analyzer->setComAnalyzerFound(true); m_analyzer->setAnalyzerModel(i); m_analyzer->openComPort(list.at(n).portName(),115200); ui->analyzerModelLabel->setText(name); ui->checkUpdatesBtn->setEnabled(true); break; } } } if (list.length() == 0) { int model = m_analyzer->getHidModel(); if( model != 0) { m_analyzer->setHidAnalyzerFound(true); m_analyzer->setAnalyzerModel(model); ui->analyzerModelLabel->setText(names[model]); ui->checkUpdatesBtn->setEnabled(true); }else { counter++; if(counter < 5) { QTimer::singleShot(300,this, SLOT(findBootloader())); } ui->checkUpdatesBtn->setEnabled(false); } } if((m_analyzer->getAnalyzerModel() == 0) && (counter == 5)) { counter = 0; QTimer::singleShot( 1, m_analyzer, SLOT(on_findAA30ZERO())); } } void Settings::on_autoUpdatesCheckBox_clicked(bool checked) { emit autoUpdatesCheckBox(checked); } void Settings::on_updateBtn_clicked() { ui->updateBtn->setEnabled(false); ui->updateBtn->setText("Updating..."); ui->updateProgressBar->show(); emit updateBtn(m_pathToFw); } void Settings::on_percentChanged(qint32 percent) { if(percent == 100) { ui->updateBtn->setText("Update"); ui->updateBtn->setEnabled(true); ui->updateProgressBar->hide(); ui->updateProgressBar->setValue(0); } ui->updateProgressBar->setValue(percent); } void Settings::on_graphHintCheckBox_clicked(bool checked) { emit graphHintChecked(checked); m_graphHintEnabled = checked; } void Settings::on_graphBriefHintCheckBox_clicked(bool checked) { emit graphBriefHintChecked(checked); m_graphBriefHintEnabled = checked; } void Settings::on_markersHintCheckBox_clicked(bool checked) { emit markersHintChecked(checked); m_markersHintEnabled = checked; } void Settings::on_calibWizard_clicked() { enableButtons(false); QMessageBox::information(NULL, tr("Open"), tr("Please connect OPEN standard and press OK.")); emit startCalibration(); } void Settings::on_percentCalibrationChanged(qint32 state, qint32 percent) { switch (state) { case 1: ui->openProgressBar->setValue(percent); if(percent == 100) { if(m_onlyOneCalib) { ui->openProgressBar->hide(); ui->labelOpenState->setText("cal_open.s1p"); m_onlyOneCalib = false; enableButtons(true); } }else { ui->openProgressBar->show(); } break; case 2: ui->shortProgressBar->show(); ui->shortProgressBar->setValue(percent); if(percent == 100) { if(m_onlyOneCalib) { ui->shortProgressBar->hide(); ui->labelShortState->setText("cal_short.s1p"); m_onlyOneCalib = false; enableButtons(true); } } break; case 3: ui->loadProgressBar->show(); ui->loadProgressBar->setValue(percent); if(percent == 100) { if(m_onlyOneCalib) { ui->loadProgressBar->hide(); ui->labelLoadState->setText("cal_load.s1p"); m_onlyOneCalib = false; }else { ui->openProgressBar->hide(); ui->shortProgressBar->hide(); ui->loadProgressBar->hide(); ui->labelOpenState->setText("cal_open.s1p"); ui->labelShortState->setText("cal_short.s1p"); ui->labelLoadState->setText("cal_load.s1p"); } enableButtons(true); } break; default: break; } } void Settings::on_openCalibBtn_clicked() { enableButtons(false); m_onlyOneCalib = true; if (QMessageBox::information(NULL, tr("Open"), tr("Please connect OPEN standard and press OK.")) == QMessageBox::Ok) emit startCalibrationOpen(); } void Settings::on_shortCalibBtn_clicked() { enableButtons(false); m_onlyOneCalib = true; QMessageBox::information(NULL, tr("Short"), tr("Please connect SHORT standard and press OK.")); emit startCalibrationShort(); } void Settings::on_loadCalibBtn_clicked() { enableButtons(false); m_onlyOneCalib = true; QMessageBox::information(NULL, tr("Load"), tr("Please connect LOAD standard and press OK.")); emit startCalibrationLoad(); } void Settings::enableButtons(bool enabled) { ui->openOpenFileBtn->setEnabled(enabled); ui->openCalibBtn->setEnabled(enabled); ui->shortOpenFileBtn->setEnabled(enabled); ui->shortCalibBtn->setEnabled(enabled); ui->loadOpenFileBtn->setEnabled(enabled); ui->loadCalibBtn->setEnabled(enabled); ui->calibWizard->setEnabled(enabled); } void Settings::on_openOpenFileBtn_clicked() { QString dir = localDataPath("Calibration"); QString path = QFileDialog::getOpenFileName(this, tr("Open 'open calibration' file"), dir,"*.s1p"); QStringList list; list = path.split("/"); if(list.length() == 1) { list.clear(); list = path.split("\\"); } ui->labelOpenState->setText(list.last()); emit openOpenFile(path); } void Settings::on_shortOpenFileBtn_clicked() { QString dir = localDataPath("Calibration"); QString path = QFileDialog::getOpenFileName(this, tr("Open 'short calibration' file"), dir,"*.s1p"); QStringList list; list = path.split("/"); if(list.length() == 1) { list.clear(); list = path.split("\\"); } ui->labelShortState->setText(list.last()); emit shortOpenFile(path); } void Settings::on_loadOpenFileBtn_clicked() { QString dir = localDataPath("Calibration"); QString path = QFileDialog::getOpenFileName(this, tr("Open 'load calibration' file"), dir,"*.s1p"); QStringList list; list = path.split("/"); if(list.length() == 1) { list.clear(); list = path.split("\\"); } ui->labelLoadState->setText(list.last()); emit loadOpenFile(path); } void Settings::setMeasureSystemMetric(bool state) { ui->measureSystemMetric->setChecked(state); m_metricChecked = state; ui->measureSystemAmerican->setChecked(!state); m_americanChecked = !state; } void Settings::on_measureSystemMetric_clicked(bool checked) { if(!checked) { if(m_metricChecked) { ui->measureSystemMetric->setChecked(true); }else { m_metricChecked = checked; } }else { emit changeMeasureSystemMetric(checked); m_metricChecked = checked; m_americanChecked = !checked; ui->measureSystemAmerican->setChecked(!checked); } } void Settings::on_measureSystemAmerican_clicked(bool checked) { if(!checked) { if(m_americanChecked) { ui->measureSystemAmerican->setChecked(true); }else { m_americanChecked = checked; } }else { emit changeMeasureSystemMetric(!checked); m_americanChecked = checked; m_metricChecked = !checked; ui->measureSystemMetric->setChecked(!checked); } } void Settings::on_doNothingBtn_clicked(bool checked) { if( !checked ) { if(m_farEndMeasurement == 0) { ui->doNothingBtn->setChecked(true); } }else { m_farEndMeasurement = 0; ui->addCableBtn->setChecked(false); ui->subtractCableBtn->setChecked(false); emit paramsChanged(); cableActionEnableButtons(false); } } void Settings::on_subtractCableBtn_clicked(bool checked) { if( !checked ) { if(m_farEndMeasurement == 1) { ui->subtractCableBtn->setChecked(true); } }else { m_farEndMeasurement = 1; ui->addCableBtn->setChecked(false); ui->doNothingBtn->setChecked(false); emit paramsChanged(); cableActionEnableButtons(true); } } void Settings::on_addCableBtn_clicked(bool checked) { if( !checked ) { if(m_farEndMeasurement == 2) { ui->addCableBtn->setChecked(true); } }else { m_farEndMeasurement = 2; ui->subtractCableBtn->setChecked(false); ui->doNothingBtn->setChecked(false); emit paramsChanged(); cableActionEnableButtons(true); } } void Settings::cableActionEnableButtons(bool enabled) { ui->cableR0->setEnabled(enabled); ui->cableLossComboBox->setEnabled(enabled); ui->cableLen->setEnabled(enabled); ui->conductiveLoss->setEnabled(enabled); ui->dielectricLoss->setEnabled(enabled); ui->atFq->setEnabled(enabled); ui->anyFq->setEnabled(enabled); } //Cable------------------------------------------------------------------------- void Settings::setCableVelFactor(double value) { ui->velocityFactor->setText(QString::number(value,'f',2)); } double Settings::getCableVelFactor(void)const { return ui->velocityFactor->text().toDouble(); } //------------------------------------------------------------------------------ void Settings::setCableResistance(double value) { ui->cableR0->setText(QString::number(value)); } double Settings::getCableResistance(void)const { return ui->cableR0->text().toDouble(); } //------------------------------------------------------------------------------ void Settings::setCableLossConductive(double value) { ui->conductiveLoss->setText(QString::number(value)); } double Settings::getCableLossConductive(void)const { return ui->conductiveLoss->text().toDouble(); } //------------------------------------------------------------------------------ void Settings::setCableLossDielectric(double value) { ui->dielectricLoss->setText(QString::number(value)); } double Settings::getCableLossDielectric(void)const { return ui->dielectricLoss->text().toDouble(); } //------------------------------------------------------------------------------ void Settings::setCableLossFqMHz(double value) { ui->atMHz->setText(QString::number(value)); } double Settings::getCableLossFqMHz(void)const { return ui->atMHz->text().toDouble(); } //------------------------------------------------------------------------------ void Settings::setCableLossUnits(int value) { ui->cableLossComboBox->setCurrentIndex(value); } int Settings::getCableLossUnits(void)const { return ui->cableLossComboBox->currentIndex(); } //------------------------------------------------------------------------------ void Settings::setCableLossAtAnyFq(bool value) { if(value) { ui->anyFq->setChecked(value); }else { ui->atFq->setChecked(!value); } } bool Settings::getCableLossAtAnyFq(void)const { return ui->anyFq->isChecked(); } //------------------------------------------------------------------------------ void Settings::setCableLength(double value) { ui->cableLen->setText(QString::number(value)); } double Settings::getCableLength(void)const { return ui->cableLen->text().toDouble(); } //------------------------------------------------------------------------------ void Settings::setCableFarEndMeasurement(int value) { m_farEndMeasurement = value; if(m_farEndMeasurement == 0) { ui->doNothingBtn->setChecked(true); cableActionEnableButtons(false); }else if(m_farEndMeasurement == 1) { ui->subtractCableBtn->setChecked(true); }else if(m_farEndMeasurement == 2) { ui->addCableBtn->setChecked(true); } } int Settings::getCableFarEndMeasurement(void)const { return m_farEndMeasurement; } //------------------------------------------------------------------------------ void Settings::setCableIndex(int value) { if(value >= 0) ui->cableComboBox->setCurrentIndex(value); } int Settings::getCableIndex(void)const { return ui->cableComboBox->currentIndex(); } //------------------------------------------------------------------------------ void Settings::openCablesFile(QString path) { m_cablesList.clear(); ui->cableComboBox->addItem(tr("Ideal 50-Ohm cable")); m_cablesList.append(tr("Ideal 50-Ohm cable, 50, 0.66, 0.0, 0.0, 0, 0")); ui->cableComboBox->addItem(tr("Ideal 75-Ohm cable")); m_cablesList.append(tr("Ideal 75-Ohm cable, 75, 0.66, 0.0, 0.0, 0, 0")); ui->cableComboBox->addItem(tr("Ideal 25-Ohm cable")); m_cablesList.append(tr("Ideal 25-Ohm cable, 25, 0.66, 0.0, 0.0, 0, 0")); ui->cableComboBox->addItem(tr("Ideal 37.5-Ohm cable")); m_cablesList.append(tr("Ideal 37.5-Ohm cable, 37.5, 0.66, 0.0, 0.0, 0, 0")); if (path.isEmpty()) return; QFile file(path); bool res = file.open(QFile::ReadOnly); if(!res) { QMessageBox::information(this, tr("Can't open file"), path, QMessageBox::Close); return; } QTextStream in(&file); QString line; do { line = in.readLine(); if( (line == "") || (line.at(0) == ';')) { continue; }else { QList <QString> list; list = line.split(','); if(list.length() == 7) { ui->cableComboBox->addItem(list.at(0)); m_cablesList.append(line); }else { qDebug() << "Settings::openCablesFile: Error: Len != 7"; } } } while (!line.isNull()); } void Settings::on_cableComboBox_currentIndexChanged(int index) { if(index > 0) { QString str = m_cablesList.at(index-1); QList <QString> paramsList = str.split(','); //1. Cable name ui->cableR0->setText( paramsList.at(1));//2. R0 in Ohm ui->velocityFactor->setText(paramsList.at(2));//3. Velocity factor ui->conductiveLoss->setText(paramsList.at(3));//4. Conductive loss ui->dielectricLoss->setText(paramsList.at(4));//5. Dielectric loss ui->cableLossComboBox->setCurrentIndex(paramsList.at(5).toInt());//6. Loss units (0=dB/100ft, 1=dB/ft, 2=dB/100m, 3=dB/m) bool anyFq = (bool)paramsList.at(6).toInt();//7. Frequency in MHz at which loss is specified (or 0 for any frequency) if(!anyFq) { ui->anyFq->setChecked(true); }else { ui->atFq->setChecked(true); } } } void Settings::on_updateGraphsBtn_clicked() { emit paramsChanged(); } QString Settings::setIniFile() { //iniFilePath = Settings::localDataPath() + "AntScope2.ini"; iniFilePath = Settings::localDataPath("AntScope2.ini"); return iniFilePath; } QString Settings::localDataPath(QString _fileName) { // Mac OS X and iOS #ifdef Q_OS_DARWIN QDir dir_ini3 = QStandardPaths::writableLocation(QStandardPaths::HomeLocation); return dir_ini3.absoluteFilePath("RigExpert/AntScope2/" + _fileName); #else QDir dir_ini3 = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation); return dir_ini3.absoluteFilePath("RigExpert/AntScope2/" + _fileName); #endif qDebug("TODO Settings::localDataPath"); return QString(); } QString Settings::programDataPath(QString _fileName) { // Mac OS X and iOS #ifdef Q_OS_DARWIN QDir dir = QCoreApplication::applicationDirPath(); return dir.absoluteFilePath("Resources/" + _fileName); #endif // win32 and win64 #ifdef Q_OS_WIN QStringList list = QStandardPaths::standardLocations(QStandardPaths::GenericDataLocation); qDebug() << list; for (int idx=0; idx<list.size(); idx++) { QDir dir = list[idx]; QString path = dir.absoluteFilePath("RigExpert/AntScope2/" + _fileName); if (QFile::exists(path)) return path; } return QString(); #endif //qDebug("TODO Settings::programDataPath"); return QString(); } void Settings::on_aa30bootFound() { ui->serialLabel->setText(m_analyzer->getSerialNumber()); ui->analyzerModelLabel->setText(m_analyzer->getModelString()); QString version = QString::number(m_analyzer->getVersion()); ui->versionLabel->setText(version); ui->checkUpdatesBtn->setEnabled(true); } void Settings::on_aa30updateComplete() { this->close(); } void Settings::on_autoUpdatesCheckBox(bool checked) { emit firmwareAutoUpdateStateChanged(checked); } void Settings::on_checkBox_AntScopeAutoUpdate_clicked(bool checked) { emit antScopeAutoUpdateStateChanged(checked); } void Settings::setFirmwareAutoUpdate(bool checked) { ui->autoUpdatesCheckBox->setChecked(checked); } void Settings::setAntScopeAutoUpdate(bool checked) { ui->checkBox_AntScopeAutoUpdate->setChecked(checked); } void Settings::setAntScopeVersion(QString version) { ui->antScopeVersion->setText(version); } void Settings::setAutoDetectMode(bool state, QString portName) { ui->autoDetect->setChecked(state); m_autoDetectChecked = state; ui->manualDetect->setChecked(!state); m_manualDetectChecked = !state; ui->serialPortComboBox->setEnabled(!state); int found = -1; for(int i = 0; i < ui->serialPortComboBox->count(); ++i) { if( portName == ui->serialPortComboBox->itemText(i)) { found = i; break; } } if(found >= 0) { ui->serialPortComboBox->setCurrentIndex(found); }else { ui->serialPortComboBox->addItem(portName); ui->serialPortComboBox->setCurrentText(portName); } } void Settings::on_autoDetect_clicked(bool checked) { if(!checked) { if(m_autoDetectChecked) { ui->autoDetect->setChecked(true); }else { m_manualDetectChecked = checked; } }else { emit changedAutoDetectMode(true); m_autoDetectChecked = checked; m_manualDetectChecked = !checked; ui->manualDetect->setChecked(!checked); } ui->serialPortComboBox->setEnabled(false); } void Settings::on_manualDetect_clicked(bool checked) { if(!checked) { if(m_manualDetectChecked) { ui->manualDetect->setChecked(true); }else { m_autoDetectChecked = checked; } }else { emit changedAutoDetectMode(false); m_manualDetectChecked = checked; m_autoDetectChecked = !checked; ui->autoDetect->setChecked(!checked); } ui->serialPortComboBox->setEnabled(true); } void Settings::on_serialPortComboBox_activated(const QString &arg1) { emit changedSerialPort(arg1); } void Settings::setLanguages(QStringList list, int number) { ui->languageComboBox->addItems(list); ui->languageComboBox->setCurrentIndex(number); } void Settings::on_translate() { ui->retranslateUi(this); ui->cableComboBox->setItemText(0, tr("Change parameters or choose from list...")); } void Settings::on_languageComboBox_currentIndexChanged(int index) { emit languageChanged(index); } void Settings::on_closeButton_clicked() { accept(); } void Settings::on_bandsComboBox_currentIndexChanged(int index) { QString band = ui->bandsCombobox->itemText(index); m_settings->beginGroup("Settings"); m_settings->setValue("current_band", band); m_settings->endGroup(); emit bandChanged(band); } void Settings::setBands(QList<QString> list) { foreach (QString band, list) { ui->bandsCombobox->addItem(band); } m_settings->beginGroup("Settings"); QString current_band = m_settings->value("current_band", "").toString(); m_settings->endGroup(); connect(ui->bandsCombobox, SIGNAL(currentIndexChanged(int)), this, SLOT(on_bandsComboBox_currentIndexChanged(int))); ui->bandsCombobox->setCurrentText(current_band); } void Settings::initCustomizeTab() { ui->comboBoxPrototype->hide(); ui->label_19->hide(); ui->comboBoxPrototype->clear(); ui->comboBoxName->clear(); ui->comboBoxName->blockSignals(true); ui->comboBoxPrototype->blockSignals(true); //CustomAnalyzer::load(m_settings); QString curAlias = CustomAnalyzer::currentAlias(); for (int idx=0; idx<QUANTITY; idx++) { ui->comboBoxPrototype->addItem(names[idx]); } const QMap<QString, CustomAnalyzer>& map = CustomAnalyzer::getMap(); QStringList keys = map.keys(); for (int idx=0; idx<keys.size(); idx++) { ui->comboBoxName->addItem(map[keys[idx]].alias()); } CustomAnalyzer::setCurrent(curAlias); CustomAnalyzer* ca = CustomAnalyzer::getCurrent(); if (ca != nullptr) { ui->comboBoxName->setCurrentText(ca->alias()); ui->lineEditMin->setText(ca->minFq()); ui->lineEditMax->setText(ca->maxFq()); ui->spinBoxWidth->setValue(ca->width()); ui->spinBoxHeight->setValue(ca->height()); ui->comboBoxPrototype->setCurrentText(ca->prototype()); } else { on_comboBoxName_currentIndexChanged(ui->comboBoxName->currentIndex()); } connect(ui->customizeCheckBox, &QCheckBox::toggled, this, &Settings::on_enableCustomizeControls); connect(ui->btnAdd, &QPushButton::clicked, this, &Settings::on_addButton); connect(ui->btnRemove, &QPushButton::clicked, this, &Settings::on_removeButton); connect(ui->btnAply, &QPushButton::clicked, this, &Settings::onApplyButton); connect(ui->comboBoxPrototype, SIGNAL(currentIndexChanged(int)), this, SLOT(on_comboBoxPrototype_currentIndexChanged(int))); connect(ui->comboBoxName, SIGNAL(currentIndexChanged(int)), this, SLOT(on_comboBoxName_currentIndexChanged(int))); ui->customizeCheckBox->setChecked(CustomAnalyzer::customized()); ui->comboBoxName->blockSignals(false); ui->comboBoxPrototype->blockSignals(false); on_enableCustomizeControls(CustomAnalyzer::customized()); } void Settings::on_enableCustomizeControls(bool enable) { ui->comboBoxName->setEnabled(enable); ui->comboBoxPrototype->setEnabled(enable); ui->lineEditMin->setEnabled(enable); ui->lineEditMax->setEnabled(enable); ui->spinBoxWidth->setEnabled(enable); ui->spinBoxHeight->setEnabled(enable); ui->btnAdd->setEnabled(enable); ui->btnRemove->setEnabled(enable); CustomAnalyzer::customize(enable); } void Settings::on_comboBoxPrototype_currentIndexChanged(int index) { ui->lineEditMin->setText(minFq[index]); ui->lineEditMax->setText(maxFq[index]); ui->spinBoxWidth->setValue(lcdWidth[index]); ui->spinBoxHeight->setValue(lcdHeight[index]); } void Settings::on_comboBoxName_currentIndexChanged(int index) { Q_UNUSED(index) QString key = ui->comboBoxName->currentText(); if (!key.isEmpty()) { CustomAnalyzer::setCurrent(key); CustomAnalyzer* ca = CustomAnalyzer::get(key); if (ca != nullptr) { ui->comboBoxName->setCurrentText(ca->alias()); ui->lineEditMin->setText(ca->minFq()); ui->lineEditMax->setText(ca->maxFq()); ui->spinBoxWidth->setValue(ca->width()); ui->spinBoxHeight->setValue(ca->height()); ui->comboBoxPrototype->setCurrentText(ca->prototype()); } } } void Settings::onApplyButton() { if (ui->comboBoxName->currentText().isEmpty()) return; CustomAnalyzer ca; ca.setAlias(ui->comboBoxName->currentText()); ca.setPrototype(ui->comboBoxPrototype->currentText()); ca.setMinFq(ui->lineEditMin->text()); ca.setMaxFq(ui->lineEditMax->text()); ca.setWidth(ui->spinBoxWidth->value()); ca.setHeight(ui->spinBoxHeight->value()); CustomAnalyzer::add(ca); CustomAnalyzer::setCurrent(ca.alias()); CustomAnalyzer::save(); initCustomizeTab(); } void Settings::on_removeButton() { if (ui->comboBoxName->currentText().isEmpty()) return; CustomAnalyzer::remove(ui->comboBoxName->currentText()); CustomAnalyzer::save(); initCustomizeTab(); } void Settings::on_addButton() { ui->comboBoxName->setCurrentText(""); ui->comboBoxPrototype->setCurrentText("names[0]"); ui->lineEditMin->setText("0"); ui->lineEditMax->setText("0"); ui->spinBoxWidth->setValue(0); ui->spinBoxHeight->setValue(0); } void Settings::on_fqMinFinished() { QString str = ui->lineEditMin->text(); str.remove(' '); ui->lineEditMin->setText(appendSpaces(str)); } void Settings::on_fqMaxFinished() { QString str = ui->lineEditMax->text(); str.remove(' '); ui->lineEditMax->setText(appendSpaces(str)); } void Settings::on_PointsFinished() { QString str = ui->lineEditPoints->text(); m_calibration->setDotsNumber(str.toInt()); }
[ "serg.butenko@gmail.com" ]
serg.butenko@gmail.com
e1f8ad89e29e2b00c2733d0764fcea9c099022ca
8730ff90ba4d16476f8c2da6de34d8e8817bd5b4
/OOP345/W3_Class Templates/345_w3.cpp
20627c4d7476a0f30bee75bda1bc1a7ab753252d
[]
no_license
muratbir/Seneca_College
1d0da9c3845426dd761e510fe942c0d0c97add19
b8f718123dbc9915a17c03821a2a10ec26136ace
refs/heads/master
2020-08-01T11:10:23.163943
2019-04-17T21:37:59
2019-04-17T21:37:59
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,726
cpp
// Workshop 3 - Class Templates // 345_w3.cpp // Chris Szalwinski // 2018.05.17 #include <fstream> #include <iostream> #include <iomanip> #include <string> #include "KVList.h" //#define CONSOLE #ifndef CONSOLE #define SOURCE input #else #define SOURCE std::cin #endif // display list of key-value pairs // template <typename K, typename V, int N> void display(const std::string& msg, const KVList<K, V, N>& list, int w) { std::cout << msg; for (size_t i = 0; i < list.size(); i++) std::cout << std::setw(w) << list.key(i) << " : " << list.value(i) << std::endl; } // prompt for user input // void prompt(const char* str) { #ifndef CONSOLE std::cout << ". "; #else std::cout << str; #endif } int main(int argc, char** argv) { std::cout << "Command Line : "; for (int i = 0; i < argc; i++) { std::cout << argv[i] << ' '; } std::cout << std::endl; #ifndef CONSOLE if (argc == 1) { std::cerr << "\n*** Insufficient number of arguments ***\n"; std::cerr << "Usage: " << argv[0] << " fileName \n"; return 1; } else if (argc != 2) { std::cerr << "\n*** Too many arguments ***\n"; std::cerr << "Usage: " << argv[0] << " fileName \n"; return 2; } std::ifstream input(argv[1]); if (!input) { std::cerr << "*** Failed to open file " << argv[1] << " successfully ***\n"; return 3; } #endif bool keepreading; std::cout << std::fixed << std::setprecision(2); std::cout << "\nInventory\n=========\n"; KVList <std::string, double, 5> inventory; std::string str; double price; keepreading = true; do { prompt("Product : "); getline(SOURCE, str); if (str.compare("quit") == 0) { keepreading = false; } else { prompt("Price : "); SOURCE >> price; SOURCE.ignore(); inventory.add(str, price); } } while (keepreading); display("\nPrice List\n-----------\n", inventory, 13); std::cout << "\nCorrections\n-----------\n"; keepreading = true; do { prompt("Product : "); getline(SOURCE, str); if (str.compare("quit") == 0) { keepreading = false; } else { int i = inventory.find(str); if (i != -1) { prompt("Price : "); SOURCE >> price; SOURCE.ignore(); inventory.replace(i, str, price); } } } while (keepreading); display("\nPrice List\n-----------\n", inventory, 13); std::cout << "\nGlossary\n========\n"; KVList <std::string, std::string, 5> glossary; std::string key, definition; keepreading = true; do { prompt("Key : "); getline(SOURCE, key); if (key.compare("quit") == 0) { keepreading = false; } else { prompt("Definition : "); getline(SOURCE, definition); glossary.add(key, definition); } } while (keepreading); display("\nEntries\n-------\n", glossary, 5); }
[ "nickyoon89@gmail.com" ]
nickyoon89@gmail.com
ca8a006d7dbed76702828783db00a35317d6f5e6
1763177bd131827bb6e2c8377fd429dca1d30f02
/pathmet/firmware/source/pc.hpp
76b8e030c48c8295cc7fe0b49c07944b9e4cd78d
[]
no_license
pathVu/pathmetarcgis
79d3cd66aeefb30b457eac656299c8e923262499
ec48e834a2e13de4af2ad3a31ef7a660a5a49a18
refs/heads/master
2023-03-16T06:16:32.945099
2021-03-11T17:51:26
2021-03-11T17:51:26
267,865,641
0
0
null
null
null
null
UTF-8
C++
false
false
1,197
hpp
#pragma once #include <cstdint> #include "circular_buffer.hpp" extern "C" void pc_on_rx(const uint8_t*, uint32_t); extern "C" uint32_t pc_tx_pending(void); extern "C" void pc_get_tx(uint8_t* data, uint32_t size); class PC { public: PC(); void init(); void update(); void write(const uint8_t* data, size_t size); private: friend void pc_on_rx(const uint8_t*, uint32_t); friend uint32_t pc_tx_pending(void); friend void pc_get_tx(uint8_t*, uint32_t); /* interface to USB VCOM */ void on_rx(const uint8_t* data, uint32_t size); uint32_t tx_pending(); void get_tx(uint8_t* data, uint32_t size); pa::circular_buffer<uint8_t, 256> tx_buffer; pa::circular_buffer<uint8_t, 256> rx_buffer; enum class RxState { wait_for_start_delimiter, read_length, read_command, read_data, read_end_delimiter }; enum class Command : uint8_t { start = 0x53 }; static const uint8_t start_delimiter = 0x01; static const uint8_t end_delimiter = 0x04; RxState rx_state_; uint8_t message_length_; uint8_t message_command_; uint8_t message_index_; }; extern PC pc;
[ "cjr105@case.edu" ]
cjr105@case.edu
c62f80492f255988842e2647148eb7bac44a3aef
3a4f120f3211a1482b8ba826f4922fa741c5586e
/ip/Pmods/PmodWIFI_v1_0/drivers/PmodWIFI_v1_0/examples/HTTPServer/ProcessClient.cpp
9fb794141743739c3b41ae26131800ede7ea66a1
[ "MIT" ]
permissive
Digilent/vivado-library
7135129c7e4fec84d17e1fe037598bd2124085eb
cbfde215a27053004cb41d85535c4a1bd1673e14
refs/heads/master
2023-09-05T22:04:31.189589
2023-08-22T17:23:00
2023-08-22T17:23:46
46,139,497
512
327
MIT
2023-08-22T17:23:47
2015-11-13T18:23:02
C
UTF-8
C++
false
false
23,728
cpp
/************************************************************************/ /* */ /* ProcessClient.cpp */ /* */ /* A chipKIT WiFi HTTP Web Server implementation */ /* This processes connected clients */ /* This sketch is designed to work with web browsers */ /* */ /************************************************************************/ /* Author: Keith Vogel */ /* Copyright 2013, Digilent Inc. */ /************************************************************************/ /* * * Copyright (c) 2013-2014, Digilent <www.digilentinc.com> * Contact Digilent for the latest version. * * This program is free software; distributed under the terms of * BSD 3-clause license ("Revised BSD License", "New BSD License", or "Modified BSD License") * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name(s) of the above-listed copyright holder(s) nor the names * of its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ /************************************************************************/ /* Revision History: */ /* 2/1/2013(KeithV): Created */ /************************************************************************/ #include "HTTPServer.h" // The HTML Redering page list typedef struct { const char * szMatchString; uint32_t cbMatch; FNRENDERHTML ComposeHTMLPage; } HTTPCMD; static HTTPCMD rgHttpCmd[CNTHTTPCMD]; static FNRENDERHTML DefaultHTMLPage = ComposeHTTP404Error; typedef enum { START = 0, READINPUT, PARSENEXTLINE, WAITCMD, DEFAULTCMD, DISPLAYTIME, PROCESSHTML, WRITEBUFFER, STOPCLIENT, // any state after the connection is lost must be placed below here EXIT, // just finishing up the client processing RESTART, // want to restart the server TERMINATE, // want to terminate the server REBOOT // reboot the processor; MCLR } CLIENTSTATE; /*** GCMD::ACTION ProcessClient(CLIENTINFO * pClientInfo) * * Parameters: * pClientInfo - a pointer to CLIENTINFO structure with the socket and local data used by the connection * * Return Values: * GCMD::ACTION - Generally GCMD::CONTINUE is returned to keep the server running * However if GCMD::RESTART is returned, the server is restarted * And if GCMD::TERMINATE is returned, the server is cleanly shutdown and loops forever doing nothing. * * Description: * * In the CLINTINFO structure there is an fInUse flag, and this is what tells the server * that the CLINTINFO has an active connection. Only active connections are processed by the server * so this function is only called with pClientInfo->fInUse == true. This function sets it false when the connection * is closed or lost. * * Having said that, there are a few cases when the connection will be dropped. For example if the other side * unexpectedly drops the connection, or the network goes down. * * When the connection is closed (state == STOPCLIENT) for whatever reason, the HTML rendering function will be called with * pClientInfo->htmlState == HTTPDISCONNECT. This is the only intential time the HTML Rendering function will * be called with the connection closed. This is to allow the Rendering page to deinitialize any state. * So if a file is open, or hardware is process, the rendering page function will have an opertunity to close * resources. This is particularly useful if the connection is unexpectedly dropped, this will allow * for cleanup. When the HTML rendering function is called with HTTPDISCONNECT, GCMD::DONE is expected to be returned. * * ------------------------------------------------------------ */ GCMD::ACTION ProcessClient(CLIENTINFO * pClientInfo) { GCMD::ACTION action = GCMD::CONTINUE; IPSTATUS status = ipsSuccess; uint32_t tCur = SYSGetMilliSecond(); // timeout occured, get out if(pClientInfo->clientState != START && (tCur - pClientInfo->tStartClient) >= (secClientTO * 1000)) { xil_printf("Timeout on client: 0x%X\r\n", pClientInfo); pClientInfo->nextClientState = EXIT; // if no data came in at all, then just close the connection if(pClientInfo->cbRead == 0) { pClientInfo->clientState = STOPCLIENT; } // if some data came in, then give the data to the default HTML page. else if(pClientInfo->ComposeHTMLPage == NULL) { pClientInfo->clientState = DEFAULTCMD; } else { pClientInfo->clientState = PROCESSHTML; pClientInfo->htmlState = HTTPTIMEOUT; } } // lost the connection, get out if(((CLIENTSTATE) pClientInfo->clientState < STOPCLIENT) && !pClientInfo->pTCPClient->isEstablished()) { xil_printf("Connection Lost\r\n"); pClientInfo->clientState = STOPCLIENT; pClientInfo->tStartClient = tCur; pClientInfo->nextClientState = EXIT; } switch((CLIENTSTATE) pClientInfo->clientState) { case START: xil_printf("New Client detected\r\n"); // we know for the most part, the CLIENTINFO is zero'ed // so only set non-zero values pClientInfo->pbOut = pClientInfo->rgbOut; pClientInfo->htmlState = HTTPSTART; // forces the initialization state to be executed pClientInfo->tStartClient = tCur; pClientInfo->clientState = READINPUT; pClientInfo->nextClientState = WAITCMD; break; case READINPUT: // read in the HTTP URL, any additional data. if(pClientInfo->pTCPClient->available() > 0 && pClientInfo->cbRead < sizeof(pClientInfo->rgbIn)) { pClientInfo->cbRead += pClientInfo->pTCPClient->readStream(&pClientInfo->rgbIn[pClientInfo->cbRead], sizeof(pClientInfo->rgbIn) - pClientInfo->cbRead); } pClientInfo->clientState = pClientInfo->nextClientState; break; case WAITCMD: // until we read something, match, or timeout, we keep reading and waiting. pClientInfo->clientState = READINPUT; pClientInfo->nextClientState = WAITCMD; // check the match strings, only if we have something to compare against if(pClientInfo->cbRead > 0) { bool fPartialMatch = false; // now look to see if HTML redering pages matches this URL for(uint32_t i = 0; i < CNTHTTPCMD; i++) { // does this entry have anything in it? if(rgHttpCmd[i].cbMatch > 0) { uint32_t cbCmp = rgHttpCmd[i].cbMatch > pClientInfo->cbRead ? pClientInfo->cbRead : rgHttpCmd[i].cbMatch; // see if we found a matching URL if(memcmp(pClientInfo->rgbIn, rgHttpCmd[i].szMatchString, cbCmp) == 0) { // we either have a partial or full match fPartialMatch = true; // we have a full match; we know what dynamic page to call if(cbCmp == rgHttpCmd[i].cbMatch) { pClientInfo->ComposeHTMLPage = rgHttpCmd[i].ComposeHTMLPage; pClientInfo->clientState = DISPLAYTIME; pClientInfo->tStartClient = tCur; // fournd it, get out. break; } } } } // if we didn't find a perfect match, then lets see if we are done anyway if(pClientInfo->clientState == READINPUT) { // only quit if we can't read anymore; our input buffer is full // otherwise keep reading, we may get more bytes to give us a full match if(!fPartialMatch || pClientInfo->cbRead == sizeof(pClientInfo->rgbIn) || (pClientInfo->cbRead >= 4 && pClientInfo->rgbIn[pClientInfo->cbRead-4] == '\r' && pClientInfo->rgbIn[pClientInfo->cbRead-3] == '\n' && pClientInfo->rgbIn[pClientInfo->cbRead-2] == '\r' && pClientInfo->rgbIn[pClientInfo->cbRead-1] == '\n' ) ) { pClientInfo->clientState = DEFAULTCMD; pClientInfo->tStartClient = tCur; } } } break; case DEFAULTCMD: xil_printf("Default page called\r\n"); pClientInfo->ComposeHTMLPage = DefaultHTMLPage; pClientInfo->tStartClient = tCur; pClientInfo->clientState = DISPLAYTIME; break; case DISPLAYTIME: { #ifndef NOTIME unsigned int epochTime = 0; char szTemp[256]; epochTime = deIPcK.secondsSinceEpoch(); GetDayAndTime(epochTime, szTemp); Serial.println(szTemp); #endif pClientInfo->clientState = PROCESSHTML; pClientInfo->tStartClient = tCur; } break; case PROCESSHTML: // process the HTML page switch((action = pClientInfo->ComposeHTMLPage(pClientInfo))) { // just come back to this state case GCMD::CONTINUE: pClientInfo->clientState = PROCESSHTML; break; // TODO, read more from the input. case GCMD::READ: pClientInfo->nextClientState = PROCESSHTML; pClientInfo->clientState = READINPUT; break; // we have data to write out case GCMD::WRITE: pClientInfo->nextClientState = PROCESSHTML; pClientInfo->clientState = WRITEBUFFER; break; // Done processing the client, close the client and get out case GCMD::DONE: pClientInfo->nextClientState = EXIT; // we are done! pClientInfo->clientState = STOPCLIENT; break; case GCMD::RESTART: pClientInfo->nextClientState = RESTART; // we want to terminate the server pClientInfo->clientState = STOPCLIENT; break; case GCMD::TERMINATE: pClientInfo->nextClientState = TERMINATE; // we want to terminate the server pClientInfo->clientState = STOPCLIENT; break; case GCMD::REBOOT: pClientInfo->nextClientState = REBOOT; // we want to reboot the server pClientInfo->clientState = STOPCLIENT; break; case GCMD::GETLINE: pClientInfo->clientState = PARSENEXTLINE; break; default: xil_printf("Unsupported compose command detected: %d\r\n",action); pClientInfo->nextClientState = EXIT; // we are done! pClientInfo->clientState = STOPCLIENT; break; } pClientInfo->cbWritten = 0; pClientInfo->tStartClient = tCur; break; case PARSENEXTLINE: { uint32_t i = 0; bool fFoundNewLine = false; bool fNullTerminator = false; // we are looking for either a /r/n or a /0. // if we find the /r/n first, than replace the /r/n with /0 and that is our first line // otherwise if we find the /0, go find the next /r/n for(i = 0; i < pClientInfo->cbRead; i++) { if( (fFoundNewLine = pClientInfo->rgbIn[i] == '\n') || (fNullTerminator = pClientInfo->rgbIn[i] == '\0') ) { break; } } // found the line end, terminate it and return. if(fFoundNewLine) { pClientInfo->rgbIn[i] = '\0'; if(i > 0 && pClientInfo->rgbIn[i-1] == '\r') { pClientInfo->rgbIn[i-1] = '\0'; } pClientInfo->clientState = PROCESSHTML; } else if(fNullTerminator) { // go to beyond the \0 for( ; i < pClientInfo->cbRead && pClientInfo->rgbIn[i] == '\0'; i++); if(i == pClientInfo->cbRead) { // nothing left in the buffer to read, so we can reset it. pClientInfo->cbRead = 0; pClientInfo->clientState = READINPUT; pClientInfo->nextClientState = PARSENEXTLINE; if(pClientInfo->rgbOverflow[0] != '\0') { pClientInfo->rgbIn[0] = pClientInfo->rgbOverflow[0]; pClientInfo->rgbOverflow[0] = '\0'; pClientInfo->cbRead = 1; } } // copy the end of the buffer to the front of the buffer // memcpy should be a safe overlapping copy. else { pClientInfo->cbRead -= i; memcpy(pClientInfo->rgbIn, &pClientInfo->rgbIn[i], pClientInfo->cbRead); // stay at this state to go find the end of line } } // this is a hard condition, our input buffer is full, and it doesn't even contain a full line. else if(i == sizeof(pClientInfo->rgbIn)) { // save away the last byte and return it as a line, even though there is a line break. pClientInfo->rgbOverflow[0] = pClientInfo->rgbIn[sizeof(pClientInfo->rgbIn)-1]; pClientInfo->rgbIn[sizeof(pClientInfo->rgbIn)-1] = '\0'; pClientInfo->clientState = PROCESSHTML; } // we need to read more data. else { pClientInfo->clientState = READINPUT; pClientInfo->nextClientState = PARSENEXTLINE; } } break; case WRITEBUFFER: // see if we are done if(pClientInfo->cbWritten == pClientInfo->cbWrite) { pClientInfo->clientState = pClientInfo->nextClientState; pClientInfo->nextClientState = STOPCLIENT; break; } // otherwise we have data to write pClientInfo->cbWritten += pClientInfo->pTCPClient->writeStream(&pClientInfo->pbOut[pClientInfo->cbWritten], pClientInfo->cbWrite - pClientInfo->cbWritten, &status); //xil_printf("%s", pClientInfo->pbOut); // got an error, terminate the connection if(IsIPStatusAnError(status)) { xil_printf("Error writing\r\n"); pClientInfo->clientState = STOPCLIENT; pClientInfo->nextClientState = EXIT; } // or we are done now after the write else if(pClientInfo->cbWritten == pClientInfo->cbWrite) { pClientInfo->clientState = pClientInfo->nextClientState; pClientInfo->nextClientState = STOPCLIENT; } pClientInfo->tStartClient = tCur; break; case STOPCLIENT: xil_printf("Closing connection for client: 0x%X\r\n", pClientInfo); pClientInfo->pTCPClient->close(); if(pClientInfo->ComposeHTMLPage != NULL) { pClientInfo->htmlState = HTTPDISCONNECT; pClientInfo->ComposeHTMLPage(pClientInfo); } pClientInfo->clientState = pClientInfo->nextClientState; pClientInfo->tStartClient = tCur; return(GCMD::ADDSOCKET); break; case EXIT: break; case RESTART: xil_printf("Restart Commanded\r\n"); return(GCMD::RESTART); break; case TERMINATE: xil_printf("Termination Commanded\r\n"); return(GCMD::TERMINATE); break; case REBOOT: xil_printf("Reboot Commanded\r\n"); return(GCMD::REBOOT); break; default: xil_printf("Unknown client state: %d\r\n", pClientInfo->clientState); pClientInfo->clientState = STOPCLIENT; pClientInfo->nextClientState = EXIT; pClientInfo->tStartClient = tCur; break; } return(GCMD::CONTINUE); } /*** bool AddHTMLPage(const char * szMatchStr, FNRENDERHTML FnComposeHTMLPage) * * Parameters: * szMatchStr - A pointer to a constant string; this string MUST exist for the life of the sketch * typically this is a string stored in flash like -- static const char szHTMLFavicon[] = "GET /favicon.ico "; -- * * FnComposeHTMLPage - A pointer to the HTML Rendering page, for example: -- GCMD::ACTION ComposeHTMLRestartPage(CLIENTINFO * pClientInfo) -- * * Return Values: * true if it was added, false if there was no room to add the page search string * * Description: * * In the simple case this searchs for HTTP GET commands and matches on the URL and then calls the associated Compose function. It is intentional that GET / is * part of the match string as this will also allow you to repond to POST. Also, you can do partial matches. For example if you have "GET /filesystem/" as your * match string, the associated compose function would be called for GET commands like "GET /filesystem/dir1/object.x" because the first part of the string matches. * This allows you to have some URL call dynamically generated pages like taking a realtime picture, OR you could have another URL access a filesystem by filename. * The Compose function will get the full input string, so the compose function can independently parse the GET line. * * * ------------------------------------------------------------ */ bool AddHTMLPage(const char * szMatchStr, FNRENDERHTML FnComposeHTMLPage) { for(uint32_t i = 0; i < CNTHTTPCMD; i++) { if(rgHttpCmd[i].cbMatch == 0) { rgHttpCmd[i].szMatchString = szMatchStr; rgHttpCmd[i].cbMatch = strlen(szMatchStr); rgHttpCmd[i].ComposeHTMLPage = FnComposeHTMLPage; return(true); } } return(false); } /*** void SetDefaultHTMLPage(FNRENDERHTML FnDefaultHTMLPage) * * Parameters: * FnComposeHTMLPage - A pointer to the HTML Rendering page, for example: -- GCMD::ACTION ComposeHTMLDefaultPage(CLIENTINFO * pClientInfo) -- * * Return Values: * None * * Description: * * If no match strings match, than the default compose HTML page is called. This is optional as the HTTP 404 file not found page * is initialized as the default page. Function allows you to replace the default. * * * ------------------------------------------------------------ */ void SetDefaultHTMLPage(FNRENDERHTML FnDefaultHTMLPage) { DefaultHTMLPage = FnDefaultHTMLPage; } /*** GCMD::ACTION JumpToComposeHTMLPage(CLIENTINFO * pClientInfo, FNRENDERHTML FnJumpComposeHTMLPage) * * Parameters: * pClientInfo - a pointer to your current CLIENTINFO structure * FnJumpComposeHTMLPage - The page compose function you want to jump to * * Return Values: * GCMD::ACTION - GCMD::CONTINUE is returned to start executing in the new compose page * * Description: * You MUST pass your current pClientInfo as this will get processed. * You MUST be prepared to leave your current compose page; you must be fully cleaned up * as this compose function will NOT be called again. Cleanup all mutexes as if you * got a HTTPDISCONNECT state; but your connection is NOT disconnecting, it will * be used in the jumped to compose page. * * ------------------------------------------------------------ */ GCMD::ACTION JumpToComposeHTMLPage(CLIENTINFO * pClientInfo, FNRENDERHTML FnJumpComposeHTMLPage) { pClientInfo->htmlState = HTTPSTART; pClientInfo->ComposeHTMLPage = FnJumpComposeHTMLPage; return(GCMD::CONTINUE); }
[ "tom.kappenman@wsu.edu" ]
tom.kappenman@wsu.edu
d8ff64d8a35a2a3b012b947ef940caf2bcd9ad74
98ef9f82f45320df070f670eac258c8365113642
/nowcoder/剑指offer/和为s的两个数.cc
463c49195bf09011126b28db94a1e86c0135ffc6
[]
no_license
FrankWork/LeetCode
abbf6125b57e143073f89daf5cbcbd8ff67bb78b
6ec0c0d43cf4e8ef968051a4d125c4965d58e4f5
refs/heads/master
2021-01-22T07:27:43.963950
2018-11-12T08:44:18
2018-11-12T08:44:18
39,978,490
1
0
null
null
null
null
UTF-8
C++
false
false
562
cc
#include <iostream> #include <vector> #include <cstdio> #include <cmath> #include <algorithm> using namespace std; class Solution { public: vector<int> FindNumbersWithSum(vector<int> &nums,int sum) { int l=0,r=nums.size()-1; vector<int> res; while(l<r){ int t=nums[l]+nums[r]; if(t==sum){ res.push_back(nums[l]); res.push_back(nums[r]); return res; }else if(t<sum){ ++l; }else{ --r; } } return res; } };
[ "lzh00776@163.com" ]
lzh00776@163.com
4f82b2e7cb0c29608f1433c6d267f4f3355501e1
e1402bc56b5eba90bcdd956a04f5571d89a7d100
/skgrader/maxflow.cxx
43c7076893fdb80bf626c60d12e64701615c04bc
[]
no_license
markverick/ioi-training
5dc9248ad394de0272abafb54d52d90c5073fb27
57a15aa332a908b6044a8cb90b3c0b660ff13ae4
refs/heads/master
2018-12-13T01:28:01.326534
2018-10-23T18:26:04
2018-10-23T18:26:04
148,653,348
0
0
null
null
null
null
UTF-8
C++
false
false
1,416
cxx
#include<bits/stdc++.h> #define X first #define Y second #define MP make_pair #define EB emplace_back #define MI 1000000000 using namespace std; vector<int> adj[50135]; int s,t,n; int state[50135]; int hsh[50135],result[50135]; vector<pair<int,int> > v; inline void dfs(int idx,int cot,int p,int mul) { int i; if(idx==t) { for(i=1;i<cot;i++) { hsh[result[i]]+=mul; } return; } state[idx]=1; for(i=0;i<adj[idx].size();i++) { if(p==adj[idx][i]) continue; result[cot]=adj[idx][i]; dfs(adj[idx][i],cot+1,idx,mul); } } int main() { // freopen("maxflow.in","r",stdin); // freopen("maxflow.out","w",stdout); int i,j,k; int m,a,b; scanf("%d %d",&n,&m); for(i=1;i<n;i++) { scanf("%d %d",&a,&b); adj[a].EB(b); adj[b].EB(a); } for(i=1;i<=m;i++) { scanf("%d %d",&s,&t); v.emplace_back(min(s,t),max(s,t)); } sort(v.begin(),v.end()); int cot=1; for(i=0;i<m;i++) { if(i==0||(v[i-1]!=v[i]) ) { dfs(s,1,0,cot); hsh[s]+=cot; cot=1; } else { cot++; } } int mc=0; for(i=1;i<=n;i++) { mc=max(mc,hsh[i]); } printf("%d",mc); }
[ "sirapop741@gmail.com" ]
sirapop741@gmail.com
738864566d92b9a12f711be5579328f925b9608b
19765034e3c1e8968b4108c621e39b5bd509675e
/nuevo/automata-01pares/main.cpp
176329ca660dee3e750d9c63f39eff325a745102
[]
no_license
marco-gallegos/estructura-de-datos-2
e30086c2606c033187cad24d8b46053598a1b0d5
e85589705c1dbed4f7cc9728991407fc94b68780
refs/heads/master
2022-07-06T16:51:13.937772
2022-06-24T08:52:07
2022-06-24T08:52:07
32,251,992
1
0
null
null
null
null
UTF-8
C++
false
false
1,187
cpp
#include <QCoreApplication> #include<iostream> using namespace std; // automata finito determinista que reconoce ceros y unos pares. int tipoSimbolo(char c); //funcion para regresar el tipo de simbolo int main() { //QCoreApplication a(argc, argv); int matriz [][3]={//matriz de transiciones {2,1,4},//q0 {3,0,4},//q1 {0,3,4},//q2 {1,2,4},//q3 {4,4,4}//q4 }; int estado; string cadena; while (1) { cout<<"AFD para reconocer palabras de la forma {w|w tiene cantidad par de 0's y 1's'}"<<endl; cout<<"ingresa la palabra -> "; getline(cin,cadena); estado =0; for (unsigned int i = 0; i < cadena.length(); ++i) { estado = matriz[estado][tipoSimbolo(cadena.at(i))]; if(estado == 4) { break; } } if(estado == 0) { cout<<"la cadena es valida"<<endl<<endl; } else { cout<<"la cadena es invalida"<<endl<<endl; } } return 1;//a.exec(); } int tipoSimbolo(char c) { if(c == '0') { return 0; } else if(c == '1') { return 1; } else { return 4; } }
[ "ma_galeza@hotmail.com" ]
ma_galeza@hotmail.com
ab2ff198ba858ac5148f30d91b4873afed2c1081
1dbf007249acad6038d2aaa1751cbde7e7842c53
/cdn/include/huaweicloud/cdn/v1/model/CreateDomainResponseBodyContent.h
b43487ca7ac9481e6648218291e7981de8579dbf
[]
permissive
huaweicloud/huaweicloud-sdk-cpp-v3
24fc8d93c922598376bdb7d009e12378dff5dd20
71674f4afbb0cd5950f880ec516cfabcde71afe4
refs/heads/master
2023-08-04T19:37:47.187698
2023-08-03T08:25:43
2023-08-03T08:25:43
324,328,641
11
10
Apache-2.0
2021-06-24T07:25:26
2020-12-25T09:11:43
C++
UTF-8
C++
false
false
7,041
h
#ifndef HUAWEICLOUD_SDK_CDN_V1_MODEL_CreateDomainResponseBodyContent_H_ #define HUAWEICLOUD_SDK_CDN_V1_MODEL_CreateDomainResponseBodyContent_H_ #include <huaweicloud/cdn/v1/CdnExport.h> #include <huaweicloud/core/utils/ModelBase.h> #include <huaweicloud/core/http/HttpResponse.h> #include <huaweicloud/cdn/v1/model/Sources.h> #include <huaweicloud/cdn/v1/model/DomainOriginHost.h> #include <string> #include <vector> namespace HuaweiCloud { namespace Sdk { namespace Cdn { namespace V1 { namespace Model { using namespace HuaweiCloud::Sdk::Core::Utils; using namespace HuaweiCloud::Sdk::Core::Http; /// <summary> /// 创建域名返回信息。 /// </summary> class HUAWEICLOUD_CDN_V1_EXPORT CreateDomainResponseBodyContent : public ModelBase { public: CreateDomainResponseBodyContent(); virtual ~CreateDomainResponseBodyContent(); ///////////////////////////////////////////// /// ModelBase overrides void validate() override; web::json::value toJson() const override; bool fromJson(const web::json::value& json) override; ///////////////////////////////////////////// /// CreateDomainResponseBodyContent members /// <summary> /// 加速域名ID。 /// </summary> std::string getId() const; bool idIsSet() const; void unsetid(); void setId(const std::string& value); /// <summary> /// 加速域名。 /// </summary> std::string getDomainName() const; bool domainNameIsSet() const; void unsetdomainName(); void setDomainName(const std::string& value); /// <summary> /// 域名业务类型: - web:网站加速; - download:文件下载加速; - video:点播加速; - wholeSite:全站加速。 /// </summary> std::string getBusinessType() const; bool businessTypeIsSet() const; void unsetbusinessType(); void setBusinessType(const std::string& value); /// <summary> /// 域名服务范围,若为mainland_china,则表示服务范围为中国大陆;若为outside_mainland_china,则表示服务范围为中国大陆境外;若为global,则表示服务范围为全球。 /// </summary> std::string getServiceArea() const; bool serviceAreaIsSet() const; void unsetserviceArea(); void setServiceArea(const std::string& value); /// <summary> /// 域名所属用户的domain_id。 /// </summary> std::string getUserDomainId() const; bool userDomainIdIsSet() const; void unsetuserDomainId(); void setUserDomainId(const std::string& value); /// <summary> /// 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。 /// </summary> std::string getDomainStatus() const; bool domainStatusIsSet() const; void unsetdomainStatus(); void setDomainStatus(const std::string& value); /// <summary> /// 加速域名对应的CNAME。 /// </summary> std::string getCname() const; bool cnameIsSet() const; void unsetcname(); void setCname(const std::string& value); /// <summary> /// 源站信息。 /// </summary> std::vector<Sources>& getSources(); bool sourcesIsSet() const; void unsetsources(); void setSources(const std::vector<Sources>& value); /// <summary> /// /// </summary> DomainOriginHost getDomainOriginHost() const; bool domainOriginHostIsSet() const; void unsetdomainOriginHost(); void setDomainOriginHost(const DomainOriginHost& value); /// <summary> /// 是否开启HTTPS加速。 /// </summary> int32_t getHttpsStatus() const; bool httpsStatusIsSet() const; void unsethttpsStatus(); void setHttpsStatus(int32_t value); /// <summary> /// 域名创建时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。 /// </summary> int64_t getCreateTime() const; bool createTimeIsSet() const; void unsetcreateTime(); void setCreateTime(int64_t value); /// <summary> /// 域名修改时间,相对于UTC 1970-01-01到当前时间相隔的毫秒数。 /// </summary> int64_t getModifyTime() const; bool modifyTimeIsSet() const; void unsetmodifyTime(); void setModifyTime(int64_t value); /// <summary> /// 封禁状态(0代表未禁用;1代表禁用)。 /// </summary> int32_t getDisabled() const; bool disabledIsSet() const; void unsetdisabled(); void setDisabled(int32_t value); /// <summary> /// 锁定状态(0代表未锁定;1代表锁定)。 /// </summary> int32_t getLocked() const; bool lockedIsSet() const; void unsetlocked(); void setLocked(int32_t value); /// <summary> /// range状态,off:关闭,on:开启。 /// </summary> std::string getRangeStatus() const; bool rangeStatusIsSet() const; void unsetrangeStatus(); void setRangeStatus(const std::string& value); /// <summary> /// follow302状态,off:关闭,on:开启。 /// </summary> std::string getFollowStatus() const; bool followStatusIsSet() const; void unsetfollowStatus(); void setFollowStatus(const std::string& value); /// <summary> /// 是否暂停源站回源(off代表关闭 on代表开启)。 /// </summary> std::string getOriginStatus() const; bool originStatusIsSet() const; void unsetoriginStatus(); void setOriginStatus(const std::string& value); /// <summary> /// 自动刷新预热(0代表关闭;1代表打开)。 /// </summary> int32_t getAutoRefreshPreheat() const; bool autoRefreshPreheatIsSet() const; void unsetautoRefreshPreheat(); void setAutoRefreshPreheat(int32_t value); protected: std::string id_; bool idIsSet_; std::string domainName_; bool domainNameIsSet_; std::string businessType_; bool businessTypeIsSet_; std::string serviceArea_; bool serviceAreaIsSet_; std::string userDomainId_; bool userDomainIdIsSet_; std::string domainStatus_; bool domainStatusIsSet_; std::string cname_; bool cnameIsSet_; std::vector<Sources> sources_; bool sourcesIsSet_; DomainOriginHost domainOriginHost_; bool domainOriginHostIsSet_; int32_t httpsStatus_; bool httpsStatusIsSet_; int64_t createTime_; bool createTimeIsSet_; int64_t modifyTime_; bool modifyTimeIsSet_; int32_t disabled_; bool disabledIsSet_; int32_t locked_; bool lockedIsSet_; std::string rangeStatus_; bool rangeStatusIsSet_; std::string followStatus_; bool followStatusIsSet_; std::string originStatus_; bool originStatusIsSet_; int32_t autoRefreshPreheat_; bool autoRefreshPreheatIsSet_; }; } } } } } #endif // HUAWEICLOUD_SDK_CDN_V1_MODEL_CreateDomainResponseBodyContent_H_
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
0fc664c413a14a57916edfe97d57e740344a6756
ea13d60ca2b530a339d48e677723d35492d9177c
/02_module/ABKCommon/src/mmapStreamBuf.cxx
9c733e0b8c0b30f6f4c426433fa48ad0f8c73923
[ "MIT" ]
permissive
gledr/SMT_MacroPlacer
dab3e929b3edbb6bc346f9b9f9a44d76fd258239
b5b25f0ce9094553167ffd4985721f86414ceddc
refs/heads/master
2023-01-31T09:11:25.763888
2020-12-18T08:52:00
2020-12-18T08:52:00
251,312,468
5
1
null
null
null
null
UTF-8
C++
false
false
2,808
cxx
/************************************************************************** *** *** Copyright (c) 1995-2000 Regents of the University of California, *** Andrew E. Caldwell, Andrew B. Kahng and Igor L. Markov *** Copyright (c) 2000-2010 Regents of the University of Michigan, *** Saurabh N. Adya, Jarrod A. Roy, David A. Papa and *** Igor L. Markov *** *** Contact author(s): abk@cs.ucsd.edu, imarkov@umich.edu *** Original Affiliation: UCLA, Computer Science Department, *** Los Angeles, CA 90095-1596 USA *** *** 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. *** *** ***************************************************************************/ #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <iostream> #include <unistd.h> #include <cmath> #include "mmapStreamBuf.h" #include "uofm_alloc.h" using std::cout; using std::endl; using uofm::string; MMapStreamBuf::MMapStreamBuf(const char *inputFileName) { _fileName = string(inputFileName); struct stat s; if (stat(_fileName.c_str(), &s)) { cout << "[MMapStreamBuf] " << "stat failed" << endl; throw; } _fileSize = s.st_size; int fd; if ((fd = open(_fileName.c_str(), O_RDONLY)) < 0) { cout << "[MMapStreamBuf] " << "open failed" << endl; throw; } int pageSize = getpagesize(); _mapSize = unsigned(ceil(double(_fileSize)/double(pageSize))) * pageSize; unsigned offset = 0; void *buf = mmap(NULL, _mapSize, PROT_READ, MAP_PRIVATE, fd, offset); close(fd); if (buf == MAP_FAILED) { cout << "[MMapStreamBuf] " << "mmap failed" << endl; throw; } setbuf((char *)buf, _fileSize); } MMapStreamBuf::~MMapStreamBuf() { munmap(_M_buf, _mapSize); }
[ "sebastian.pointner@jku.at" ]
sebastian.pointner@jku.at
d97aa36e36fb812d4f7e70d1d6e32c9d5b85a952
3d0021b222ddd65b36e61207a8382e841d13e3df
/adpcm.cpp
d6f3f0672247e4dfbbfcf3a6b9cefed8f550a0a5
[]
no_license
default0/zeldablackmagic
1273f5793c4d5bbb594b6da07cf70b52de499392
f12078b4c3b22d80077e485657538398e8db3b0f
refs/heads/master
2021-01-10T11:54:31.897192
2010-02-10T19:23:04
2010-02-10T19:23:04
51,330,005
0
0
null
null
null
null
UTF-8
C++
false
false
1,127
cpp
/* #include "common.h" #include "adpcm.h" // <pSXAuthor> you use the decoder class like: // <pSXAuthor> adpcm::decoder d; // <pSXAuthor> signed short buffer[...number of pcm bytes....]; // <pSXAuthor> packet *p=... pointer to start of adpcm data ...; // <pSXAuthor> signed short *ptr=buffer; while ((p->flags&flag_end)==0) ptr=d.decode_packet(p++,ptr); // // // const int adpcm::filter_coef[5][2]= { { 0,0 }, { 60,0 }, { 115,-52 }, { 98,-55 }, { 122,-60 }, }; // // // signed short *adpcm::decoder::decode_packet(adpcm::packet *ap, signed short *dp) { int shift=ap->info&0xf, filter=ap->info>>4, f0=filter_coef[filter][0], f1=filter_coef[filter][1]; for (int i=0; i<14; i++) { unsigned char b=ap->data[i]; short bl=(b&0xf)<<12, bh=(b>>4)<<12; bl=(bl>>shift)+(((l0*f0)+(l1*f1)+32)>>6); if (bl<-32768) bl=-32768; else if (bl>32767) bl=32767; *dp++=bl; l1=l0; l0=bl; bh=(bh>>shift)+(((l0*f0)+(l1*f1)+32)>>6); if (bh<-32768) bh=-32768; else if (bh>32767) bh=32767; *dp++=bh; l1=l0; l0=bh; } return dp; } */
[ "MathOnNapkins@99ff0a3e-ee68-11de-8de6-035db03795fd" ]
MathOnNapkins@99ff0a3e-ee68-11de-8de6-035db03795fd
e1fd04e20dc1b10808c6f81fdb6131150365118a
9e4a00de1ec07e7e88872ef60c42a49bf65dc2b0
/Code/Libraries/Audio/src/soloudaudiosystem.h
906a0b9468f16f3c257eafb887e9076749ae976a
[ "Zlib" ]
permissive
ptitSeb/Eldritch
6a5201949b13f6cd95d3d75928e375bdf785ffca
3cd6831a4eebb11babec831e2fc59361411ad57f
refs/heads/master
2021-07-10T18:45:05.892756
2021-04-25T14:16:19
2021-04-25T14:16:19
39,091,718
6
4
NOASSERTION
2021-04-25T14:16:20
2015-07-14T18:03:07
C
UTF-8
C++
false
false
2,705
h
#ifndef SOLOUDAUDIOSYSTEM_H #define SOLOUDAUDIOSYSTEM_H #include "audiosystemcommon.h" #include "map.h" #include "set.h" #include "list.h" #include "hashedstring.h" #include "array.h" #include "interpolator.h" #include "simplestring.h" #include "soloud.h" #include "soloud_echofilter.h" struct SoLoudPropCache { SoLoudPropCache() : m_Channels( 0 ) , m_SampleRate( 0.0f ) , m_SampleCount( 0 ) { } uint m_Channels; float m_SampleRate; uint m_SampleCount; }; class SoLoudAudioSystem : public AudioSystemCommon { public: SoLoudAudioSystem(); virtual ~SoLoudAudioSystem(); virtual void Tick( const float DeltaTime, bool GamePaused ); virtual ISound* CreateSound( const SSoundInit& SoundInit ); virtual ISoundInstance* Play( const SimpleString& DefinitionName, const Vector& Location ); virtual void SetReverbParams( const SimpleString& DefinitionName ) const; virtual void ConditionalApplyReverb( ISoundInstance* const pSoundInstance ) const { Unused( pSoundInstance ); /*not needed for SoLoud, all done with buses*/ } #if BUILD_DEV virtual void ReverbTest_Toggle(); virtual void ReverbTest_Update(); virtual bool ReverbTest_IsActive() const; virtual void ReverbTest_Print() const; virtual void ReverbTest_Export() const; virtual void ReverbTest_PrevSetting(); virtual void ReverbTest_NextSetting(); virtual void ReverbTest_IncrementSetting( const float Scalar ); virtual void ReverbTest_DecrementSetting( const float Scalar ); #endif SoLoud::Soloud* GetSoLoudEngine() const { return m_SoLoudEngine; } SoLoud::Bus* GetSoLoudEchoBus() const { return m_SoLoudEchoBus; } bool IsReverbCategory( const HashedString& Category ) const { return m_ReverbCategories.Find( Category ); } const SoLoudPropCache* GetPropCache( const HashedString& Filename ) const; void SetPropCache( const HashedString& Filename, const SoLoudPropCache& PropCache ); private: void ApplyReverb( const float EchoTime, const float DecayTime, const float LowPassFilter, const float WetDryMix ) const; SoLoud::Soloud* m_SoLoudEngine; SoLoud::Bus* m_SoLoudEchoBus; SoLoud::EchoFilter* m_SoLoudEchoFilter; SoLoud::handle m_SoLoudEchoBusHandle; SimpleString m_DefaultReverb; Array<HashedString> m_ReverbCategories; // Categories that has teh reverbs (probably generally the same as pause) // Optimization for SoLoud to bypass stb_vorbis_stream_length_in_samples each time a file is reopened Map<HashedString, SoLoudPropCache> m_PropCache; #if BUILD_DEV bool m_ReverbTest_IsActive; uint m_ReverbTest_SettingIndex; #endif }; #endif // SOLOUDAUDIOSYSTEM_H
[ "rajdakin@gmail.com" ]
rajdakin@gmail.com
b7579e4cad8fbd259e5d5ee0cb9b61d6f66fb2a0
99cfd2020e2984f2d463978b5a134a2f1081d094
/shashank/prime_till_n.cpp
f7350454f60dfaa406fb4b2ff0254e4b33954b5c
[ "MIT" ]
permissive
sekharkaredla/Cpp_Programs
5e33ff5ee7a15fa6582d7d9319a78b3c19071b2a
e026d3322da5913e327033cb5d4787665998aef3
refs/heads/master
2021-05-09T07:07:51.674806
2018-01-29T08:12:23
2018-01-29T08:12:23
119,348,800
0
0
null
null
null
null
UTF-8
C++
false
false
768
cpp
#include<iostream> using namespace std; class num { int n,i,r,j,flag; public: void getdata() { cout<<"enter a number :"; cin>>n; } void loop() { for(i=1;i<=n;i++) if(prime(i)==1) cout<<" "<<i; } int prime(int i) {flag=1; for(j=2;j<i;j++) { if(i%j==0) { flag=0;break; } return flag; } } }; int main() { num s; s.getdata(); s.loop(); return 1; }
[ "sekhar.karedla@gmail.com" ]
sekhar.karedla@gmail.com
baa4a7b7aed99f3503fdbb87f14ea0cec2d195dd
64c6a76143ee2cbef6568865c032805d1536da60
/sources/Bitmap.h
78acaa8f01497a097b7895eb92b7379b4c326937
[]
no_license
HaikuArchives/DwarfEngine
5a6c2a2fbf7ff00191b26a261be146c7b21934ae
51d772c23fba96c335a0de95c6dd40a3daa1ed28
refs/heads/master
2021-05-07T15:35:25.346098
2017-11-08T21:26:09
2017-11-08T21:26:09
110,032,368
0
1
null
null
null
null
UTF-8
C++
false
false
3,159
h
#ifndef D_BITMAP_H_ #define D_BITMAP_H_ /* * The Dwarf Engine 3D Library * copyright (c) 2000 * * #include <license.txt> * */ #include "Defs.h" #include "Array.h" #include "String.h" #include "Buffer.h" #include "Serializable.h" #ifdef WIN32 // IGNORE is defined in winbase.h #undef IGNORE #endif namespace dwarf { class File; class FileSystem; class String; class Bitmap; /*! \brief This class has not been fully documented yet. \todo document Bitmap. */ class Bitmap : public Serializable { public: enum ResizeMode { IGNORE = 0, //!< Ignores the bitmap, after the resize the bitmap will contain undefined data CROP, //!< The bitmap will be cropped or the extended areas will be filled with the color black (no rescaling at all) SCALE //!< The bitmap will be scaled to match the new size }; enum ColorSpace { STENCIL_INDEX = 0, DEPTH_COMPONENT, RED, GREEN, BLUE, ALPHA, RGB, RGBA, GRAYSCALE, GRAYSCALE_ALPHA, BGR, BGRA }; Bitmap(); // Bitmap(const File &image); // Bitmap(int32 width, int32 height, dwarf::core::Bitmap::ColorSpace space = RGB); Bitmap(FileSystem* dir, String const& name); Bitmap(int32 width, int32 height, ColorSpace space = RGB); Bitmap(const Array<uint8> &bitmap,int32 width,int32 height,ColorSpace space = RGB); Bitmap(const uint8 *bitmap,int32 width,int32 height,ColorSpace space = RGB); virtual ~Bitmap(); int32 Width() const; int32 Height() const; uint8* Data() const; int32 DataSize() const; ColorSpace Space() const; void SetSpace(Bitmap::ColorSpace space, bool convert); void SetSize(int32 width, int32 height, Bitmap::ColorSpace space); void SetSize(int32 width, int32 height, Bitmap::ResizeMode mode = IGNORE); uint8 BytesPerPixel() const; void PrintToLog() const; virtual void Restore(InStream& buffer); virtual void Serialize(OutStream& buffer) const; private: uint8 BytesPerPixel(Bitmap::ColorSpace space) const; int32 m_width; int32 m_height; ColorSpace m_color_space; Array<uint8> m_buffer; }; // inline definitions inline uint8 Bitmap::BytesPerPixel() const { return BytesPerPixel(m_color_space); } inline Bitmap::Bitmap(): m_width(0), m_height(0), m_color_space(RGB), m_buffer(0) { } inline Bitmap::Bitmap(int32 width, int32 height, Bitmap::ColorSpace space): m_width(width), m_height(height), m_color_space(space), m_buffer(m_width * m_height * BytesPerPixel()) { } inline int32 Bitmap::Width() const { return m_width; } inline int32 Bitmap::Height() const { return m_height; } inline uint8* Bitmap::Data() const { return *m_buffer; } inline int32 Bitmap::DataSize() const { return m_buffer.Length(); } inline Bitmap::ColorSpace Bitmap::Space() const { return m_color_space; } inline void Bitmap::PrintToLog() const { logger(TEXT("Bitmap: m_width: %d m_height: %d m_bpp: %d"), m_width, m_height, BytesPerPixel()); } } // dwarf #endif // D_BITMAP_H_
[ "waddlesplash@gmail.com" ]
waddlesplash@gmail.com
3586587aa1a3a2bc352c177a3dea740ac705451b
7a572c43d35f9f5bf026268ea36493f82e206846
/jsoncpp/json_reader.cpp
e6d620e83ec266d072d6f15d9439b355a13957d0
[]
no_license
xu561865/Test_Mac
f674cbd5c484b90135b8e5b46e951dc5f4cc6c09
ff51c667d7f88ca976e948761e37ff329a4eb4b3
refs/heads/master
2021-01-10T01:20:38.259352
2016-09-09T09:22:43
2016-09-09T09:22:43
47,551,617
0
0
null
null
null
null
UTF-8
C++
false
false
20,319
cpp
#include "json/reader.h" #include "json/value.h" #include <utility> #include <cstdio> #include <cassert> #include <cstring> #include <iostream> #include <stdexcept> #if _MSC_VER >= 1400 // VC++ 8.0 #pragma warning( disable : 4996 ) // disable warning about strdup being deprecated. #endif namespace Json { // Implementation of class Features // //////////////////////////////// Features::Features() : allowComments_( true ) , strictRoot_( false ) { } Features Features::all() { return Features(); } Features Features::strictMode() { Features features; features.allowComments_ = false; features.strictRoot_ = true; return features; } // Implementation of class Reader // //////////////////////////////// static inline bool in( Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4 ) { return c == c1 || c == c2 || c == c3 || c == c4; } static inline bool in( Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4, Reader::Char c5 ) { return c == c1 || c == c2 || c == c3 || c == c4 || c == c5; } static bool containsNewLine( Reader::Location begin, Reader::Location end ) { for ( ;begin < end; ++begin ) if ( *begin == '\n' || *begin == '\r' ) return true; return false; } static std::string codePointToUTF8(unsigned int cp) { std::string result; // based on description from http://en.wikipedia.org/wiki/UTF-8 if (cp <= 0x7f) { result.resize(1); result[0] = static_cast<char>(cp); } else if (cp <= 0x7FF) { result.resize(2); result[1] = static_cast<char>(0x80 | (0x3f & cp)); result[0] = static_cast<char>(0xC0 | (0x1f & (cp >> 6))); } else if (cp <= 0xFFFF) { result.resize(3); result[2] = static_cast<char>(0x80 | (0x3f & cp)); result[1] = 0x80 | static_cast<char>((0x3f & (cp >> 6))); result[0] = 0xE0 | static_cast<char>((0xf & (cp >> 12))); } else if (cp <= 0x10FFFF) { result.resize(4); result[3] = static_cast<char>(0x80 | (0x3f & cp)); result[2] = static_cast<char>(0x80 | (0x3f & (cp >> 6))); result[1] = static_cast<char>(0x80 | (0x3f & (cp >> 12))); result[0] = static_cast<char>(0xF0 | (0x7 & (cp >> 18))); } return result; } // Class Reader // ////////////////////////////////////////////////////////////////// Reader::Reader() : features_( Features::all() ) { } Reader::Reader( const Features &features ) : features_( features ) { } bool Reader::parse( const std::string &document, Value &root, bool collectComments ) { document_ = document; const char *begin = document_.c_str(); const char *end = begin + document_.length(); return parse( begin, end, root, collectComments ); } bool Reader::parse( std::istream& sin, Value &root, bool collectComments ) { //std::istream_iterator<char> begin(sin); //std::istream_iterator<char> end; // Those would allow streamed input from a file, if parse() were a // template function. // Since std::string is reference-counted, this at least does not // create an extra copy. std::string doc; std::getline(sin, doc, (char)EOF); return parse( doc, root, collectComments ); } bool Reader::parse( const char *beginDoc, const char *endDoc, Value &root, bool collectComments ) { if ( !features_.allowComments_ ) { collectComments = false; } begin_ = beginDoc; end_ = endDoc; collectComments_ = collectComments; current_ = begin_; lastValueEnd_ = 0; lastValue_ = 0; commentsBefore_ = ""; errors_.clear(); while ( !nodes_.empty() ) nodes_.pop(); nodes_.push( &root ); bool successful = readValue(); Token token; skipCommentTokens( token ); if ( collectComments_ && !commentsBefore_.empty() ) root.setComment( commentsBefore_, commentAfter ); if ( features_.strictRoot_ ) { if ( !root.isArray() && !root.isObject() ) { // Set error location to start of doc, ideally should be first token found in doc token.type_ = tokenError; token.start_ = beginDoc; token.end_ = endDoc; addError( "A valid JSON document must be either an array or an object value.", token ); return false; } } return successful; } bool Reader::readValue() { Token token; skipCommentTokens( token ); bool successful = true; if ( collectComments_ && !commentsBefore_.empty() ) { currentValue().setComment( commentsBefore_, commentBefore ); commentsBefore_ = ""; } switch ( token.type_ ) { case tokenObjectBegin: successful = readObject( token ); break; case tokenArrayBegin: successful = readArray( token ); break; case tokenNumber: successful = decodeNumber( token ); break; case tokenString: successful = decodeString( token ); break; case tokenTrue: currentValue() = true; break; case tokenFalse: currentValue() = false; break; case tokenNull: currentValue() = Value(); break; default: return addError( "Syntax error: value, object or array expected.", token ); } if ( collectComments_ ) { lastValueEnd_ = current_; lastValue_ = &currentValue(); } return successful; } void Reader::skipCommentTokens( Token &token ) { if ( features_.allowComments_ ) { do { readToken( token ); } while ( token.type_ == tokenComment ); } else { readToken( token ); } } bool Reader::expectToken( TokenType type, Token &token, const char *message ) { readToken( token ); if ( token.type_ != type ) return addError( message, token ); return true; } bool Reader::readToken( Token &token ) { skipSpaces(); token.start_ = current_; Char c = getNextChar(); bool ok = true; switch ( c ) { case '{': token.type_ = tokenObjectBegin; break; case '}': token.type_ = tokenObjectEnd; break; case '[': token.type_ = tokenArrayBegin; break; case ']': token.type_ = tokenArrayEnd; break; case '"': token.type_ = tokenString; ok = readString(); break; case '/': token.type_ = tokenComment; ok = readComment(); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case '-': token.type_ = tokenNumber; readNumber(); break; case 't': token.type_ = tokenTrue; ok = match( "rue", 3 ); break; case 'f': token.type_ = tokenFalse; ok = match( "alse", 4 ); break; case 'n': token.type_ = tokenNull; ok = match( "ull", 3 ); break; case ',': token.type_ = tokenArraySeparator; break; case ':': token.type_ = tokenMemberSeparator; break; case 0: token.type_ = tokenEndOfStream; break; default: ok = false; break; } if ( !ok ) token.type_ = tokenError; token.end_ = current_; return true; } void Reader::skipSpaces() { while ( current_ != end_ ) { Char c = *current_; if ( c == ' ' || c == '\t' || c == '\r' || c == '\n' ) ++current_; else break; } } bool Reader::match( Location pattern, int patternLength ) { if ( end_ - current_ < patternLength ) return false; int index = patternLength; while ( index-- ) if ( current_[index] != pattern[index] ) return false; current_ += patternLength; return true; } bool Reader::readComment() { Location commentBegin = current_ - 1; Char c = getNextChar(); bool successful = false; if ( c == '*' ) successful = readCStyleComment(); else if ( c == '/' ) successful = readCppStyleComment(); if ( !successful ) return false; if ( collectComments_ ) { CommentPlacement placement = commentBefore; if ( lastValueEnd_ && !containsNewLine( lastValueEnd_, commentBegin ) ) { if ( c != '*' || !containsNewLine( commentBegin, current_ ) ) placement = commentAfterOnSameLine; } addComment( commentBegin, current_, placement ); } return true; } void Reader::addComment( Location begin, Location end, CommentPlacement placement ) { assert( collectComments_ ); if ( placement == commentAfterOnSameLine ) { assert( lastValue_ != 0 ); lastValue_->setComment( std::string( begin, end ), placement ); } else { if ( !commentsBefore_.empty() ) commentsBefore_ += "\n"; commentsBefore_ += std::string( begin, end ); } } bool Reader::readCStyleComment() { while ( current_ != end_ ) { Char c = getNextChar(); if ( c == '*' && *current_ == '/' ) break; } return getNextChar() == '/'; } bool Reader::readCppStyleComment() { while ( current_ != end_ ) { Char c = getNextChar(); if ( c == '\r' || c == '\n' ) break; } return true; } void Reader::readNumber() { while ( current_ != end_ ) { if ( !(*current_ >= '0' && *current_ <= '9') && !in( *current_, '.', 'e', 'E', '+', '-' ) ) break; ++current_; } } bool Reader::readString() { Char c = 0; while ( current_ != end_ ) { c = getNextChar(); if ( c == '\\' ) getNextChar(); else if ( c == '"' ) break; } return c == '"'; } bool Reader::readObject( Token &tokenStart ) { Token tokenName; std::string name; currentValue() = Value( objectValue ); while ( readToken( tokenName ) ) { bool initialTokenOk = true; while ( tokenName.type_ == tokenComment && initialTokenOk ) initialTokenOk = readToken( tokenName ); if ( !initialTokenOk ) break; if ( tokenName.type_ == tokenObjectEnd && name.empty() ) // empty object return true; if ( tokenName.type_ != tokenString ) break; name = ""; if ( !decodeString( tokenName, name ) ) return recoverFromError( tokenObjectEnd ); Token colon; if ( !readToken( colon ) || colon.type_ != tokenMemberSeparator ) { return addErrorAndRecover( "Missing ':' after object member name", colon, tokenObjectEnd ); } Value &value = currentValue()[ name ]; nodes_.push( &value ); bool ok = readValue(); nodes_.pop(); if ( !ok ) // error already set return recoverFromError( tokenObjectEnd ); Token comma; if ( !readToken( comma ) || ( comma.type_ != tokenObjectEnd && comma.type_ != tokenArraySeparator && comma.type_ != tokenComment ) ) { return addErrorAndRecover( "Missing ',' or '}' in object declaration", comma, tokenObjectEnd ); } bool finalizeTokenOk = true; while ( comma.type_ == tokenComment && finalizeTokenOk ) finalizeTokenOk = readToken( comma ); if ( comma.type_ == tokenObjectEnd ) return true; } return addErrorAndRecover( "Missing '}' or object member name", tokenName, tokenObjectEnd ); } bool Reader::readArray( Token &tokenStart ) { currentValue() = Value( arrayValue ); skipSpaces(); if ( *current_ == ']' ) // empty array { Token endArray; readToken( endArray ); return true; } int index = 0; while ( true ) { Value &value = currentValue()[ index++ ]; nodes_.push( &value ); bool ok = readValue(); nodes_.pop(); if ( !ok ) // error already set return recoverFromError( tokenArrayEnd ); Token token; // Accept Comment after last item in the array. ok = readToken( token ); while ( token.type_ == tokenComment && ok ) { ok = readToken( token ); } bool badTokenType = ( token.type_ == tokenArraySeparator && token.type_ == tokenArrayEnd ); if ( !ok || badTokenType ) { return addErrorAndRecover( "Missing ',' or ']' in array declaration", token, tokenArrayEnd ); } if ( token.type_ == tokenArrayEnd ) break; } return true; } bool Reader::decodeNumber( Token &token ) { bool isDouble = false; for ( Location inspect = token.start_; inspect != token.end_; ++inspect ) { isDouble = isDouble || in( *inspect, '.', 'e', 'E', '+' ) || ( *inspect == '-' && inspect != token.start_ ); } if ( isDouble ) return decodeDouble( token ); Location current = token.start_; bool isNegative = *current == '-'; if ( isNegative ) ++current; Value::UInt threshold = (isNegative ? Value::UInt(-Value::minInt) : Value::maxUInt) / 10; Value::UInt value = 0; while ( current < token.end_ ) { Char c = *current++; if ( c < '0' || c > '9' ) return addError( "'" + std::string( token.start_, token.end_ ) + "' is not a number.", token ); if ( value >= threshold ) return decodeDouble( token ); value = value * 10 + Value::UInt(c - '0'); } if ( isNegative ) currentValue() = -Value::Int( value ); else if ( value <= Value::UInt(Value::maxInt) ) currentValue() = Value::Int( value ); else currentValue() = value; return true; } bool Reader::decodeDouble( Token &token ) { double value = 0; const int bufferSize = 32; int count; int length = int(token.end_ - token.start_); if ( length <= bufferSize ) { Char buffer[bufferSize]; memcpy( buffer, token.start_, length ); buffer[length] = 0; count = sscanf( buffer, "%lf", &value ); } else { std::string buffer( token.start_, token.end_ ); count = sscanf( buffer.c_str(), "%lf", &value ); } if ( count != 1 ) return addError( "'" + std::string( token.start_, token.end_ ) + "' is not a number.", token ); currentValue() = value; return true; } bool Reader::decodeString( Token &token ) { std::string decoded; if ( !decodeString( token, decoded ) ) return false; currentValue() = decoded; return true; } bool Reader::decodeString( Token &token, std::string &decoded ) { decoded.reserve( token.end_ - token.start_ - 2 ); Location current = token.start_ + 1; // skip '"' Location end = token.end_ - 1; // do not include '"' while ( current != end ) { Char c = *current++; if ( c == '"' ) break; else if ( c == '\\' ) { if ( current == end ) return addError( "Empty escape sequence in string", token, current ); Char escape = *current++; switch ( escape ) { case '"': decoded += '"'; break; case '/': decoded += '/'; break; case '\\': decoded += '\\'; break; case 'b': decoded += '\b'; break; case 'f': decoded += '\f'; break; case 'n': decoded += '\n'; break; case 'r': decoded += '\r'; break; case 't': decoded += '\t'; break; case 'u': { unsigned int unicode; if ( !decodeUnicodeCodePoint( token, current, end, unicode ) ) return false; decoded += codePointToUTF8(unicode); } break; default: return addError( "Bad escape sequence in string", token, current ); } } else { decoded += c; } } return true; } bool Reader::decodeUnicodeCodePoint( Token &token, Location &current, Location end, unsigned int &unicode ) { if ( !decodeUnicodeEscapeSequence( token, current, end, unicode ) ) return false; if (unicode >= 0xD800 && unicode <= 0xDBFF) { // surrogate pairs if (end - current < 6) return addError( "additional six characters expected to parse unicode surrogate pair.", token, current ); unsigned int surrogatePair; if (*(current++) == '\\' && *(current++)== 'u') { if (decodeUnicodeEscapeSequence( token, current, end, surrogatePair )) { unicode = 0x10000 + ((unicode & 0x3FF) << 10) + (surrogatePair & 0x3FF); } else return false; } else return addError( "expecting another \\u token to begin the second half of a unicode surrogate pair", token, current ); } return true; } bool Reader::decodeUnicodeEscapeSequence( Token &token, Location &current, Location end, unsigned int &unicode ) { if ( end - current < 4 ) return addError( "Bad unicode escape sequence in string: four digits expected.", token, current ); unicode = 0; for ( int index =0; index < 4; ++index ) { Char c = *current++; unicode *= 16; if ( c >= '0' && c <= '9' ) unicode += c - '0'; else if ( c >= 'a' && c <= 'f' ) unicode += c - 'a' + 10; else if ( c >= 'A' && c <= 'F' ) unicode += c - 'A' + 10; else return addError( "Bad unicode escape sequence in string: hexadecimal digit expected.", token, current ); } return true; } bool Reader::addError( const std::string &message, Token &token, Location extra ) { ErrorInfo info; info.token_ = token; info.message_ = message; info.extra_ = extra; errors_.push_back( info ); return false; } bool Reader::recoverFromError( TokenType skipUntilToken ) { int errorCount = int(errors_.size()); Token skip; while ( true ) { if ( !readToken(skip) ) errors_.resize( errorCount ); // discard errors caused by recovery if ( skip.type_ == skipUntilToken || skip.type_ == tokenEndOfStream ) break; } errors_.resize( errorCount ); return false; } bool Reader::addErrorAndRecover( const std::string &message, Token &token, TokenType skipUntilToken ) { addError( message, token ); return recoverFromError( skipUntilToken ); } Value & Reader::currentValue() { return *(nodes_.top()); } Reader::Char Reader::getNextChar() { if ( current_ == end_ ) return 0; return *current_++; } void Reader::getLocationLineAndColumn( Location location, int &line, int &column ) const { Location current = begin_; Location lastLineStart = current; line = 0; while ( current < location && current != end_ ) { Char c = *current++; if ( c == '\r' ) { if ( *current == '\n' ) ++current; lastLineStart = current; ++line; } else if ( c == '\n' ) { lastLineStart = current; ++line; } } // column & line start at 1 column = int(location - lastLineStart) + 1; ++line; } std::string Reader::getLocationLineAndColumn( Location location ) const { int line, column; getLocationLineAndColumn( location, line, column ); char buffer[18+16+16+1]; sprintf( buffer, "Line %d, Column %d", line, column ); return buffer; } std::string Reader::getFormatedErrorMessages() const { std::string formattedMessage; for ( Errors::const_iterator itError = errors_.begin(); itError != errors_.end(); ++itError ) { const ErrorInfo &error = *itError; formattedMessage += "* " + getLocationLineAndColumn( error.token_.start_ ) + "\n"; formattedMessage += " " + error.message_ + "\n"; if ( error.extra_ ) formattedMessage += "See " + getLocationLineAndColumn( error.extra_ ) + " for detail.\n"; } return formattedMessage; } std::istream& operator>>( std::istream &sin, Value &root ) { Json::Reader reader; bool ok = reader.parse(sin, root, true); //JSON_ASSERT( ok ); if (!ok) throw std::runtime_error(reader.getFormatedErrorMessages()); return sin; } } // namespace Json
[ "xuyi561865@sina.com" ]
xuyi561865@sina.com
acb1c79617ba4d2a9f928ef6efb7b0951d68fff2
4efd3bf53b563d06d98a5938fea0f9d758b006ad
/src/SynthLib2ParserExceptions.cpp
0d44c8b0855d0ac662b649f885c2cdf836a81187
[ "BSD-2-Clause" ]
permissive
sygus-tools/synthlib2parser
7004903eec704138568b749414d2e0b8a5a0f3bd
a1e409024d7c9d64b5e986c9ef34242005c68250
refs/heads/master
2020-07-15T00:19:27.233199
2017-07-03T09:15:52
2017-07-03T09:15:52
94,301,766
3
2
null
null
null
null
UTF-8
C++
false
false
3,271
cpp
// SynthLib2ParserExceptions.cpp --- // // Filename: SynthLib2ParserExceptions.cpp // Author: Abhishek Udupa // Created: Sat Jan 18 16:42:40 2014 (-0500) // // // Copyright (c) 2013, Abhishek Udupa, University of Pennsylvania // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // 3. All advertising materials mentioning features or use of this software // must display the following acknowledgement: // This product includes software developed by The University of Pennsylvania // 4. Neither the name of the University of Pennsylvania nor the // names of its contributors may be used to endorse or promote products // derived from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ''AS IS'' AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // // Code: #include "include/SynthLib2ParserExceptions.hpp" using namespace std; namespace SynthLib2Parser { SynthLib2ParserException::SynthLib2ParserException() : ExceptionInfo("Unspecified") { // Nothing here } SynthLib2ParserException::SynthLib2ParserException(const string& ExceptionInfo) : ExceptionInfo(ExceptionInfo) { // Nothing here } SynthLib2ParserException::~SynthLib2ParserException() noexcept (true) { // Nothing here } const char* SynthLib2ParserException::what() const throw() { return ExceptionInfo.c_str(); } MalformedLiteralException::MalformedLiteralException(const string& LiteralString, const string& Suffix) { ostringstream sstr; sstr << "The literal \"" << LiteralString << "\" is malformed" << endl; sstr << "Details: " << Suffix; ExceptionInfo = sstr.str(); } MalformedLiteralException::~MalformedLiteralException() noexcept (true) { // Nothing here } ostream& operator << (ostream& str, const SynthLib2ParserException& Exc) { str << Exc.what(); return str; } } /* End namespace */ // // SynthLib2ParserExceptions.cpp ends here
[ "ammarbenkhadra@gmail.com" ]
ammarbenkhadra@gmail.com
6cf8759f99479d0502629df24bada59371f70329
907ed11cf4d9b01483a31b582dd1fc9e739d5801
/include/donutbreakdownchart.h
1b4162703da3ab3034f5e936912b25e45e75d240
[]
no_license
YmiR1710/BachelorWork
beacc265a102f345e47f1b99e481c3157bac712c
ae7449196a79c1cca9ae72e2d16f3c254fa55a1d
refs/heads/master
2023-04-30T07:44:33.034982
2021-06-01T07:41:26
2021-06-01T07:41:26
337,137,522
0
0
null
2021-04-10T09:40:36
2021-02-08T16:29:06
C++
UTF-8
C++
false
false
485
h
#ifndef DONUTBREAKDOWNCHART_H #define DONUTBREAKDOWNCHART_H #include <QtCharts/QChart> #include <QtCharts/QPieSeries> QT_CHARTS_USE_NAMESPACE class DonutBreakdownChart : public QChart { Q_OBJECT public: DonutBreakdownChart(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = {}); void addBreakdownSeries(QPieSeries *series, QColor color); private: void recalculateAngles() const; void updateLegendMarkers() const; QPieSeries *m_mainSeries; }; #endif
[ "volianskyi@ucu.edu.ua" ]
volianskyi@ucu.edu.ua
3bc0053c231a2be9bbe66e04124b9e0bc133993b
c7d44569192c48c84b9cca6d62286c04e9cb6468
/include/process.h
50a7758eb956b1d7cf967e7cb396a0e9710c678e
[ "MIT" ]
permissive
ddonco/CppND-System-Monitor
5efb6be93dd385ddfdd8b436c036b32f798d5d7e
45e54aacdce1838d3ebe1cadf9df603f5d9c85a1
refs/heads/master
2021-01-03T17:48:18.402566
2020-02-17T00:10:33
2020-02-17T00:10:33
240,176,500
0
0
null
null
null
null
UTF-8
C++
false
false
491
h
#ifndef PROCESS_H #define PROCESS_H #include <iostream> #include <string> /* Basic class for Process representation It contains relevant attributes as shown below */ class Process { public: Process(int pid = 0) : pid_(pid) { cpuUtil_ = this->CpuUtilization(); } int Pid(); std::string User(); std::string Command(); float CpuUtilization(); std::string Ram(); long int UpTime(); bool operator<(Process const& a) const; private: int pid_; float cpuUtil_{0}; }; #endif
[ "donohue.d.f@gmail.com" ]
donohue.d.f@gmail.com
7f1eb5d6903b82883f90e5c0b9fd33bd6e69f481
4130b36e09feb24f16bdbbc1fa3e1d6659c0d439
/congcongclient/Classes/ClientHN_THJ/Game/MENJI/Setting/TLJSettingPanel.h
573b82f7e119e1d5240753b0752ef0ea1b85d526
[ "MIT" ]
permissive
cnceo/18_TTL
b48eaf46f93b289047769a89bbdb749c14720a42
c8fc3fe7b7a0acad2b2cb5e80e96219b6257f0e4
refs/heads/master
2020-04-09T04:01:14.354570
2018-12-01T06:44:23
2018-12-01T06:44:23
null
0
0
null
null
null
null
UTF-8
C++
false
false
752
h
#pragma once #include "CommonHeader/CommonHeader.h" #include "GUI/CCControlExtension/CCControl.h" #include "SimpleAudioEngine.h" #include "Game/Script/SoundFun.h" USING_NS_CC_EXT; class TLJSettingPanel : public cocos2d::Node , public FvSingleton<TLJSettingPanel> { public: TLJSettingPanel(); ~TLJSettingPanel(); bool init(); void initButton(); void show(); void hide(); void Button_ChangeAccount(cocos2d::Ref*, WidgetUserInfo*); void Button_Close(cocos2d::Ref*, WidgetUserInfo*); void Slider_Sound(cocos2d::Ref* ref, cocos2d::extension::Control::EventType eventType); void Slider_Effect(cocos2d::Ref* ref, cocos2d::extension::Control::EventType eventType); private: ControlSlider* m_SoundSlider; ControlSlider* m_EffectSlider; };
[ "taotingfu819@163.com" ]
taotingfu819@163.com
877a6543eb81dd20377918dccda685f363e64b2d
7a01fb04eda4110409e65f8880520bc4fcb8f4a6
/Volume_100/10009.cpp
b7a5d23c38a3015d821685ffddd4d2e0626c48fc
[]
no_license
rawsk/AOJ
392ee01226181163bc947645adc1e3cc70ca71ac
2fbfd8cff3a824e539ed9896971ccdfa862a2d51
refs/heads/master
2021-05-31T22:25:32.637611
2016-06-23T08:24:40
2016-06-23T08:24:40
null
0
0
null
null
null
null
UTF-8
C++
false
false
177
cpp
#include <iostream> #include <cmath> #include <iomanip> using namespace std; int main(){ double r; cin>>r; cout<<fixed<<setprecision(5)<<r*r*M_PI<<" "<<2*r*M_PI<<endl; }
[ "jumpei@MacBook-Air.local" ]
jumpei@MacBook-Air.local
233a9057287fa14ee25d091c2763ef9015a7285a
889eeb8faad7f6e35d836ab353962b9202b47cd2
/other/CppAlgs/mLib/mLibBinaryTree.cpp
4c123c8f2b3b51270b90454ae945d9d6f707c811
[]
no_license
blacksea3/Cpp-STL-test
36e6bfb066b0a489796f002f83da8afa6ccc50d7
897a54149a8a84262b890505f400dcfb2938876f
refs/heads/master
2020-06-08T12:26:53.438569
2020-02-12T03:17:16
2020-02-12T03:17:16
193,228,023
0
0
null
null
null
null
UTF-8
C++
false
false
793
cpp
#include "mLibBinaryTree.hpp" #include <map> namespace mLib { void mLibBinaryTreeClassTest() { mbinary_searchtree<int> mbs; cout << mbs.remove(3) << endl; mbs.inorder(); cout << endl; cout << mbs.insert(3) << endl; cout << mbs.insert(2) << endl; cout << mbs.insert(1) << endl; cout << mbs.insert(4) << endl; cout << mbs.insert(1) << endl; cout << mbs.insert(3) << endl; cout << mbs.insert(1) << endl; mbs.inorder(); cout << endl; cout << mbs.find(3) << endl; cout << mbs.find(5) << endl; cout << mbs.find(1) << endl; mLib::mvector<int> res = mbs.RangeSearch(2, 4); for (size_t i = 0; i < res.getSize(); ++i) cout << res[i] << " "; cout << endl; cout << mbs.remove(3) << endl; mbs.inorder(); cout << endl; cout << mbs.find(3) << endl; } }
[ "17865191779@163.com" ]
17865191779@163.com
ceabd88f700a98ebf520193f2f77ab05b38c406e
494fd6214560ce59db881f2614b7820bd092349f
/Source/ZTGame/ZTGameProjectile.cpp
d8714ff37725e66f2af00a34397b1c301c5ef391
[]
no_license
ShuTheWise/ZTGame
4d0437feb1a76244879c2fa42e73f84bb304ccef
8d32f4b4dba4a47624513326589accb22b8ec721
refs/heads/master
2020-06-24T08:21:09.085098
2019-07-30T08:55:46
2019-07-30T08:55:46
198,910,886
0
1
null
null
null
null
UTF-8
C++
false
false
1,857
cpp
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. #include "ZTGameProjectile.h" #include "DestructibleCube.h" #include "GameFramework/ProjectileMovementComponent.h" #include "Components/SphereComponent.h" AZTGameProjectile::AZTGameProjectile() { // Use a sphere as a simple collision representation CollisionComp = CreateDefaultSubobject<USphereComponent>(TEXT("SphereComp")); CollisionComp->InitSphereRadius(5.0f); CollisionComp->BodyInstance.SetCollisionProfileName("Projectile"); CollisionComp->OnComponentHit.AddDynamic(this, &AZTGameProjectile::OnHit); // set up a notification for when this component hits something blocking // Players can't walk on it CollisionComp->SetWalkableSlopeOverride(FWalkableSlopeOverride(WalkableSlope_Unwalkable, 0.f)); CollisionComp->CanCharacterStepUpOn = ECB_No; // Set as root component RootComponent = CollisionComp; // Use a ProjectileMovementComponent to govern this projectile's movement ProjectileMovement = CreateDefaultSubobject<UProjectileMovementComponent>(TEXT("ProjectileComp")); ProjectileMovement->UpdatedComponent = CollisionComp; ProjectileMovement->InitialSpeed = 3000.f; ProjectileMovement->MaxSpeed = 3000.f; ProjectileMovement->bRotationFollowsVelocity = true; ProjectileMovement->bShouldBounce = true; // Die after 3 seconds by default InitialLifeSpan = 3.0f; //networking bReplicates = true; bReplicateMovement = true; } void AZTGameProjectile::OnHit(UPrimitiveComponent* HitComp, AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit) { // Only add impulse and destroy projectile if we hit a physics if ((OtherActor != NULL) && (OtherActor != this) && (OtherComp != NULL) && OtherComp->IsSimulatingPhysics()) { OtherComp->AddImpulseAtLocation(GetVelocity() * 100.0f, GetActorLocation()); Destroy(); } }
[ "wookie.kandziora@gmail.com" ]
wookie.kandziora@gmail.com
cc7fc05529d4280deda0c015110013d2af4c5b8b
ed1cd6b5bf756de2ae9e10e0a50b8a5908b7bbae
/src/PotThrowingApp.cpp
7d894a099c3df1d8caec086b515f4dd6e6afb14b
[]
no_license
benthejack/PotThrowing
d5ae00f6f5fde78a0617262cf1df1be0b8e4936b
c69c5af6faa67eee5cf4718b8612058420f361e1
refs/heads/master
2020-04-15T22:48:00.882328
2013-07-16T04:46:30
2013-07-16T04:46:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,651
cpp
#include "cinder/app/AppBasic.h" #include "cinder/gl/gl.h" #include "TubeGenerator.h" #include "GeometryRenderer.h" #include "LayerManager.h" using namespace ci; using namespace ci::app; using namespace std; using namespace EyeCandy::GeomUtils; using namespace EyeCandy::GfxUtils; class PotThrowingApp : public AppBasic { public: void setup(); void mouseDown( MouseEvent event ); void mouseUp( MouseEvent event ); void update(); void draw(); private: GeometryGenerator_ptr tube; LayerManager_ptr layers; GeomRenderer_ptr rend; float rotation; bool mousePressed; }; void PotThrowingApp::setup() { mousePressed = false; rotation = 0; layers = LayerManager_ptr(new LayerManager(getWindowWidth(), getWindowHeight())); Layer_ptr tubeLayer = layers->pushLayer(); tube = GeometryGenerator_ptr(new TubeGenerator(200,150,50, Vec3i(40,50,2))); tube->generate(); rend = GeomRenderer_ptr(new GeometryRenderer(tube)); rend->setPosition(Vec3f(getWindowWidth()/2, getWindowHeight()/2, 0)); rend->renderWireFrame(); tubeLayer->addRenderable(rend); } void PotThrowingApp::mouseDown( MouseEvent event ) { mousePressed = true; } void PotThrowingApp::mouseUp( MouseEvent event ) { mousePressed = false; } void PotThrowingApp::update() { if(mousePressed){ rotation += 0.01; } } void PotThrowingApp::draw() { // clear out the window with black gl::clear( Color( 0, 0, 0 ) ); ci::Quaternion<float> rot(ci::Vec3f(0,1,0), rotation); rend->setRotation(rot); layers->render(); } CINDER_APP_BASIC( PotThrowingApp, RendererGl )
[ "benthejack@gmail.com" ]
benthejack@gmail.com
711ece853d3b92e98e9c3022aa53d02f135a52cb
c9ee04b6f891c9aec01ce78b0ce939e4188e0c48
/ping-pong/pong/pong.ino
ebd2e72dcddb6e2efcc45591f80298e40f64ae09
[]
no_license
grzsud13/tinybrd-examples
9ca6a6be897939e9fd919ffe6f1cad17bcf859e6
5243be51d079bcb2eed7f1e5443f8e01d5ac7f87
refs/heads/master
2021-01-18T02:15:05.427511
2016-07-29T15:33:30
2016-07-29T15:33:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
720
ino
#include <SPI.h> #include <Radio.h> #define LED 1 void lightOn(unsigned tme = 1000) { digitalWrite(LED, LOW); delay(tme); digitalWrite(LED, HIGH); delay(tme); } void setup() { // put your setup code here, to run once: byte address[3] = {1, 0, 0}; Radio.begin(address, 100); pinMode(LED, OUTPUT); digitalWrite(LED, HIGH); for (byte i = 0; i < 5; i++) { lightOn(100); } } byte pingAddr[3] = { 0, 0, 1 }; byte payload; void loop() { // put your main code here, to run repeatedly: if (Radio.available()) { lightOn(100); Radio.read(&payload); if (payload == 66) { payload = 99; Radio.write(pingAddr, payload); Radio.flush(); lightOn(400); } } }
[ "rugowski@nhw.pl" ]
rugowski@nhw.pl