📄 book-index.html
字号:
</DL>
<DD>interestedOfCollisionWith( ) method (3D), 458
<DD>interfaces, 98, 100
<DL>
<DD>abstract class comparison, 101
<DD>chat rooms, 336-338, 343-344
<DD>defined, 16, 99
<DD>Enumeration, 379-380
<DD>GUI (graphical user interfaces)
<DL>
<DD>creating with AWT, 236-237
<DD>high score server test applet, 298-300
</DL>
<DD>Intersect (Alien Landing game)
<DL>
<DD>GunSprite, 166
<DD>MissleSprite, 171
</DL>
<DD>moveable, 102
<DL>
<DD>Alien Landing game, 165
<DD>MoveablePolygon class, 514
</DL>
<DD>multiple, 101
<DD>Runnable (thread creation), 361
</DL>
<DD>internal structure (App3Dcore), 444
<DL>
<DD>3D engine, 447
<DD>virtual world (fWorld), 445-446
</DL>
<DD>Internet MahJong, 721
<DL>
<DD>classes, 724
<DL>
<DD>CPlayer, 740
<DD>CTable , 740
<DD>Greeting, 739
<DD>Hand, 747
<DD>Packet, 725
<DD>Player, 730
<DD>PlayerOutput, 730, 734
<DD>RecordFile, 759
<DD>Server, 730
<DD>Table, 735
<DD>Tile, 747
</DL>
<DD>client code, 738
<DD>client GUI, 741
<DD>debugging, 760
<DD>methods
<DL>
<DD>afterLogin( ), 742
<DD>checkMahJong( ), 758
<DD>disconnect( ), 731
<DD>hdLogin( ), 737
<DD>hdSomePacket( ), 728
<DD>play( ), 756
<DD>readHand( ), 748
<DD>spSomePacket( ), 728
<DD>stopOnWait( ), 733
<DD>table.leave( ), 738
</DL>
</DL>
<DL>
<DL>
<DD>table.join, 756
<DD>tileWindow( ), 750
<DD>writeHand( ), 748
</DL>
<DD>mj.html document, 739
<DD>packets, 724
<DL>
<DD>CP_PLAY, 753
<DD>ping, 759
<DD>receiving, 727
<DD>sending, 727
<DD>server, 755
</DL>
<DD>player database, 759
<DD>protocols used, 724
<DD>rules of play, 723
<DD>scoring system, 758
<DD>server, 721
<DD>server code, 728, 756
<DD>shuffling algorithm, 749
<DD>statements, synchronized, 731
<DD>synchronization and deadlock prevention, 737
<DD>table structure, 746
<DD>tables, joining, 744
<DD>threads, 725
<DL>
<DD>Listener, 732
<DD>Replier, 733
</DL>
<DD>tile graphics, 749
<DD>Timeout feature, 759
</DL>
<DD>Internet resources, 857
<DD>interpreter (Java), 30-31, 861-862
<DD>Intersect interface (Alien Landing game)
<DL>
<DL>
<DD>GunSprite, 166
<DD>MissleSprite, 171
</DL>
</DL>
<DD>IP (Internet Protocol) addresses, defined, 279
<DD>isVisible method (Sprite class), 94
<DD>is_completed( ) method (Magic Squares Puzzle), 704
<DD>is_repeat( ) method (Magic Squares Puzzle), 716
</DL>
<P><FONT SIZE="+1"><B>J</B></FONT></P>
<DL>
<DD>Java
<DL>
<DD>advantages, 8-10
<DD>API (Application Program Interface) packages, 29-30, 833
<DL>
<DD>java.applet, 834-840
<DD>java.awt, 841-846
<DD>java.lang, 846-856
</DL>
<DD>Applet Viewer, 862-863
<DD>AWT, <I>see</I> AWT (Abstract Windowing Toolkit)
</DL>
<DL>
<DD>bitmaps, 108-112
<DL>
<DD>loading/drawing images, 108-109
<DD>specifying locations, 109-110
<DD>sprites, 110-112
</DL>
<DD>comments, 828
<DD>compiler, 860-861
<DD>core, 18
<DL>
<DD>arrays, 20-21
<DD>C/C++ comparison, 27-28
<DD>classes and objects, 21-22
<DD>control structures, 25-27
<DD>exceptions, 27
<DD>memory management, 24
<DD>operators, 25
<DD>packages, 24
<DD>primitive data types, 19
<DD>threads, 27
<DD>variables and methods, 23-24
</DL>
<DD>data types
<DL>
<DD>arrays, 20-21
<DD>primitive, 19
</DL>
<DD>fonts, 132
<DD>interfaces, 100
<DL>
<DD>abstract class comparison, 101
<DD>multiple, 101
</DL>
<DD>Internet resources, 857
<DD>interpreter, 30-31, 861-862
<DD>limitations, 10-11
<DD>literals, 829-830
<DD>newsgroups, 858
<DD>operators, 830-831
<DD>peer-to-peer networking, 321
<DD>reserved words, 831-832
<DD>virtual machines, 9
</DL>
<DD>java.util classes, 376
<DL>
<DD>class hierarchy, 377
<DD>Date, 377-378
<DD>Enumeration interface, 379-380
<DD>Hashtable, 381-382
<DD>Random, 382-383
<DD>Stack, 380-381
<DD>Vector, 379-380
</DL>
<DD>javac (Java compiler), 860-861
<DD>JAVAroids game, 507
<DL>
<DD>applet tag, 588
<DD>collision handling, 531-532
</DL>
<DL>
<DD>division of responsibility, 532
<DD>landscape, 509
<DD>manager classes, 530
<DD>managers, 531, 547-548
<DL>
<DD>Asteroid, 549-550
<DD>Effect, 575
<DD>Enemy, 570
<DD>Game, 578
<DD>interaction, 548
<DD>paint( ) method, 547-548
<DD>Ship, 561-562
<DD>update( ) method, 547-548
</DL>
<DD>MoveablePolygon class, 522
<DL>
<DD>listing, 523-526
<DD>Moveable interface, 514
<DD>updatePoints( ) method, 523
<DD>updatePosition( ) method, 522-523
</DL>
<DD>PolygonSprite class
<DL>
<DD>defining, 512-514
<DD>local coordinates constructor, 522
<DD>parent class, 510-512
</DL>
<DD>RotateablePolygon class, 526
<DL>
<DD>listing, 527
<DD>rotate( ) method, 529
<DD>update( ) method, 528, 530
</DL>
<DD>sprites, 509-510, 533
<DL>
<DD>Asteroids, 539-540
<DD>Enemy, 534-536
<DD>Explosions, 543-547
<DD>Fire, 537-539
<DD>inheritance hierarchy, 535
<DD>managers, 531
<DD>Ships, 540-543
</DL>
<DD>vectors
<DL>
<DD>local compared to screen coordinates, 514-517
<DD>polar compared to Cartesian coordinates, 517-521
</DL>
</DL>
<DD>JDK (Java Developer’s Kit) tools, 859
<DL>
<DD>appletviewer, 862-863
<DD>java, 861-862
<DD>javac, 860-861
</DL>
<DD>joining tables (MahJong), 744
<DD>JVM (Java Virtual Machine), 9-11
</DL>
<P><FONT SIZE="+1"><B>K</B></FONT></P>
<DL>
<DD>keyboards
<DL>
<DD>events, 125
<DL>
<DD>handlers (Draggable Rectangle applet), 139
</DL>
<DD>function keys, 126
<DD>input, 120
<DL>
<DD>Worm game, 801
</DL>
<DD>modifier keys, 126-127
</DL>
<DD>keyDown( ) method, 600
<DL>
<DD>WordQuest, 687
</DL>
<DD>keywords
<DL>
<DD>extends, 16, 66-67
<DD>new, 15
<DL>
<DD>arrays, 20
<DD>memory allocation, 24
</DL>
<DD>private, 18
<DD>protected, 91
<DD>public, 18, 32
<DD>static, 23, 32
<DD>super (inheritance), 70-71
<DD>synchronized (multithreaded animations), 370
<DD>this (animation), 64
<DD>void, 32
</DL>
<DD>killStar( ) method, 668
</DL>
<P><FONT SIZE="+1"><B>L</B></FONT></P>
<DL>
<DD>L key, last stand (Daleks! game ), 594
<DD>labels (AWT), 243
<DD>landscapes
<DL>
<DD>fixed, 508
<DD>scrolling, 508-509
</DL>
<DD>LayoutManagers (AWT), 244-248
<DL>
<DD>BorderLayout, 246-247
<DD>containers, 235-236
<DD>FlowLayout, 237, 245
<DL>
<DD>Alien Landing game customization Dialog, 256
<DD>alignments, 246
</DL>
<DD>GridLayout, 247
</DL>
<DD>Level One, Daleks! game , 594
<DD>linear algebra
<DL>
<DD>cross products, 880-881
<DD>dot products, 876-879
<DD>matrixes, 881-884
</DL>
<DL>
<DD>orthogonal normalized coordinate system, 872-873
<DD>vectors, 873-876
</DL>
<DD>linked lists
<DL>
<DD>sample program, 34-36
<DD>Worm, 788
</DL>
<DD>listener thread (MahJong), 732
<DD>listings
<DL>
<DD>1-1 Primitive types in Java, 19
<DD>1-2 Java control structures, 25
<DD>1-3 Fun.java, 31
<DD>1-4 Parameter passing (ParamTest.java), 33
<DD>1-5 Circular linked list (CircularList.java), 35
<DD>1-6 Sample HTML file for an applet, 36
<DD>1-7 Mondrian applet, 39-40
<DD>1-8 Mondrian applet HTML code, 40-41
<DD>2-1 Universal Animation Loop, 49
<DD>2-2 Broadway.java, 49-52
<DD>2-3 DancingRect class, 63
<DD>2-4 Rebuilt Mondrian.java, 65-66
<DD>2-5 BoogieRect.java, 74-75
<DD>2-6 WaltzRect.java, 75-76
<DD>2-7 Woogie.java, 79-81
<DD>3-1 Sprite class, 90-91
<DD>3-2 Sprite2D class, 95-96
<DD>3-3 RectSprite class, 97
<DD>3-4 Moveable interface, 102
<DD>3-5 BouncingRect class, 103-104
<DD>3-6 Bounce class, 105-107
<DD>3-7 BitmapSprite class, 110-111
<DD>3-8 BouncingBitmap class, 111-112
<DD>3-9 New initSprites( ) method, 114-115
<DD>4-1 MouseTest applet, 124
<DD>4-2 Revised MouseTest applet, 133-134
<DD>4-3 DragRect class, 136-137
<DD>4-4 Draggable Rectangle applet, 137-138
<DD>4-5 Revisions to DragRect, 139
<DD>4-6 Keyboard event handler for Draggable Rectangle applet, 139
<DD>4-7 Applet to illustrate Media Tracker, 141
<DD>4-8 BitmapLoop class, 145-146
<DD>4-9 UFO applet, 148-150
<DD>5-1 Video Game Loop, 157
<DD>5-2 Sprite and Sprite2D classes, 162-164
<DD>5-3 BitmapSprite class, 164-165
<DD>5-4 Moveable Interface, 165
<DD>5-5 Intersect Interface, 166
<DD>5-6 GunSprite class, 168-169
</DL>
<DL>
<DD>5-7 RectSprite class, 170
<DD>5-8 MissileSprite class, 172
<DD>5-9 GunManger class, 175-176
<DD>5-10 BitmapLoop class, 177-178
<DD>5-11 UFO class, 182-185
<DD>5-12 UFOManager class, 186-187
<DD>5-13 GameManager class, 188-191
<DD>6-1 GameManager class (modified), 211-217
<DD>6-2 GunManager class (modified), 217-220
<DD>6-3 UFOManager class (modified), 220-222
<DD>6-4 GunSprite class (modified), 223
<DD>6-5 UFO class (modified), 224-228
<DD>7-1 ButtonTest applet, 237
<DD>7-2 PanelExample applet, 248
<DD>7-3 FrameExample applet, 250
<DD>7-4 GameFrame class, 258-259
<DD>7-5 OptionsDialog class, 260-261
<DD>7-6 New GameManager variables and methods, 261-264
<DD>10-1 Actor class, 364
<DD>10-2 CycleColorActor class, 364-365
<DD>10-3 ActorTest applet, 366-367
<DD>10-4 ExtractImageTest applet, 374-376
<DD>11-1 An array of 3D points, 394-395
<DD>11-2 An indexing polygon, 401-404
<DD>11-3 The filled polygon, 405-406
<DD>11-4 A wrap-around for Java’s Color, 406-407
<DD>11-5 The abstract polyhedron class, 408-409
<DD>11-6 The array of two-dimensional points, 410
<DD>11-7 The convex polyhedron, 412
<DD>11-8 A very generic camera, 425-426
<DD>11-9 The fPoint3d class, 427
<DD>11-10 The fAngle3d class, 427-428
<DD>11-11 The fMatrix3d class, 428-429
<DD>11-12 The fPolyhedron Instance, 433-434
<DD>11-13 The rotating cubes applet, 436-438
<DD>12-1 The bouncing box, 448-449
<DD>12-2 The BouncingBoxWorld class, 451-452, 454-455
<DD>12-3 The bouncing boxes applet, 452-455
<DD>12-4 The HTML file, 454-455
<DD>12-5 The static box, 455-456
<DD>12-6 The bouncing box, with collision handling, 457-458
<DD>12-7 The template, 458-460
<DD>12-8 The abstract static object, 464
<DD>12-9 The abstract moving object, 464-465
<DD>12-10 The abstract static structure, 465-466
<DD>12-11 The abstract moving structure, 466
<DD>12-12 The abstract static scenery, 467
</DL>
<DL>
<DD>12-13 The abstract moving scenery, 467
<DD>12-14 The abstract vehicle, 467-468
<DD>12-15 The abstract player, 468-469
<DD>12-16 The abstract weapon, 469-470
<DD>12-17 The abstract round, 471
<DD>12-18 The Fesse tank, 472-473
<DD>12-19 The Fesse tank remains, 474-476
<DD>12-20 The glider, 477-478
<DD>12-21 The glider remains, 479-480
<DD>12-22 The generic buildings, 480-481
<DD>12-23 The missile launcher, 482
<DD>12-24 The generic missile, 483-484
<DD>12-25 The mini-cannon, 485-486
<DD>12-26 The mini-cannon round, 486-487
<DD>12-27 The abstract shell, 488-489
<DD>12-28 The empty shell, 489-490
<DD>12-29 The bomb bay, 490-491
<DD>12-30 The generic bomb, 492-493
<DD>12-31 The explosion, 494
<DD>12-32 The explosion, 494-497
<DD>12-33 The cmWorld, 498
<DD>12-34 The applet, 499-502
<DD>13-1 Sprite and Sprite2D classes, 511-512
<DD>13-2 PolygonSprite class, 513-514
<DD>13-3 Moveable interface, 514
<DD>13-4 GameMath class, 519-521
<DD>13-5 PolygonSprite constructor for local coordinates, 522
<DD>13-6 MoveablePolygon class, 523-526
<DD>13-7 RotateablePolygon class, 527
<DD>13-8 Enemy class, 536
<DD>13-9 Fire class, 537-539
<DD>13-10 Asteroid class, 539-540
<DD>13-11 Ship class, 541-543
<DD>13-12 ContainerSprite class, 543-544
<DD>13-13 Explosion class, 545-547
<DD>13-14 AstManager class, 551-561
<DD>13-15 ShipManager class, 562-570
<DD>13-16 EnemyManager class, 570-575
<DD>13-17 EffManager class, 576-577
<DD>13-18 GameManager class, 578-588
<DD>14-1 daleks14.init( ) method, 595
<DD>14-2 animatedIntroClass.setInfo( ) method, 597
<DD>14-3 animatedIntroClass.start( ) method, 598
<DD>14-4 daleks14.start( ) method, 599
<DD>14-5 daleks14.update( ) method, 599
<DD>14-6 daleks14.keyDown( ) method, 601
<DD>14-7 handleKeyPres( ) method, 601
</DL>
<DL>
<DD>14-8 executing player turn in handleKeyPress( ), executing next turn in handleKeyPress( ), 602
<DD>14-9 daleks14.movePlayer( ) method, 603
<DD>14-10 daleks14.moveDaleks( ) method, 605
<DD>14-11 daleks14.animateTele( ) method, 607
<DD>14-12 daleks14.prepareScreen( ) method, 608
<DD>14-13 daleks14.paintNumber( ) method, 611
<DD>14-14 daleks14.checkDaleks( ) method, 611
<DD>14-15 status updates, handleKeyPress( ) method, 612
<DD>14-16 modifying Intro screen (Daleks! game ), 613
<DD>14-17 adjusting game board sizes (Daleks! game ), 614
<DD>14-18 play-balancing in Daleks! game , 614
<DD>14-19 daleks14.getHTMLParameters( ) method, 615
<DD>17-1 The data defined in the game_board class, 698
<DD>17-2 The constructors for the game_board class, 699
<DD>17-3 The randomize( ) method, 700
<DD>17-4 The increment_square( ) method, 700-701
<DD>17-5 The apply_move_s( ) method, 701
<DD>17-6 The apply_move_p( ) method, 701
<DD>17-7 The game_board methods to draw the board onto the screen, 702
<DD>17-8 The copy_board( ) method, 703
<DD>17-9 The is_completed( ) method, 704
<DD>17-10 The data defined in the squares class, 704-705
<DD>17-11 The init( ) method, 705-706
<DD>17-12 The paint( ) method, 706
<DD>17-13 The mouseDown( ) event handler, 706
<DD>17-14 The action( ) event handler, 707-709
<DD>17-15 The data items defined in the solver class, 710
<DD>17-16 The constructor for the solver class, 710
<DD>17-17 The run( ) method for the solver class, 711
<DD>17-18 The algorithm for the try_all_squares( ) method without the recursion, 711
<DD>17-19 The try_all_squares( ) method, 712-714
<DD>17-20 The algorithm for the main loop of the try_all_squares( ) method, 714-715
<DD>17-21 The print_solution( ) method, 716
<DD>17-22 The is_repeat( ) method, 717
<DD>17-23 The undo_move( ) method, 717-718
<DD>19-1 loading graphics in Slider puzzle, 769
<DD>19-2 displaying the graphics (Slider puzzle), 770
<DD>19-3 responding to mouse clicks Slider puzzle, 771
<DD>19-4 move( ) method Slider puzzle, 772
<DD>19-5 loading sounds Slider puzzle, 773
<DD>19-6 image observer (Slider puzzle), 774
<DD>19-7 drawing Randomize button (Slider puzzle), 775
<DD>19-8 button selection determination (Slider puzzle), 775
</DL>
<DL>
<DD>19-9 Slider puzzle randomization, 776
<DD>20-1 Worm class, 793
<DD>20-2 ReviveWorm( ) function, 795
<DD>20-3 DoYouHaveWormAt( ) function Worm game, 796
<DD>20-4 Worm head and tail control functions, 797
<DD>20-5 Worm segment iterators, 799
<DD>20-6 player input handling routines Worm game, 801
<DD>20-7 SessionManager initialization, gameRestart( ) function (Worm game), 803
<DD>20-8 Next( ) function (Worm game), 807
<DD>20-9 collision and treat checking (Worm game), 808
<DD>20-10 WormBin class Next( ) function, 810
<DD>20-11 applet thread run( ) function(Worm game), 811
<DD>20-12 worm directional guides with helper functions, 813
<DD>20-13 DoAutoWorms( ) function (Worm game), 819
<DD>20-14 GetNewDirection( ) function (Worm game), 821
<DD>20-15 tracking autonomous worm growth, NotRegrowing( ) function (Worm game), 821
<DD>20-16 width and height attributes, <APPLET> tag, 822
<DD>20-17 getParameter( ) function, sizing Worm applet, 823
<DD>E-1 Rotating a point by theta radians co
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -