📄 book-index.html
字号:
<DL>
<DD>ChatClient.java startup file, 342
<DD>command parsing, 347-348
<DD>event handling, 344-346
<DD>GUI setup, 343-344
<DD>run( ) method, 346-347
<DD>server input, 348-349
<DD>stop( ) method, 349
<DD>text output, 343
</DL>
<DD>DancingRect, 62
<DL>
<DD>inheritance, 72-73
</DL>
<DD>Draggable Rectangle, 137-138
<DL>
<DD>keyboard event handler, 139
</DL>
<DD>executing, 36
<DD>ExtractImageTest, 374-376
<DD>FrameExample, 250
<DD>graphics, 39-41
<DL>
<DD>creating, 37-38
</DL>
<DD>high score server test, 296
<DL>
<DD>double-buffering, 297-298
<DD>GUI (graphical user interface), 298-300
</DL>
<DD>life cycle, 41-43
<DD>Magic Squares, 696-697
<DD>MouseTest, 124
<DL>
<DD>revised, 133-134
</DL>
</DL>
<DL>
<DD>PanelExample, 248
<DD>parameters, 263-264
<DD>Rotating Points (3D), 870-872
<DD>tags, 827-828
<DL>
<DD>Alien Landing game, 191
<DD>JAVAroids game, 588
</DL>
<DD>text, inserting strings, 133-134
<DD>virtual worlds, 499-502
<DD>Woogie, 78-79
<DL>
<DD>Woogie.java listing, 79-81
</DL>
</DL>
<DD>Application 3D Core, <I>see</I> App3Dcore
<DD>applications, building (App3Dcore)
<DL>
<DD>bouncing boxes, 447-455
<DD>collisions and object interactions, 455-458
</DL>
<DD>arrays, 20-21
<DL>
<DD>Asteroid array indexing (JAVAroids game), 550
<DD>doctorPic[ ] (Daleks! game ), 596, 610
</DL>
<DD>asteroid class (JAVAroids game), 539-540
<DD>asteroid manager (JAVAroids game), 549-550
<DL>
<DD>astManager class listing, 551-561
</DL>
<DD>audio clips, 113-114
<DL>
<DD>Alien Landing game explosions, 200
<DD>loading, 113-114
<DD>playing, 114
</DL>
<DD>audioClip Interface class (java.applet), 841
<DD>automatic garbage collection (chat room servers), 331
<DD>autonomous worms (Worm game), 812
<DL>
<DD>trapping, 816
</DL>
<DD>AWT (Abstract Windowing Toolkit), 9, 11
<DL>
<DD>components, 240-241
<DL>
<DD>buttons, 240-241
<DD>checkboxes, 241-242
<DD>hierarchy, 235
<DD>labels, 243
<DD>methods, 264-266
<DD>text fields, 244
</DL>
<DD>containers, 248
<DL>
<DD>dialogs, 251-252
<DD>frames, 249-250
<DD>GameFrame (Alien Landing game), 252-254
<DD>methods, 245, 264
<DD>panels, 248-249
</DL>
<DD>creating graphical interfaces, 236-237
<DD>cursors, 267-268
<DD>event handling, 121, 127, 129
<DL>
<DD>Component classes, 128
<DD>handleEvent( ) method, 130-131
</DL>
</DL>
<DL>
<DL>
<DD>keyboard events, 125
<DD>mouse events, 122-124
</DL>
<DD>high score server test applet GUI, 298-300
<DD>input devices, 120
<DD>LayoutManagers, 244-248
<DL>
<DD>BorderLayout, 246-247
<DD>FlowLayout, 245-246
<DD>GridLayout, 247
</DL>
<DD>overview, 234-235
<DD>quick reference, 264-265
<DL>
<DD>components, 264, 266
<DD>containers, 265, 267
<DD>cursors, 267-268
<DD>Event class, 269-270
<DD>menus, 269
</DL>
</DL>
</DL>
<P><FONT SIZE="+1"><B>B</B></FONT></P>
<DL>
<DD>backgrounds
<DL>
<DD>bitmap loops, 144, 147
<DD>dynamic, 655
<DD>scrolling
<DL>
<DD>to simulate motion, 655
<DD>WordQuest, 661
</DL>
</DL>
<DD>base classes, 16
<DD>behaviors
<DL>
<DD>defined, 16
<DD>sprites, 87
<DD>object-oriented programming, 11-12
</DL>
<DD>bitmaps, 108-112
<DL>
<DD>loading/drawing images, 108-109
<DD>loops
<DL>
<DD>BitmapLoop class listing (UFOManager), 177-178
<DD>BitmapLoop sprite interactive applet, 146-150
<DD>creating, 140
<DD>defining BitmapLoop class, 142-146
<DD>MediaTracker, 140-142
</DL>
<DD>specifying locations, 109-110
<DD>sprites, 110-112
</DL>
<DD>BitmapSprite class listing (Alien Landing game), 164-165
<DD>block movement (Slider puzzle), 771
<DD>blocking (methods), 305
<DD>board games, NetOthello, 622
<DD>BoogieRect.java listing, 74-75
<DD>Boolean class (java.lang), 846-847
<DD>BorderLayout, 246
<DL>
<DD>alignments, 247
</DL>
<DD>bounce class, 105-107
<DD>bouncing box constructor (3D), 449
<DD>bouncing boxes class (3D), 447-455
<DD>bouncingBitmap class, 111-112
<DD>bouncingBoxWorld constructor (3D), 452-455
<DD>bouncingRect class, 103-104
<DD>bounding boxes, determining intersections (Alien Landing game), 167-168
<DD>Broadway Boogie Woogie applet
<DL>
<DD>animation flicker, 56-59
<DD>Broadway.java listing, 49-52
<DD>clipping, 59-60
<DD>execution path, 53-55
</DL>
<DD>browser compatibility with Worm game, 823
<DD>buffers, StringBuffer class (chat room servers), 331
<DD>building applications (App3Dcore)
<DL>
<DD>bouncing boxes, 447-455
<DD>collisions and object interactions, 455-458
<DD>designing new objects using templates, 458-460
</DL>
<DD>bullets (WordQuest), 687-688
<DD>BULLET sprite (WordQuest), 657
<DD>buttons, 240
<DL>
<DD>Alien Landing game customization dialog, 257
<DD>AWT methods, 241
<DD>chat room user interfaces, 337
<DD>squares class (Magic Squares Puzzle), 709
</DL>
<DD>buttonTest applet, 237-238
<DD>bytecode, 9
</DL>
<P><FONT SIZE="+1"><B>C</B></FONT></P>
<DL>
<DD>C/C++ programming languages, Java comparison, 27-28
<DD>CalcList( ) method (chat room servers), 330-331
<DD>cameras
<DL>
<DD>3D engine, 447
<DD>constructing 3D pipelines, 423
<DL>
<DD>implementing generic (fGenericCamera), 424-426
</DL>
</DL>
<DD>Cartesian coordinates, compared to polar coordinates, 517-521
<DD>character class (java.lang), 847
<DD>chat rooms, 318
<DL>
<DD>ChatServer class, 324-325
<DD>ChatServerThread class, 324-327
<DD>client applet code
<DL>
<DD>ChatClient.java startup file, 342
<DD>command parsing, 347-348
<DD>event handling, 344-346
<DD>GUI setup, 343-344
</DL>
</DL>
<DL>
<DL>
<DD>run( ) method, 346-347
<DD>server input, 348-349
<DD>stop( ) method, 349
<DD>text output, 343
</DL>
<DD>clients, 336
<DL>
<DD>component methods, 338-339
<DD>design considerations, 336-337
<DD>event-handling, 339-342, 344-346
<DD>user interface, 336-338, 343-344
</DL>
<DD>garbage collection, 331
<DD>messages, 329-330
<DL>
<DD>message( ) method, 335
<DD>sendMessage( ) methods, 328
</DL>
<DD>participant lists, 330-331, 337
<DL>
<DD>methods, 339
</DL>
<DD>sClientGroup class, 324
<DL>
<DD>automatic garbage collection, 331
<DD>calcList( ) method, 330-331
<DD>cleanhouse( ) method, 331-332
<DD>sClientGroup.java startup file, 327-328
<DD>sendMessage( ) methods, 328-330
<DD>StringBuffer class, 331
<DD>Vector class, 327
</DL>
<DD>sClientThread class, 325, 332-333
<DL>
<DD>Alias handling methods, 335
<DD>finalize( ) method, 335
<DD>message( ) method, 335
<DD>parent variable, 334
<DD>run( ) method, 334-335, 346-347
<DD>stop( ) method, 349
</DL>
<DD>servers, 322, 325
<DL>
<DD>compiling, 336
<DD>methods, 322-323
<DD>input handling, 348-349
</DL>
<DD><I>see also</I> multiplayer gaming
</DL>
<DD>checkboxes, 241
<DL>
<DD>Alien Landing game customization dialog, 256
<DD>AWT checkbox groups, 242
<DD>methods, 242
</DL>
<DD>checkMahJong( ) method, 758
<DD>Chow (MahJong), 722
<DD>class class (java.lang), 847-848
<DD>classes, 21-22
<DL>
<DD>3D, 413-414
<DL>
<DD>angle, implementing (fAngle3d), 427-428
<DD>bouncing boxes, 447-455
<DD>collisions and object interactions, 455-458
</DL>
</DL>
<DL>
<DL>
<DD>fColor, 406-407
<DD>matrix, implementing (fMatrix3d), 428-429
<DD>overridden updates, 450
<DD>point, implementing (fPoint3d), 427
<DD>virtual world (fWorld), 445-446
</DL>
<DD>abstract, 87-89
<DL>
<DD>interfaces comparison, 101
</DL>
<DD>actor (multithreaded animations), 364
<DD>App3Dcore, 443
<DL>
<DD>cmAbstractMovingObject, 464-465
<DD>cmAbstractMovingScenery, 467, 474-476, 479, 488, 492-497
<DD>cmAbstractMovingStructure, 466
<DD>cmAbstractPlayer, 468-469, 472-478
<DD>cmAbstractRound, 470-471, 483-488, 494
<DD>cmAbstractShell, 489
<DD>cmAbstractStaticObject, 463-464
<DD>cmAbstractStaticScenery, 466-467
<DD>cmAbstractStaticStructure, 465-466, 480-481
<DD>cmAbstractVehicle, 467-468
<DD>cmAbstractWeapon, 469-470, 482-485, 490-491
<DD>game layer, 463-471
<DD>internal structure, 444
<DD>virtual world (fWorld), 445-446
</DL>
<DD>Asteroid (JAVAroids game), 539-540
<DD>AstManager (JAVAroids game), 551-561
<DD>ChatServer
<DL>
<DD>ChatServerThread, 326
<DD>creating, 325
<DD>hierarchy, 324
<DD>sClientGroup, 327
<DD>sClientThread, 332-333
</DL>
<DD>ChatServerThread, creating, 326-327
<DD>Component, 128
<DL>
<DD>methods, 264-266
</DL>
<DD>Container, 68, 128
<DL>
<DD>containment hierarchy, 129
<DD>methods, 265, 267
</DL>
<DD>ContainerSprite (JAVAroids game), 543-544
<DD>CycleColorActor (multithreaded animations), 364-365
<DD>Daleks! game , 594
<DD>defining, 12-13, 16
<DL>
<DD>animation, 62-63
</DL>
<DD>EffManager (JAVAroids game), 576-577
<DD>Enemy (JAVAroids game), 536
<DD>EnemyManager (JAVAroids game), 570-575
</DL>
<DL>
<DD>Event, 125
<DL>
<DD>function keys, 126
<DD>modifier keys, 126-127
<DD>static bitmasks, 127
<DD>static constants, 126
<DD>variables, 269-270
</DL>
<DD>Explosion (JAVAroids game), 545-547
<DD>final, 72
<DD>Fire (JAVAroids game), 537-539
<DD>GameManager (JAVAroids game), 578-588
<DD>GameMath, 519-521
<DD>hierarchy, 16
<DD>importing, 356
<DD>interfaces, implementing, 100
<DD>java.util, 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>Magic Squares Puzzle
<DL>
<DD>game_board, 697-704
<DD>solver, 709-718
<DD>squares, 704-709
</DL>
<DD>MahJong, 724
<DL>
<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>manager classes (JAVAroids game), 547
<DD>methods, 24
<DD>MoveablePolygon, 522
<DL>
<DD>listing, 523-526
<DD>Moveable interface, 514
<DD>updatePosition( ) method, 523
</DL>
<DD>NetOthello, 623, 628
<DL>
<DD>gameBoard, 622, 626
<DD>GamePiece, 622, 625
</DL>
</DL>
<DL>
<DD>Object, 69
<DD>object-oriented programming, 12-13
<DD>packages, 24
<DL>
<DD>Java API, 29-30
</DL>
<DD>parent (superclasses), 16-18
<DD>PolygonSprite
<DL>
<DD>defining, 512-514
<DD>local coordinates constructor, 522
<DD>parent class, 510-512
</DL>
<DD>polyhedron instance, 430-434
<DD>RectSprite, 97
<DD>RotateablePolygon class, 526
<DL>
<DD>listing, 527
<DD>rotate( ) method, 529
<DD>update( ) method, 528, 530
</DL>
<DD>rotating cubes applet, implementing, 435-438
<DD>Ship (JAVAroids game), 540-543
<DD>ShipManager (JAVAroids game), 562-570
<DD>Sprite
<DL>
<DD>defining, 90-91
<DD>hierarchy, 113
<DD>JAVAroids game, 511-512
</DL>
<DD>Sprite2D, 95-96
<DL>
<DD>JAVAroids game, 511-512
</DL>
<DD>StringBuffer, 331
<DD>StringTokenizer, 287
<DD>subclasses, 16
<DD>transforms, complete chain, 429-430
<DD>variables, 23
<DD>WordQuest
<DL>
<DD>dataThread, 671-672
<DD>double-buffering, 680-681
<DD>promptFrame, 673
<DD>Question, 669
<DD>sprites, 655
<DD>StarField, 661, 667
<DD>statusBar( ), 676
<DD>syncSprite, 690
<DD>Terrain, 662
<DD>userSprite, 677-678
</DL>
<DD>Worm
<DL>
<DD>SessionManager, 788, 791, 803
<DD>Worm, 791, 793
<DD>WormBin, 791, 809
</DL>
</DL>
<DD>cleanhouse( ) method (chat room servers), 331-332
<DD>client class (MahJong), 740
<DD>client code
<DL>
<DD>MahJong, 738
<DD>NetOthello, 624
</DL>
<DD>client GUI (MahJong), 741
<DD>client-server, 278-282
<DL>
<DD>establishing connections, 304
<DD>exception handling, 282
<DD>high-score server, 282
<DL>
<DD>client features, 283-284
<DD>colors, 293
<DD>fonts, 293-294
<DD>HighScore protocol, 304-305
<DD>HighScoreList class, 285-290
<DD>HighScoreManager class, 283-284, 291-303
<DD>networking code, 303-306
<DD>outputting scores to files, 311-313
<DD>performance, 284
<DD>server application, 306-313
<DD>sockets, creating, 304
<DD>tasks performed, 285
<DD>updating scores, 295-296
</DL>
<DD>MahJong, 726
<DD>multiplayer games, 321
<DD>NetOthello, 624
<DD>streams, 282
<DD>terminology, 278-279
<DD><I>see also</I> networking
</DL>
<DD>clients
<DL>
<DD>chat rooms, 336
<DL>
<DD>Component methods, 338-339
<DD>design considerations, 336-337
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -