Overview
Comment: | Add CancelTriggers and DeferTriggers instructions. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
68320feb4f951c0efd0011f7b2d14225 |
User & Date: | user on 2023-08-10 02:50:24 |
Other Links: | manifest | tags |
Context
2023-08-14
| ||
03:58 | Add incomplete tutorial document file. (Hopefully can be improved in future) check-in: cd748e0fe5 user: user tags: trunk | |
2023-08-10
| ||
02:50 | Add CancelTriggers and DeferTriggers instructions. check-in: 68320feb4f user: user tags: trunk | |
2023-08-06
| ||
19:44 | Add some additional checks to JumpTo for Compatible classes only. This fixes three levels, one each in HEARTS1, HEARTS4, and SUPERHRO. check-in: 22d38aadb5 user: user tags: trunk | |
Changes
Modified class.doc from [8def31bf08] to [ccc3c5d04b].
︙ | ︙ | |||
1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 | bxor ( in1 in2 -- out ) Bitwise XOR. c? ( any -- bool ) True if the value is a class, or false if it is any other type. Error if it is a sound. (case <cases...>) ( any -- ??? ) A case block. Read one value from stack; find which case it matches, and then push or jump to the result for that case. See the section below about case blocks for details. chain ( any -- bool ) If given an object of the same class as the current object, selects that | > > > > > > > > | 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 | bxor ( in1 in2 -- out ) Bitwise XOR. c? ( any -- bool ) True if the value is a class, or false if it is any other type. Error if it is a sound. CancelTriggers ( -- bits ) ** Cancel all triggers for this object, including Moved, Departed, and Arrived. The return value has bit0 set for Moved, bit1 set for Departed, and bit2 set for Arrived, according to which triggers have been pending. ,CancelTriggers ( obj -- bits ) ** Like CancelTriggers but for a specified object instead of this one. (case <cases...>) ( any -- ??? ) A case block. Read one value from stack; find which case it matches, and then push or jump to the result for that case. See the section below about case blocks for details. chain ( any -- bool ) If given an object of the same class as the current object, selects that |
︙ | ︙ | |||
1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 | Data ( string index -- ... ) Read string data. If the index is a number, it is the zero-based number of which data block in the string to read; all of the data in that block is pushed to the stack. If there isn't enough data blocks, then nothing will be pushed to the stack. If the index is the KEY message, then all of the key codes of the quiz buttons in the string are push to stack. DelInventory ( class image -- ) ** Delete an item from the inventory; see SetInventory for more details. Delta ( in1 in2 -- out ) Subtracts the smaller input from the larger (unsigned). Destroy ( -- value ) ** | > > > > > > > > > > > | 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 | Data ( string index -- ... ) Read string data. If the index is a number, it is the zero-based number of which data block in the string to read; all of the data in that block is pushed to the stack. If there isn't enough data blocks, then nothing will be pushed to the stack. If the index is the KEY message, then all of the key codes of the quiz buttons in the string are push to stack. DeferTriggers ( -- ) ** Any triggers that would be executed during the current loop of triggers is deferred until the next such loop; the Arrived, Departed, and Moved variables are updated with the triggers that would have been done so that they will be set to be executed during the next trigger loop. If the Compatible flag is set then the meaning is a bit different and the Arrived, Departed, and Moved variables are unchanged. ,DeferTriggers ( obj -- ) ** Like DeferTriggers but for a specified object instead of this one. DelInventory ( class image -- ) ** Delete an item from the inventory; see SetInventory for more details. Delta ( in1 in2 -- out ) Subtracts the smaller input from the larger (unsigned). Destroy ( -- value ) ** |
︙ | ︙ |
Modified exec.c from [e4a58f292e] to [dbcc43fd0c].
︙ | ︙ | |||
2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 | n=playfield[x+y*64-65]; while(n!=VOIDLINK) { m=objects[n]->up; v_trigger(from,n,v); n=m; } } static void v_sweep(Uint32 from,Value arg3) { Value arg2=Pop(); Value arg1=Pop(); Value v=Pop(); Uint8 hv=v_bool(Pop()); Uint16 msg=v.u; | > > > > > > > > > > > > > > > > > > > > > > | 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 | n=playfield[x+y*64-65]; while(n!=VOIDLINK) { m=objects[n]->up; v_trigger(from,n,v); n=m; } } static Uint32 cancel_triggers(Uint32 obj) { Object*o=objects[obj]; Uint8 r=0; if(o->oflags&(OF_MOVED|OF_MOVED2)) r|=0x01,o->oflags&=~(OF_MOVED|OF_MOVED2); if(o->departed2 || o->departed) r|=0x02,o->departed2=o->departed=0; if(o->arrived2 || o->arrived) r|=0x04,o->arrived2=o->arrived=0; return r; } static void defer_triggers(Uint32 obj) { Object*o=objects[obj]; if(classes[o->class]->cflags&CF_COMPATIBLE) { o->arrived2=o->departed2=1; o->oflags|=OF_MOVED2; } else { o->arrived|=o->arrived2; o->departed|=o->departed2; o->arrived2=o->departed2=0; if(o->oflags&OF_MOVED2) o->oflags=(o->oflags|OF_MOVED)&~OF_MOVED2; } } static void v_sweep(Uint32 from,Value arg3) { Value arg2=Pop(); Value arg1=Pop(); Value v=Pop(); Uint8 hv=v_bool(Pop()); Uint16 msg=v.u; |
︙ | ︙ | |||
3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 | case OP_BROADCASTSUMEX: StackReq(5,1); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); Push(v_broadcast(obj,t1,t2,t3,t4,t5,1)); break; case OP_BUSY: StackReq(0,1); if(o->oflags&OF_BUSY) Push(NVALUE(1)); else Push(NVALUE(0)); break; case OP_BUSY_C: StackReq(1,1); GetFlagOf(OF_BUSY); break; case OP_BUSY_E: NoIgnore(); StackReq(1,0); if(v_bool(Pop())) o->oflags|=OF_BUSY; else o->oflags&=~OF_BUSY; break; case OP_BUSY_EC: NoIgnore(); StackReq(2,0); SetFlagOf(OF_BUSY); break; case OP_BXOR: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); Push(NVALUE(t1.u^t2.u)); break; case OP_CALLSUB: execute_program(code,code[ptr++],obj); break; case OP_CASE: StackReq(1,1); t1=Pop(); ptr=v_case(code,ptr,t1); break; case OP_CHAIN: StackReq(1,1); t1=Pop(); i=v_chain(t1,o->class); if(i==VOIDLINK) { Push(NVALUE(1)); } else { o=objects[obj=i]; Push(NVALUE(0)); } break; case OP_CHEBYSHEV: StackReq(1,1); t1=Pop(); i=chebyshev(obj,v_object(t1)); Push(NVALUE(i)); break; case OP_CHEBYSHEV_C: StackReq(2,1); t2=Pop(); t1=Pop(); i=chebyshev(v_object(t1),v_object(t2)); Push(NVALUE(i)); break; case OP_CLASS: StackReq(0,1); Push(CVALUE(o->class)); break; case OP_CLASS_C: StackReq(1,1); Push(GetVariableOf(class,CVALUE)); break; case OP_CLEAR: t1.t=TY_NUMBER; while(vstackptr>0) { t1=Pop(); if(t1.t==TY_MARK) break; } if(t1.t!=TY_MARK) Throw("No mark"); break; | > > | 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 | case OP_BROADCASTSUMEX: StackReq(5,1); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); Push(v_broadcast(obj,t1,t2,t3,t4,t5,1)); break; case OP_BUSY: StackReq(0,1); if(o->oflags&OF_BUSY) Push(NVALUE(1)); else Push(NVALUE(0)); break; case OP_BUSY_C: StackReq(1,1); GetFlagOf(OF_BUSY); break; case OP_BUSY_E: NoIgnore(); StackReq(1,0); if(v_bool(Pop())) o->oflags|=OF_BUSY; else o->oflags&=~OF_BUSY; break; case OP_BUSY_EC: NoIgnore(); StackReq(2,0); SetFlagOf(OF_BUSY); break; case OP_BXOR: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); Push(NVALUE(t1.u^t2.u)); break; case OP_CALLSUB: execute_program(code,code[ptr++],obj); break; case OP_CANCELTRIGGERS: NoIgnore(); StackReq(0,1); i=cancel_triggers(obj); Push(NVALUE(i)); break; case OP_CANCELTRIGGERS_C: NoIgnore(); StackReq(1,1); i=v_object(Pop()); if(i!=VOIDLINK) i=cancel_triggers(i); Push(NVALUE(i)); break; case OP_CASE: StackReq(1,1); t1=Pop(); ptr=v_case(code,ptr,t1); break; case OP_CHAIN: StackReq(1,1); t1=Pop(); i=v_chain(t1,o->class); if(i==VOIDLINK) { Push(NVALUE(1)); } else { o=objects[obj=i]; Push(NVALUE(0)); } break; case OP_CHEBYSHEV: StackReq(1,1); t1=Pop(); i=chebyshev(obj,v_object(t1)); Push(NVALUE(i)); break; case OP_CHEBYSHEV_C: StackReq(2,1); t2=Pop(); t1=Pop(); i=chebyshev(v_object(t1),v_object(t2)); Push(NVALUE(i)); break; case OP_CLASS: StackReq(0,1); Push(CVALUE(o->class)); break; case OP_CLASS_C: StackReq(1,1); Push(GetVariableOf(class,CVALUE)); break; case OP_CLEAR: t1.t=TY_NUMBER; while(vstackptr>0) { t1=Pop(); if(t1.t==TY_MARK) break; } if(t1.t!=TY_MARK) Throw("No mark"); break; |
︙ | ︙ | |||
3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 | case OP_CREATE: NoIgnore(); StackReq(5,1); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); Push(v_create(obj,t1,t2,t3,t4,t5)); break; case OP_CREATE_D: NoIgnore(); StackReq(5,0); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); v_create(obj,t1,t2,t3,t4,t5); break; case OP_CRUSH: StackReq(0,1); if(o->oflags&OF_CRUSH) Push(NVALUE(1)); else Push(NVALUE(0)); break; case OP_CRUSH_C: StackReq(1,1); GetFlagOf(OF_CRUSH); break; case OP_CRUSH_E: NoIgnore(); StackReq(1,0); if(v_bool(Pop())) o->oflags|=OF_CRUSH; else o->oflags&=~OF_CRUSH; break; case OP_CRUSH_EC: NoIgnore(); StackReq(2,0); SetFlagOf(OF_CRUSH); break; case OP_DATA: StackReq(2,1); t2=Pop(); t1=Pop(); v_data(t1,t2); break; case OP_DELINVENTORY: StackReq(2,0); t2=Pop(); t1=Pop(); v_delete_inventory(t1,t2); break; case OP_DELTA: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); Push(NVALUE(t1.u>t2.u?t1.u-t2.u:t2.u-t1.u)); break; case OP_DENSITY: StackReq(0,1); Push(NVALUE(o->density)); break; case OP_DENSITY_C: StackReq(1,1); Push(GetVariableOrAttributeOf(density,NVALUE)); break; case OP_DENSITY_E: NoIgnore(); StackReq(1,0); t1=Pop(); Numeric(t1); change_density(obj,t1.s); break; case OP_DENSITY_E16: NoIgnore(); StackReq(1,0); t1=Pop(); Numeric(t1); change_density(obj,t1.s&0xFFFF); break; case OP_DENSITY_EC: NoIgnore(); StackReq(2,0); t1=Pop(); Numeric(t1); change_density(v_object(Pop()),t1.s); break; | > > | 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 | case OP_CREATE: NoIgnore(); StackReq(5,1); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); Push(v_create(obj,t1,t2,t3,t4,t5)); break; case OP_CREATE_D: NoIgnore(); StackReq(5,0); t5=Pop(); t4=Pop(); t3=Pop(); t2=Pop(); t1=Pop(); v_create(obj,t1,t2,t3,t4,t5); break; case OP_CRUSH: StackReq(0,1); if(o->oflags&OF_CRUSH) Push(NVALUE(1)); else Push(NVALUE(0)); break; case OP_CRUSH_C: StackReq(1,1); GetFlagOf(OF_CRUSH); break; case OP_CRUSH_E: NoIgnore(); StackReq(1,0); if(v_bool(Pop())) o->oflags|=OF_CRUSH; else o->oflags&=~OF_CRUSH; break; case OP_CRUSH_EC: NoIgnore(); StackReq(2,0); SetFlagOf(OF_CRUSH); break; case OP_DATA: StackReq(2,1); t2=Pop(); t1=Pop(); v_data(t1,t2); break; case OP_DEFERTRIGGERS: NoIgnore(); defer_triggers(obj); break; case OP_DEFERTRIGGERS_C: NoIgnore(); StackReq(1,0); i=v_object(Pop()); if(i!=VOIDLINK) defer_triggers(i); break; case OP_DELINVENTORY: StackReq(2,0); t2=Pop(); t1=Pop(); v_delete_inventory(t1,t2); break; case OP_DELTA: StackReq(2,1); t2=Pop(); Numeric(t2); t1=Pop(); Numeric(t1); Push(NVALUE(t1.u>t2.u?t1.u-t2.u:t2.u-t1.u)); break; case OP_DENSITY: StackReq(0,1); Push(NVALUE(o->density)); break; case OP_DENSITY_C: StackReq(1,1); Push(GetVariableOrAttributeOf(density,NVALUE)); break; case OP_DENSITY_E: NoIgnore(); StackReq(1,0); t1=Pop(); Numeric(t1); change_density(obj,t1.s); break; case OP_DENSITY_E16: NoIgnore(); StackReq(1,0); t1=Pop(); Numeric(t1); change_density(obj,t1.s&0xFFFF); break; case OP_DENSITY_EC: NoIgnore(); StackReq(2,0); t1=Pop(); Numeric(t1); change_density(v_object(Pop()),t1.s); break; |
︙ | ︙ |
Modified instruc from [2fda304d27] to [f96da63b9c].
︙ | ︙ | |||
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | BroadcastAndEx *BroadcastClass ; for (Broadcast [class]) .BroadcastEx ; broadcast with three arguments BroadcastList ; Broadcast, pushing results to stack BroadcastListEx BroadcastSum ; Broadcast, but result is sum of return values BroadcastSumEx chain ,Chebyshev ,Coloc ,Connect .Create Data DelInventory Delta .,Destroy ,FakeMove ,FindConnection FlushClass ,FlushObj | > > | 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 | BroadcastAndEx *BroadcastClass ; for (Broadcast [class]) .BroadcastEx ; broadcast with three arguments BroadcastList ; Broadcast, pushing results to stack BroadcastListEx BroadcastSum ; Broadcast, but result is sum of return values BroadcastSumEx ,CancelTriggers chain ,Chebyshev ,Coloc ,Connect .Create Data ,DeferTriggers DelInventory Delta .,Destroy ,FakeMove ,FindConnection FlushClass ,FlushObj |
︙ | ︙ |
Modified instruc.h from [ee3354bb1f] to [37c1270125].
︙ | ︙ | |||
344 345 346 347 348 349 350 | #define OP_BROADCASTCLASS 32930 #define OP_BROADCASTEX 32931 #define OP_BROADCASTEX_D 41123 #define OP_BROADCASTLIST 32932 #define OP_BROADCASTLISTEX 32933 #define OP_BROADCASTSUM 32934 #define OP_BROADCASTSUMEX 32935 | > > | | | | | | | | | | > > | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > | | | | | | > | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 | #define OP_BROADCASTCLASS 32930 #define OP_BROADCASTEX 32931 #define OP_BROADCASTEX_D 41123 #define OP_BROADCASTLIST 32932 #define OP_BROADCASTLISTEX 32933 #define OP_BROADCASTSUM 32934 #define OP_BROADCASTSUMEX 32935 #define OP_CANCELTRIGGERS 32936 #define OP_CANCELTRIGGERS_C 34984 #define OP_CHAIN 32937 #define OP_CHEBYSHEV 32938 #define OP_CHEBYSHEV_C 34986 #define OP_COLOC 32939 #define OP_COLOC_C 34987 #define OP_CONNECT 32940 #define OP_CONNECT_C 34988 #define OP_CREATE 32941 #define OP_CREATE_D 41133 #define OP_DATA 32942 #define OP_DEFERTRIGGERS 32943 #define OP_DEFERTRIGGERS_C 34991 #define OP_DELINVENTORY 32944 #define OP_DELTA 32945 #define OP_DESTROY 32946 #define OP_DESTROY_C 34994 #define OP_DESTROY_D 41138 #define OP_DESTROY_CD 43186 #define OP_FAKEMOVE 32947 #define OP_FAKEMOVE_C 34995 #define OP_FINDCONNECTION 32948 #define OP_FINDCONNECTION_C 34996 #define OP_FLUSHCLASS 32949 #define OP_FLUSHOBJ 32950 #define OP_FLUSHOBJ_C 34998 #define OP_GETINVENTORY 32951 #define OP_HEIGHTAT 32952 #define OP_HITME 32953 #define OP_IGNOREKEY 32954 #define OP_INTMOVE 32955 #define OP_INTMOVE_C 35003 #define OP_INTMOVE_D 41147 #define OP_INTMOVE_CD 43195 #define OP_JUMPTO 32956 #define OP_JUMPTO_C 35004 #define OP_JUMPTO_D 41148 #define OP_JUMPTO_CD 43196 #define OP_LOC 32957 #define OP_LOC_C 35005 #define OP_LOCATEME 32958 #define OP_LOCATEME_C 35006 #define OP_LOSELEVEL 32959 #define OP_MANHATTAN 32960 #define OP_MANHATTAN_C 35008 #define OP_MAXINVENTORY 32961 #define OP_MORTON 32962 #define OP_MORTON_C 35010 #define OP_MOVE 32963 #define OP_MOVE_C 35011 #define OP_MOVE_D 41155 #define OP_MOVE_CD 43203 #define OP_MOVEPLUS 32964 #define OP_MOVEPLUS_C 35012 #define OP_MOVEPLUS_D 41156 #define OP_MOVEPLUS_CD 43204 #define OP_MOVETO 32965 #define OP_MOVETO_C 35013 #define OP_MOVETO_D 41157 #define OP_MOVETO_CD 43205 #define OP_PLUSMOVE 32966 #define OP_PLUSMOVE_C 35014 #define OP_PLUSMOVE_D 41158 #define OP_PLUSMOVE_CD 43206 #define OP_MINUSMOVE 32967 #define OP_MINUSMOVE_C 35015 #define OP_MINUSMOVE_D 41159 #define OP_MINUSMOVE_CD 43207 #define OP_NEWX 32968 #define OP_NEWXY 32969 #define OP_NEWY 32970 #define OP_OBJABOVE 32971 #define OP_OBJABOVE_C 35019 #define OP_OBJBELOW 32972 #define OP_OBJBELOW_C 35020 #define OP_OBJBOTTOMAT 32973 #define OP_OBJCLASSAT 32974 #define OP_OBJDIR 32975 #define OP_OBJDIR_C 35023 #define OP_OBJLAYERAT 32976 #define OP_OBJMOVINGTO 32977 #define OP_OBJTOPAT 32978 #define OP_POPUP 32979 #define OP_POPUPARGS 32980 #define OP_REL 32981 #define OP_REL_C 35029 #define OP_REPLACE 32982 #define OP_REPLACE_D 41174 #define OP_SEEK 32983 #define OP_SEEK_C 35031 #define OP_SEND 32984 #define OP_SEND_C 35032 #define OP_SEND_D 41176 #define OP_SEND_CD 43224 #define OP_SENDEX 32985 #define OP_SENDEX_C 35033 #define OP_SENDEX_D 41177 #define OP_SENDEX_CD 43225 #define OP_SETINVENTORY 32986 #define OP_SOUND 32987 #define OP_SWEEP 32988 #define OP_SWEEPEX 32989 #define OP_SYNCHRONIZE 32990 #define OP_TARGET 32991 #define OP_TARGET_C 35039 #define OP_TRACE 32992 #define OP_TRACESTACK 32993 #define OP_TRACESTACK_C 35041 #define OP_TRIGGER 32994 #define OP_TRIGGERAT 32995 #define OP_VOLUMEAT 32996 #define OP_WALKABLE 32997 #define OP_WALKABLE_C 35045 #define OP_WINLEVEL 32998 #define OP_WINLEVEL_C 35046 #define OP_XDIR 32999 #define OP_XDIR_C 35047 #define OP_XSTEP 33000 #define OP_XSTEP_C 35048 #define OP_XYDIR 33001 #define OP_YDIR 33002 #define OP_YDIR_C 35050 #define OP_YSTEP 33003 #define OP_YSTEP_C 35051 #define OP_MARK 33004 #define OP_TMARK 33005 #define OP_IN 33006 #define OP_NIN 33007 #define OP_MBEGIN 33008 #define OP_FLIP 33009 #define OP_COUNT 33010 #define OP_CLEAR 33011 #define OP_UNIQ 33012 #define OP_ARRAY 33013 #define OP_GETARRAY 33014 #define OP_GETARRAY_C 35062 #define OP_INITARRAY 33015 #define OP_SETARRAY 33016 #define OP_SETARRAY_C 35064 #define OP_ARRAYCELL 33017 #define OP_ARRAYCELL_C 35065 #define OP_ARRAYSLICE 33018 #define OP_COPYARRAY 33019 #define OP_DOTPRODUCT 33020 #define OP_PATTERN 33021 #define OP_PATTERN_C 35069 #define OP_PATTERN_E 37117 #define OP_PATTERN_EC 39165 #define OP_PATTERNS 33022 #define OP_PATTERNS_C 35070 #define OP_PATTERNS_E 37118 #define OP_PATTERNS_EC 39166 #define OP_ROOK 33023 #define OP_BISHOP 33024 #define OP_QUEEN 33025 #define OP_CUT 33026 #define OP_BIZARRO 33027 #define OP_BIZARRO_C 35075 #define OP_BIZARRO_E 37123 #define OP_BIZARRO_EC 39171 #define OP_BIZARROSWAP 33028 #define OP_BIZARROSWAP_D 41220 #define OP_SWAPWORLD 33029 #define OP_ABSTRACT 33030 #define OP_SUPER 33031 #define OP_SUPER_C 35079 #define OP_FUNCTION 33032 #define OP_LOCAL 33033 #define OP_LABEL 33034 #define OP_STRING 33035 #define OP_INT16 33036 #define OP_INT32 33037 #define OP_DISPATCH 33038 #define OP_USERFLAG 33039 #ifdef HEROMESH_CLASS static const Op_Names op_names[]={ {"*",8486945}, {"+",8421407}, {"+Move",10584262}, {"-",8421408}, {"-Move",10584263}, {"-rot",8421382}, {".",10518528}, {"/",8486946}, {"/mod",8486948}, {"ANHH",8389393}, {"ARRIVED",8389124}, {"Abstract",8683782}, {"Animate",8552604}, {"AnimateDead",8552605}, {"Arg1",8552580}, {"Arg2",8552581}, {"Arg3",8552582}, {"Array",8683765}, {"ArrayCell",8487161}, {"ArraySlice",8421626}, {"Arrivals",8618095}, {"Arrived",8618093}, {"Assassinate",8487070}, {"B",9437196}, {"BANG",8389380}, {"BEDOINGNG",8389405}, {"BEEDEEP",8389403}, {"BEGIN_TURN",8389123}, {"BLOCKED",8389144}, {"BOOOM",8389409}, {"BOUNCE",8389414}, {"BRRREEET",8389395}, {"BRRRT",8389394}, {"BUZZER",8389419}, {"BWEEP",8389396}, {"Background",8683662}, {"Bishop",8683776}, {"Bizarro",8618243}, {"BizarroSwap",10518788}, {"Broadcast",10518687}, {"BroadcastAnd",8421536}, {"BroadcastAndEx",8421537}, {"BroadcastEx",10518691}, {"BroadcastList",8421540}, {"BroadcastListEx",8421541}, {"BroadcastSum",8421542}, {"BroadcastSumEx",8421543}, {"Busy",8618097}, {"CHEEP",8389392}, {"CHYEW",8389391}, {"CLICK",8389147}, {"COLLIDE",8389142}, {"COLLIDEBY",8389141}, {"COLLIDING",8389143}, {"CONFLICT",8389140}, {"CONNECT",8389145}, {"CREATE",8389121}, {"CREATED",8389137}, {"CancelTriggers",8487080}, {"Chebyshev",8487082}, {"Class",8486979}, {"Climb",9142359}, {"CodePage",8683663}, {"CollisionLayers",8487039}, {"Coloc",8487083}, {"Compatible",8487038}, {"Connect",8487084}, {"Connection",8618107}, {"Control",8421521}, {"CopyArray",8421627}, {"Create",10518701}, {"Crush",8618112}, {"DEEP_POP",8389416}, {"DEPARTED",8389125}, {"DESTROY",8389122}, {"DESTROYED",8389136}, {"DINK",8389389}, {"DOOR",8389378}, {"DRLRLRINK",8389397}, {"DYUPE",8389412}, {"Data",8421550}, {"DefaultImage",8683671}, {"DeferTriggers",8487087}, {"DelInventory",8421552}, {"Delta",8421553}, {"Density",9142351}, {"Departed",8618094}, {"Departures",8618096}, {"Destroy",10584242}, {"Destroyed",8487036}, {"Dir",8618057}, {"Distance",9142349}, {"Done",8618106}, {"DotProduct",8421628}, {"E",9437184}, {"END_TURN",8389139}, {"EditorHelp",8683673}, {"F",9437192}, {"FAROUT",8389420}, {"FFFFTT",8389398}, {"FLOATED",8389132}, {"FROG",8389383}, {"FakeMove",8487091}, {"FindConnection",8487092}, {"Finished",8552586}, {"FlushClass",8421557}, {"FlushObj",8487094}, {"From",8421507}, {"GLASS",8389379}, {"GLISSANT",8389418}, {"GetArray",8487158}, {"GetInventory",8421559}, {"HAWK",8389424}, {"HEARTBEAT",8389406}, {"HIT",8389134}, {"HITBY",8389135}, {"Hard",8618075}, {"Height",9142357}, {"HeightAt",8421560}, {"Help",8683672}, {"HitMe",8421561}, {"INIT",8389120}, {"IgnoreKey",8421562}, {"Image",8618058}, {"InPlace",8683670}, {"Inertia",9142347}, {"InitArray",8421623}, {"Input",8683668}, {"InputXY",8683667}, {"IntMove",10584251}, {"Invisible",8618098}, {"JAYAYAYNG",8389415}, {"JUMPED",8389128}, {"JumpTo",10584252}, {"KEWEL",8389421}, {"KEY",8389129}, {"KLECK",8389387}, {"KLINKK",8389385}, {"Key",8487049}, {"KeyCleared",8618099}, {"L",9437194}, {"LASTIMAGE",8389126}, {"LB",9437195}, {"LF",9437193}, {"LOCK",8389407}, {"LOOP",8388610}, {"LastR",8487053}, {"Level",8421512}, {"LevelTable",8683666}, {"Loc",8487101}, {"LocateMe",8487102}, {"LoseLevel",8421567}, {"MOVED",8389127}, {"MOVING",8389130}, {"Manhattan",8487104}, {"MaxInventory",8421569}, {"Misc1",9142367}, {"Misc2",9142369}, {"Misc3",9142371}, {"Misc4",9142373}, {"Misc5",9142375}, {"Misc6",9142377}, {"Misc7",9142379}, {"Morton",8487106}, {"Move",10584259}, {"Move+",10584260}, {"MoveNumber",8552583}, {"MoveTo",10584261}, {"Moved",8618104}, {"Moving",8618105}, {"Msg",8421506}, {"N",9437186}, {"NE",9437185}, {"NEXTWARP",8389146}, {"NW",9437187}, {"NewX",8421576}, {"NewXY",8421577}, {"NewY",8421578}, {"NextR",8618124}, {"OLDPHONE",8389401}, {"ONCE",8388609}, {"OSC",8388616}, {"OSCLOOP",8388618}, {"ObjAbove",8487115}, {"ObjBelow",8487116}, {"ObjBottomAt",8421581}, {"ObjClassAt",8421582}, {"ObjDir",8487119}, {"ObjLayerAt",8421584}, {"ObjMovingTo",8421585}, {"ObjTopAt",8421586}, {"Order",8683664}, {"Others",8683674}, {"P",8880381}, {"P*",8880382}, {"PLAYERMOVING",8389133}, {"POSTINIT",8389138}, {"POUR",8389377}, {"POWER",8389386}, {"Player",8487037}, {"PopUp",8421587}, {"Queen",8683777}, {"Quiz",8487061}, {"R",9437198}, {"RATCHET1",8389417}, {"RATCHET2",8389411}, {"RATTLE",8389402}, {"RB",9437197}, {"RF",9437199}, {"Rel",8487125}, {"Replace",10518742}, {"Rook",8683775}, {"S",9437190}, {"SE",9437191}, {"SMALL_POP",8389388}, {"SPLASH",8389376}, {"STEAM",8389423}, {"STOP",8388608}, {"SUBS",8683675}, {"SUNK",8389131}, {"SW",9437189}, {"Seek",8487127}, {"Self",8421505}, {"Send",10584280}, {"SendEx",10584281}, {"SetArray",8487160}, {"SetInventory",8421594}, {"Shape",8618054}, {"ShapeDir",8618077}, {"Sharp",8618076}, {"Shovable",8618078}, {"Sound",8421595}, {"Stealthy",8618103}, {"Strength",9142361}, {"Super",8487175}, {"SwapWorld",8421637}, {"Sweep",8421596}, {"SweepEx",8421597}, {"Synchronize",8421598}, {"TAHTASHH",8389408}, {"THMP_thmp",8389404}, {"THWIT",8389384}, {"TICK",8389390}, {"Target",8487135}, {"Temperature",9142340}, {"ThisR",8618123}, {"Trace",8421600}, {"TraceStack",8487137}, {"Trigger",8421602}, {"TriggerAt",8421603}, {"UH_OH",8389382}, {"UNCORK",8389413}, {"UNHH",8389381}, {"UserSignal",8618100}, {"UserState",8618101}, {"VACUUM",8389410}, {"VisualOnly",8618102}, {"Volume",9142353}, {"VolumeAt",8421604}, {"W",9437188}, {"WAHOO",8389399}, {"WARPED",8389149}, {"WHACK",8389422}, {"Walkable",8487141}, {"Weight",9142355}, {"WinLevel",8487142}, {"XCREATE",8389148}, {"XDir",8487143}, {"XStep",8487144}, {"XYDir",8421609}, {"Xloc",8486983}, {"YDir",8487146}, {"YEEHAW",8389400}, {"YStep",8487147}, {"Yloc",8486984}, {"_",8421612}, {"a?",8421442}, {"again",8683533}, {"and",8683546}, {"band",8421418}, {"begin",8683532}, {"bit",8683566}, {"bit0",8388609}, |
︙ | ︙ | |||
834 835 836 837 838 839 840 | {"bit8",8423400}, {"bit9",8423401}, {"bnot",8421421}, {"bor",8421419}, {"bxor",8421420}, {"c?",8421436}, {"case",8683544}, | | | | | | | | | | | | | 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 | {"bit8",8423400}, {"bit9",8423401}, {"bnot",8421421}, {"bor",8421419}, {"bxor",8421420}, {"c?",8421436}, {"case",8683544}, {"chain",8421545}, {"clear",8421619}, {"count",8421618}, {"cut",8683778}, {"cz?",8421437}, {"dup",8421377}, {"else",8683530}, {"eq",8421427}, {"eq2",8421428}, {"exec",8486942}, {"flip",8421617}, {"for",8683537}, {"fork",8683547}, {"ge",8486968}, {"gt",8486966}, {"if",8749065}, {"in",8421614}, {"is",8421434}, {"land",8421423}, {"le",8486969}, {"link",8683549}, {"lnot",8421426}, {"lor",8421424}, {"lsh",8421416}, {"lt",8486967}, {"lxor",8421425}, {"m?",8421438}, {"max",8486951}, {"mbegin",8683760}, {"min",8486950}, {"mod",8486947}, {"n?",8421435}, {"ne",8421429}, {"neg",8421413}, {"next",8683538}, {"nin",8421615}, {"nip",8421379}, {"o?",8421440}, {"or",8683545}, {"over",8421384}, {"oz?",8421441}, {"pick",8421383}, {"repeat",8683536}, {"ret",8421397}, {"retnz",8421398}, {"retz",8421399}, {"rot",8421381}, {"rsh",8486953}, {"rtn",8683548}, {"s?",8421439}, {"swap",8421378}, {"then",8683531}, {"tmark",8421613}, {"tuck",8421380}, {"uniq",8421620}, {"until",8749070}, {"while",8749071}, }; #define N_OP_NAMES 376 #endif |