📄 book-index.html
字号:
<DD>event-handling, 339-346
<DD>user interface, 336-338, 343-344
</DL>
<DD>defined, 278
<DD>high-score server, 283-284
</DL>
<DD>clipping (animation), 59-60
<DD>cloneable class (java.lang), 848
<DD>cmAbstractMovingObject Class (3D), 464-465
<DD>cmAbstractMovingScenery Class (3D), 467
<DL>
<DD>bombs, 492-493
<DD>explosions, 494-497
<DD>gliders, 479
<DD>shells, 488
<DD>tanks, 474-476
</DL>
<DD>cmAbstractMovingStructure Class (3D), 466
<DD>cmAbstractPlayer Class (3D), 468-469
<DL>
<DD>gliders, 476-478
<DD>tanks, 472-474
</DL>
<DD>cmAbstractRound Class (3D), 470-471
<DL>
<DD>explosions, 494
<DD>mini-cannon rounds, 486-488
<DD>missiles, 483-484
</DL>
<DD>cmAbstractShell Class (3D), mini-cannon shells, 489
<DD>cmAbstractStaticObject class (3D), 463-464
<DD>cmAbstractStaticScenery Class (3D), 466-467
<DD>cmAbstractStaticStructure Class (3D), 465-466
<DL>
<DD>buildings, 480-481
</DL>
<DD>cmAbstractVehicle Class (3D), 467-468
<DD>cmAbstractWeapon Class (3D), 469-470
<DL>
<DD>bomb bays, 490-491
<DD>mini-cannons, 485
<DD>missile launchers, 482-483
</DL>
<DD>collision checking
<DL>
<DD>WordQuest sprites, 658
<DD>Worm game, 808
</DL>
<DD>collision( ) method (WordQuest), 683
<DD>color
<DL>
<DD>graphics, 38
<DD>high score server background dissolve, 293
</DL>
<DD>color class (java.awt), 841-842
<DD>column data (NetOthello), 626
<DD>commands, chat rooms
<DL>
<DD>component commands, 338
<DD>parsing, 347-348
</DL>
<DD>comments, 828
<DD>competitive gaming, 319
<DD>compiler (Java), 860-861
<DD>compiling chat room servers, 336
<DD>component class (java.awt), 842-843
<DD>component classes, 128
<DD>components
<DL>
<DD>action handlers, defining, 239-240
<DD>AWT (Abstract Windowing Toolkit), 234, 240-241
<DL>
<DD>buttons, 240-241
<DD>checkboxes, 241-242
<DD>checkbox groups, 242
<DD>component hierarchy, 235
<DD>labels, 243
<DD>methods, 264
<DD>text fields, 244
</DL>
<DD>chat rooms
<DL>
<DD>methods, 338-339
<DD>user interfaces, 336-337
</DL>
</DL>
<DD>constants
<DL>
<DD>Event class static bitmasks, 127
<DD>Event class static constants, 126
<DD>event constants, chat rooms, 340-342
</DL>
<DD>constructing pipelines (3D)
<DL>
<DD>camera, 423
<DL>
<DD>generic (fGenericCamera), implementing, 424-426
</DL>
<DD>classes, 430-438
<DL>
<DD>3D angle (fAngle3d), implementing, 427-428
<DD>3D matrix (fMatrix3d), implementing, 428-429
<DD>3D point (fPoint3d), implementing, 427
</DL>
<DD>projecting points on planes, 419
<DD>systems, 414-418, 420-423
<DD>transforms, complete chain, 429-430
</DL>
<DD>constructors (object-oriented programming), 14
<DL>
<DD>3D
<DL>
<DD>bombs, 493
<DD>bouncing box, 449
<DD>BouncingBoxWorld, 452-455
<DD>explosions, 494, 497
<DD>Fesse tanks, 476
<DD>gliders, 478
<DD>mini-cannon rounds, 487-488
<DD>mini-cannon shells, 490
<DD>missile launchers, 483
<DD>shells, 489
<DD>static box, 456
<DD>tanks, 473-476
</DL>
<DD>Magic Squares Puzzle
<DL>
<DD>game_board class, 699
<DD>solver class, 710
</DL>
<DD>super keyword, 70-71
<DD>this keyword, 64-65
</DL>
<DD>container class (java.awt), 128, 843
<DL>
<DD>containment hierarchy, 129
</DL>
<DD>container classes, 68
<DD>containers
<DL>
<DD>action handler, defining, 238
<DD>AWT (Abstract Windowing Toolkit), 234, 248
<DL>
<DD>associating LayoutManagers, 235-237
<DD>dialogs, 251-252
<DD>frames, 249-250
<DD>GameFrame (Alien Landing game), 252-254
<DD>methods, 245, 265-267
<DD>panels, 248-249
</DL>
</DL>
<DD>control structures, 25-27
<DD>contructors, defined, 16
<DD>convex polyhedrons
<DL>
<DD>advantages, 410-412
<DD>defined, 410
<DD>implementing (fConvex Polyhedron), 412
</DL>
<DD>cooperative gaming, 319
<DD>coordinates
<DL>
<DD>local compared to screen, 514-517
<DD>polar compared to Cartesian, 517-521
</DL>
<DD>copyArea( ) method, 665
<DD>copyindexed points( ) method (indexing polygons), 401
<DD>copy_board( ) method (Magic Squares Puzzle), 703
<DD>CP_PLAY packet (MahJong), 753
<DD>cross products
<DL>
<DD>characteristics, 881
<DD>defined, 880-881
<DD>value, 881
</DL>
<DD>CTable class (MahJong), 740
<DD>currentTimeMillis( ) method, 378
<DD>cursors, setting, 267-268
<DL>
<DD>Alien Landing game, 252
</DL>
<DD>customization, allowing, 385
<DD>cycleColorActor class (multithreaded animations), 364-365
</DL>
<P><FONT SIZE="+1"><B>D</B></FONT></P>
<DL>
<DD>Daleks! game , 593
<DL>
<DD>animation loops, 599
<DD>arrays (doctorPic[ ]), 596, 610
<DD>fine-tuning playing options, 614
<DD>game board size, adjusting, 614
<DD>if statements, 602
<DD>Intro screen, modifying, 613
<DD>methods
<DL>
<DD>animateTele( ), 607
<DD>checkDaleks( ), 611
<DD>drawIntroScreen( ), 600
<DD>getHTMLParameters( ), 596, 615
<DD>handleKeyPres( ), 601
<DD>keyDown( ), 600-601
<DD>moveDaleks( ), 605
<DD>movePlayer( ), 603
<DD>paintNumber( ), 611
<DD>prepareScreen( ), 596, 608
<DD>pursuit, 605
<DD>setInfo( ), 597
<DD>start( ), 598-599
<DD>update( ), 599
</DL>
<DD>redrawing board, 608
</DL>
<DL>
<DD>starting turns, 601
<DD>status updates for player, 612
<DD>teleporting player, 607
<DD>updating game board based on player’s moves, 602
</DL>
<DD>Daleks14 class, 594
<DL>
<DD>animateTele( ) method, 607
<DD>init( ) method, 595
<DD>keyDown( ) method, 601
<DD>moveDaleks( ) method, 605
<DD>movePlayer( )method, 603
<DD>prepareScreen( ) method, 608
<DD>update( ) method, 599
</DL>
<DD>dancingRect class
<DL>
<DD>inheritance, 72-73
<DL>
<DD>BoogieRect.java listing, 74-75
<DD>WaltzRect.java listing, 75-76
</DL>
<DD>instancing, 65-66
<DD>listing, 63
<DD>this keyword, 64
</DL>
<DD>data, parsing (high score server), 287
<DD>data types
<DL>
<DD>arrays, 20-21
<DD>primitive, 19
</DL>
<DD>dataThread class, 671-672
<DD>date class, 377-378
<DD>debugging
<DL>
<DD>MahJong, 760
<DD>WordQuest, 687
</DL>
<DD>declaring WordQuest variables, 679
<DD>defining
<DL>
<DD>ThreadGroups (WordQuest), 680
<DD>sprite IDs (WordQuest), 657
<DD>strings (displaying text), 131-132
</DL>
<DD>deflecting wrong answers (WordQuest), 684
<DD>demo mode option (Worm), 824
<DD>derived classes, 16
<DD>designing Worm game, 784
<DD>dialogs
<DL>
<DD>Alien Landing game customization, 256-261
<DD>AWT (Abstract Windowing Toolkit), 251-252
</DL>
<DD>die( ) method (3D), 474, 478, 485
<DL>
<DD>bombs, 493-494
<DD>bullets, 488
</DL>
<DD>directories, structure, 357-358
<DD>disconnect( ) method (MahJong), 731
<DD>display panels (virtual world), 498
<DD>display( ) method (NetOthello), 632
<DD>displaying text, 131
<DL>
<DD>justifying, 132
<DD>selecting fonts, 132
<DD>strings
<DL>
<DD>defining, 131-132
<DD>drawing, 132-133
<DD>inserting into applets, 133-134
</DL>
</DL>
<DD>dissolving color, 293
<DD>divide( ) method (JAVAroids game), 549
<DD>DNS (domain name servers), defined, 279
<DD>doAutoWorms( ) method (Worm game), 813, 819
<DD>doCheck( ) method (WordQuest), 683
<DD>doctorPic[ ] array (Daleks! game ), 596, 610
<DD>doMove( ) method (NetOthello), 631
<DD>dot products, 876
<DL>
<DD>characteristics, 877-879
<DD>defined, 877
<DD>value, 879
</DL>
<DD>double class (java.lang), 848
<DD>double-buffering, 57-59
<DL>
<DD>graphics (WordQuest), 680
<DD>high score server test applet, 297-298
<DD>starField class, 681
</DL>
<DD>doYouHaveSegmentAt( ) method (Worm game), 795
<DD>Dr. Who Daleks! game , 593
<DD>draggable boolean, 135
<DD>dragging sprites, 135
<DL>
<DD>Draggable Rectangle applet
<DL>
<DD>keyboard event handler listing, 139
<DD>listing, 137-138
</DL>
<DD>DragRect class
<DL>
<DD>listing, 136-137
<DD>revisions listing, 139
</DL>
</DL>
<DD>DragRect class
<DL>
<DD>listing, 136-137
<DD>revisions listing, 139
</DL>
<DD>drawing, 37
<DL>
<DD>bitmap images, 108-109
<DD>strings (displaying text), 132
<DD>WordQuest terrain, 665
</DL>
<DD>drawIntroScreen( ) method, 600
<DD>draw_board( ) method (Magic Squares Puzzle), 703
<DD>dropLastPoint( ) method (Worm game), 796
<DD>dynamic backgrounds, 655
<DD>dynamic method binding, 77-78
</DL>
<P><FONT SIZE="+1"><B>E</B></FONT></P>
<DL>
<DD>educational games, 653
<DD>effect manager (JAVAroids game), 575
<DD>else statements (Worm), 817
<DD>encapsulation
<DL>
<DD>access specifiers, 91-92
<DL>
<DD>accessor methods, 94-95
<DD>package/default, 93-94
<DD>private, 92-94
<DD>protected, 93-94
<DD>public, 92, 94
</DL>
<DD>defined, 16
</DL>
<DD>enemy class (JAVAroids game), 536
<DD>enemy manager (JAVAroids game), 570
<DL>
<DD>EffManager class listing, 576-577
<DD>EnemyManager class listing, 570-575
</DL>
<DD>enemy sprites
<DL>
<DD>JAVAroids game, 534-535
<DD>WordQuest, 657
</DL>
<DD>enumeration interface, 379-380
<DD>environment variables
<DL>
<DD>appleviewer, 863
<DD>java, 862
<DD>javac, 861
</DL>
<DD>errors (client-server networking), 282
<DD>event class (java.awt), 125, 843-844
<DL>
<DD>function keys, 126
<DD>modifier keys, 126-127
<DD>static bitmasks, 127
<DD>static constants, 126
<DD>variables, 269-270
</DL>
<DD>events, 121-122
<DL>
<DD>event class, 125, 843-844
<DL>
<DD>function keys, 126
<DD>modifier keys, 126-127
<DD>static bitmasks, 127
<DD>static constants, 126
<DD>variables, 269-270
</DL>
<DD>handling
<DL>
<DD>action events, 237-240
<DD>AWT (Abstract Windowing Toolkit), 127-131
<DD>chat room clients, 339-346
<DD>function keys, 126
<DD>keyboard events, 139
<DD>modifier keys, 126-127
</DL>
</DL>
<DL>
<DD>keyboard, 125
<DD>mouse, 122-124
<DL>
<DD>multiple button, 127
</DL>
</DL>
<DD>exception handling, 27
<DL>
<DD>client-server networking, 282
</DL>
<DD>explicit casting, 329
<DD>explosions
<DL>
<DD>JAVAroids game, 543-547
<DD>WordQuest, 657
</DL>
<DD>extends keyword, 16, 66-67
<DD>extracting images from image strips, 374-376
</DL>
<P><FONT SIZE="+1"><B>F</B></FONT></P>
<DL>
<DD>fAngle3d, implementing, 427-428
<DD>fColor class, 406-407
<DD>fGenericCamera, implementing, 424-426
<DD>filling graphics, 37
<DD>fill_square( ) method (Magic Squares Puzzle), 703
<DD>filtering images (image strips), 373-374
<DD>final classes/methods, 72
<DD>final variables, 24
<DD>finalize( ) method, sClientThread class (chat servers), 335
<DD>fine-tuning playing options (Daleks! game ), 614
<DD>fire class (JAVAroids game), 537-539
<DD>fire( ) method (3D), 483
<DD>firing bullets (WordQuest), 688
<DD>fixed landscapes, 508
<DD>flickering (animation), 56
<DL>
<DD>eliminating (double-buffering), 57
<DD>high score server test applet, 297-298
</DL>
<DD>flip( ) method (NetOthello), 625
<DD>float class (java.lang), 848-849
<DD>float objects, 288
<DD>FlowLayout, 245
<DL>
<DD>Alien Landing game customization Dialog, 256
<DD>alignments, 246
</DL>
<DD>fMatrix3d, implementing, 428-429
<DD>fontMetrics object, 132
<DD>fonts
<DL>
<DD>displaying text, 132
<DD>high score server, 293-294
<DD>Java supported, 132
</DL>
<DD>foregrounds
<DL>
<DD>bitmap loops, 144, 147
<DD>scrolling (WordQuest), 662
</DL>
<DD>four coordinate system, 414
<DD>fPoint3d, implementing, 427
<DD>frame class (java.awt), 844
<DD>frames
<DL>
<DD>AWT (Abstract Windowing Toolkit), 249-250
<DD>GameFrame (Alien Landing game)
<DL>
<DD>class listing, 258-259
<DD>defining, 252
</DL>
</DL>
<DD>fun.java program, 31-32
<DD>function keys (Event class), 126
<DD>functional units (Alien Landing game)
<DL>
<DD>dividing responsibility, 158-159
<DD>interplay, 160-162
</DL>
<DD>functions, <I>see</I> methods
<DD>fWorld class (3D virtual worlds), 445-446, 497
</DL>
<P><FONT SIZE="+1"><B>G</B></FONT></P>
<DL>
<DD>game pieces and components for MahJong, 722
<DD>game play options (NetOthello), 623
<DD>GameBoard class (NetOthello), 622, 626
<DD>GameManager (Alien Landing game), 161, 187
<DL>
<DD>applet tag, 191
<DD>class, 160, 188-191
<DD>explosion audio clip, 200
<DD>GameFrame class listing, 258-259
<DD>implementing VideoGame loop, 188
<DD>modified class listing, 211-217
<DD>OptionsDialog class listing, 260-261
<DD>passing input to GunManager, 187
<DD>registering attacking/exploding animations, 199-200
<DD>structure, 208
<DD>variables and methods listing, 261-264
</DL>
<DD>GameManager class (JAVAroids game), 578-588
<DD>GameMath class, 519-521
<DD>GamePiece class (NetOthello), 622, 625
<DD>GameRestart( ) method (Worm game), 803
<DD>games
<DL>
<DD>Alien Landing
<DL>
<DD>action( ) method, handling menu actions, 255
<DD>applet parameters, customizing, 263-264
<DD>closing, 208-210
<DD>communicating killed messages, 202
<DD>cursor settings, 252
<DD>customization Dialog, 256-261
<DD>difficulty levels, 200-203, 256-258
<DD>functional units, 158-162
<DD>game status, tracking, 203-205
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -