A Design of Game Dialog State Machine Based on J2ME
- Author
- ZhaoHaiLong
- Advisor
- MengZhaoPeng
- School
- Tianjin University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 44
- Citations
- 0
- State machine language
- The state machine engine
- XML serialization
- J2ME platform
- Game dialogue state machine
Abstract
A system based on J2ME mobile game dialogue state machine complete dialog resource side processing , network transmission , mobile phone interface with the operation . The system uses a multi - layer structure , the upper state machine language to describe the relationship between the user interface and game logic operation , lower design a state machine engine , to explain the implementation of the upper state machine language , the state machine engine built on top of the J2ME platform , the interface description thereof is drawn on the screen . Past, RPG ( role playing game) dialogue in dialogue processing is mixed together resources and code conversion and processing by hard-coded logic , large capacity , to make the code difficult to maintain program structure and dialogue resources dialog resources can not replace a series of questions . State machine system designed in this paper , the design of a relationship based on XML (eXtended Marked Language, Extensible Markup Language ) language - language of the state machine , game dialogue a simple transfer of resources and dialogue relations , logic processing described by the state machine language , easy to handle XML language as a description of the language , the state machine language , readable , another XML is based on tags, attributes , and characteristics , the state machine defines a label and attribute key the word set , explain the implementation of the state machine engine based on this set of keywords on the state machine language . XML format defined by the state machine language is treated as a serialized object tree structure is compressed into a planar structure , index number to read the values ??of the object , the object serialization over the wireless network to the J2ME platform by the state machine engine load execution serialized object server to the mobile platform , as an intermediary between the state machine language and state machine engine . Finally, underlying the architecture and implementation of the state machine engine , the interpretation of the language during the execution of the state machine . In this paper, the development of the state machine system is a new type of multi-level, automatic dialogue system , high flexibility in the field of game dialogue , a wide range of applications in the field of mobile education .
Table of contents
The Chinese summary 3-4
ABSTRACT 4-7
first chapter 7-10
1.1 issues raised < br /> 1.2 theoretical foundation 7-8
1.3 the research content and outlook 8-10
second chapter of J2ME development and status 10 - 18
2.1 mobile device operating system platform status quo 10-12
2.1.1 Symbian 10
2.1.2 Linux 10-11 <br / > 2.1.3 Windows CE operating system 11
2.1.4 Brew platform 11
2.1.5 J2ME platform 11-12
2.2 J2ME platform Development of 12-16
2.3 wireless game development 16-18
Chapter III state machine language designed 18-41
3.1 Needs Analysis 18-23
3.1.1 planning document 18-21
3.1.2 Analysis of the planning document 21-23
3.2 status machine language design 23-24
3.3 state machine language XML said 24-30
3.4 state machine language design ideas 30-41 <br / > 3.4.1-state machine language structure 30-35
3.4.2 state machine language logic operation 35-37
3.4.3 state machine language variable processing 37-41
Chapter IV state machine language processing 41-52
4.1 serialization needs 41-42
4.2 serialization and The basic idea of ??the deserialize the 42-45 4.3 serialization and de-serialization implementation of the state machine engine
45-52
4.3.1 Wob file with Wobject object the 45-48 4.3.2 of XML serialization
48-52-
fifth state machine engine design 52-63
5.1 state the machine engine 52-53
5.2 TJLIB Introduction 53-55
5.3 state machine engine architecture designed 55-57
5.4 state machine engine functions 57-63
5.4.1 graphical user interface (GUI) to draw 57-60
the 5.4.2 logic operations and variable processing 60 switch between -61
5.4.3 Status 61-63
Chapter prospects and Prospects to References 63-65
65 - 68
Acknowledgements 68
Related dissertations
- Mobile Games Design and Implementation Based on J2ME Platform
- Research on Design and Analysis of Security Protocol for Mobile Banking
- The GSM Combined Set Software Development
- Development and design business based on the J2ME platform and GPRS systems LBS
- Research on Secure Protocols for Mobile Lottery System Based on J2ME
- Research on Security Protocols for Mobile Payment System Based on J2ME
- Research and Development of Mobile Information Technology Based on J2ME
- Research of Security in Mobile Application Based on J2ME Platform
- Research and Development of Mobile Application System Based on J2ME
- Research on Application of NTRU Cryptography Algorithm on J2ME
- The Research and Realization about the Safe Authentication Mechanism of Mobile Payment System