id
stringlengths 36
36
| text
stringlengths 1
1.25M
|
---|---|
990983a6-22a7-4d92-b460-e9db7ecbbeb6
|
public void test_compareTo_hourDifference() {
ZonedDateTime a = ZonedDateTime.of(LocalDateTime.of(2008, 6, 30, 10, 0), ZONE_0100);
ZonedDateTime b = ZonedDateTime.of(LocalDateTime.of(2008, 6, 30, 11, 0), ZONE_0200); // a is before b
// despite being same
// time-line time
assertEquals(a.compareTo(b) < 0, true);
assertEquals(b.compareTo(a) > 0, true);
assertEquals(a.compareTo(a) == 0, true);
assertEquals(b.compareTo(b) == 0, true);
}
@Test(expectedExceptions = NullPointerException.class, groups = { "tck" }
|
7ecc61b7-44a5-4242-886e-a309aab1acbf
|
public java.lang.String getCreatedByLastName() {
return this.createdByLastName;
}
|
084565ff-aa9e-45fa-ac2a-2daa29d206d4
|
public java.lang.String getExamId() {
return this.examId;
}
|
83d03dc5-4cd4-4a5a-b5a8-0c90a68b4b11
|
private void reset(){
ParkedUsers garage = ParkedUsers.getInstance();
ParkingSpot spot = garage.searchBySpotNumber("312");
spot.setPrintWriter(null);
spot.removeAssignedUser();
}
|
61d229da-eabf-47a5-8653-75e901998226
|
public crmondemand.xml.customobject6.query.QueryType getZCustomNumber20() {
return this.zCustomNumber20;
}
|
2212fe7e-de36-4317-8684-68719471784d
|
public final int getTotalDex() {
return localdex;
}
|
aa4a1c70-f675-49c2-b49e-aa7158c99da6
|
public void setCustomNumber31(java.math.BigDecimal customNumber31) {
this.customNumber31 = customNumber31;
}
|
f3bf3015-1987-4653-b39d-df4d6920bca8
|
public void setCustomPickList62(crmondemand.xml.customobject3.query.QueryType customPickList62) {
this.customPickList62 = customPickList62;
}
|
0a42eca1-0aea-4a63-b25c-7fbfa7e8a7aa
|
public BaseThread()
{
setTID();
}
|
03376ad9-f190-441b-8a67-24ec1bd5d9b4
|
public java.util.Calendar getCustomDate7() {
return this.customDate7;
}
|
5aad71cb-d883-4c5b-8e59-529266db476d
|
public int getTerm()
{
return term;
}
|
ad6cd19a-28c8-4ea6-b3ab-ba3171334549
|
public void setCustomPickList29(crmondemand.xml.opportunity.query.QueryType customPickList29) {
this.customPickList29 = customPickList29;
}
|
4485db66-78b1-4ab1-b8e0-fe73063e09d2
|
public void setSolutionExpirationDate(crmondemand.xml.customobject3.query.QueryType solutionExpirationDate) {
this.solutionExpirationDate = solutionExpirationDate;
}
|
7507f0d4-4ded-4f37-95e1-8003f9e62ebf
|
private List<Address> generateAddresses(int nAddresses)
{
List<Address> addresses = new ArrayList<>();
while (nAddresses-- > 0)
{
addresses.add(new Address(STREET_GENERATOR.nextRandomName(), CITY_GENERATOR.nextRandomName(), STATE_GENERATOR.nextRandomName()));
}
return addresses;
}
|
8be7e665-7a69-4cb8-a72b-5ac0c841e0fb
|
public void setCustomCurrency24(java.math.BigDecimal customCurrency24) {
this.customCurrency24 = customCurrency24;
}
|
f53e891a-131d-4dd5-9ff2-67834186b847
|
public java.lang.String getCustomPickList76() {
return this.customPickList76;
}
|
928e5121-f024-47f8-b0e3-dff3eab93249
|
public java.math.BigDecimal getCustomCurrency3() {
return this.customCurrency3;
}
|
d20b4aa2-92e5-411f-be24-5ce5cc662602
|
public int getPositiveClassifications();
|
58e04cd8-c806-4dd0-ae81-86aa47d53347
|
public crmondemand.xml.customobject3.query.QueryType getCustomText63() {
return this.customText63;
}
|
f8a8be50-4496-47fa-9214-f381aec0f4a4
|
protected Room genRoomType(MOB mob, Room R, int showNumber, int showFlag)
throws IOException
{
if((showFlag>0)&&(showFlag!=showNumber))
return R;
mob.tell(L("@x1. Type: '@x2'",""+showNumber,CMClass.classID(R)));
if((showFlag!=showNumber)&&(showFlag>-999))
return R;
String newName="";
while((mob.session()!=null)&&(!mob.session().isStopped())&&(newName.length()==0))
{
newName=mob.session().prompt(L("Enter a new one (?)\n\r:"),"");
if(newName.trim().equals("?"))
{
mob.tell(CMLib.lister().reallyList2Cols(mob,CMClass.locales()).toString()+"\n\r");
newName="";
}
else
if(newName.length()>0)
{
final Room newRoom=CMClass.getLocale(newName);
if(newRoom==null)
mob.tell(L("'@x1' does not exist. No Change.",newName));
else
if(mob.session().confirm(L("This will change the room type of room @x1. It will automatically save any mobs and items in this room permanently. Are you absolutely sure (y/N)?",R.roomID()),"N"))
R=changeRoomType(R,newRoom);
R.recoverRoomStats();
}
else
{
mob.tell(L("(no change)"));
break;
}
}
return R;
}
|
a2907e49-7caf-4659-b4bc-df915ca4c156
|
public java.lang.String getCustomPickList10() {
return this.customPickList10;
}
|
ef0997d4-756b-4e5b-9849-b79b873d9052
|
public java.lang.String getCustomPickList35() {
return this.customPickList35;
}
|
fe2e9a1e-9333-40cb-a85b-821886aca87a
|
public void setAlias(String value) {
this.alias = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="conference" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="division" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="team" type="{http://feed.elasticstats.com/schema/hockey/nhl/standings-v2.0.xsd}teamRecordType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attGroup ref="{http://feed.elasticstats.com/schema/hockey/nhl/standings-v2.0.xsd}baseOrganizationAttributes"/>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attGroup ref="{http://feed.elasticstats.com/schema/hockey/nhl/standings-v2.0.xsd}baseOrganizationAttributes"/>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="year" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"conference"
}
|
ef326c8c-8d77-49ca-b62c-7b52b8309990
|
public crmondemand.xml.contact.query.QueryType getAccountIntegrationId() {
return this.accountIntegrationId;
}
|
64ff795c-3650-457f-8a01-31dee45b3517
|
public crmondemand.xml.contact.query.QueryType getPortfolioId() {
return this.portfolioId;
}
|
66ac769e-7b4a-44d7-944e-5d25d139a643
|
@Override
public void armRotateRight() {
// TODO Auto-generated method stub
}
|
b076b348-4b2e-42a3-bf5d-79fdd1e45b38
|
public GoGame()
{
super("Go"); // name of the top of the board
groups = new ArrayList<Group>();
board = new ImageIcon("go.png");// puts the board as an image icon
whitePass = false;// boolean which checks to see if white has passed
blackPass = false;// Checks to see if black has passed
JPanel panel = new JPanel();// new jpanel and setting the size and putting it to the jframe
panel.setPreferredSize(new Dimension(720, 720));
add(panel, BorderLayout.NORTH);
image = new BufferedImage(720, 720, BufferedImage.TYPE_INT_RGB);
addMouseListener(this);// sets a mouselistener to the jframe
addWindowListener(this);
setSize(720, 720); // sets the size of jframe
setVisible(true);// shows frame
setResizable(false);// makes it not resizable
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);// exits the program when the x is clicked
setIgnoreRepaint(true); // doesnt repaint the board
addMouseMotionListener(this); // adds mouse motion listener to the screen
territories = new ArrayList<Territory>();
ko = new ArrayList<int[][]>();
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); // gets screen size and put
// the frame in the middle
setLocation((screen.width - 720) / 2, (screen.height - 720) / 2);
squares = new Square[9][9]; // double array of a 9 by 9 squares
blackScore = 0;// Score of black
whiteScore = 6.5;// Score of white, white gets s 6.5 handicap because black goes first
// goes through and actually places the squares on the board and sets them to null
for (int i = 0; i < squares.length; i++)
{
for (int j = 0; j < squares[i].length; j++)
{
squares[i][j] = new Square(i, j, null);
}
}
}
|
c0c06e15-e36a-4841-a0a4-3529dc0cae65
|
public void setCustomInteger28(java.lang.Integer customInteger28) {
this.customInteger28 = customInteger28;
}
|
0836ab80-eeba-430d-8933-7c939fd33f98
|
public void setCustomerContactExternalSystemId(java.lang.String customerContactExternalSystemId) {
this.customerContactExternalSystemId = customerContactExternalSystemId;
}
|
c08628ec-bf39-4fa8-b0b5-5dafef70552f
|
public void changeProfessionLevelExp(int id, int level, int exp) {
changeSingleSkillLevel(SkillFactory.getSkill(id), ((level & 0xFF) << 24) + (exp & 0xFFFF), (byte) 10);
}
|
0e5b1ba6-278d-424c-a004-08f288566afa
|
private URL getURL(String filename) {
URL url = null;
try {
url = this.getClass().getResource(filename);
}
catch (Exception e) {
}
return url;
}
|
4be85b93-8609-4e4e-b95e-86937e9f0165
|
public void setTP(double v) { this.TP = v; }
|
caa10f67-e20c-416a-9f77-c72e62ba9dca
|
public void setObjectiveStatus(crmondemand.xml.customobject3.query.QueryType objectiveStatus) {
this.objectiveStatus = objectiveStatus;
}
|
9abfe512-ad87-4cec-8e78-d3fd81ad843d
|
public java.lang.String getPartnerName() {
return this.partnerName;
}
|
06b28489-42a5-4174-a220-e92d37888b5e
|
public void setCustomText50(java.lang.String customText50) {
this.customText50 = customText50;
}
|
63056b08-9e2a-4f7e-b48b-fc030e75ec56
|
public void setCustomDate24(crmondemand.xml.contact.query.QueryType customDate24) {
this.customDate24 = customDate24;
}
|
54546bbf-9b58-4630-a2b7-913185c96db8
|
public crmondemand.xml.contact.query.QueryType getCustomCurrency12() {
return this.customCurrency12;
}
|
d43fddc1-4fea-47cc-bcd8-bc4490139a10
|
public crmondemand.xml.opportunity.query.QueryType getCustomText45() {
return this.customText45;
}
|
0128838b-93e7-40d1-8b39-74258e7eaade
|
@Override
public void keyTyped(KeyEvent arg0) {
// TODO Auto-generated method stub
}
|
457eb970-b678-4fd2-93ea-e3743e2be619
|
public java.lang.String getOpportunityType() {
return this.opportunityType;
}
|
6c351420-471e-4028-9455-23d9fde8227b
|
public void setCWE(String CWE){
this.CWE = CWE;
}
|
8e538ab1-a532-4645-8297-e1889f994d2d
|
public void setCustomText24(java.lang.String customText24) {
this.customText24 = customText24;
}
|
fea0eb08-4b51-4adc-bb12-95db0c52aa38
|
public java.lang.String getDistributorAccountName() {
return this.distributorAccountName;
}
|
c02e84c0-45bb-4ab3-9614-881f9fbeba73
|
private AdministradorPersistenciaCliente() {
}
|
20639394-64eb-44d9-90eb-3c8af8f15d5b
|
public crmondemand.xml.contact.query.QueryType getCustomInteger8() {
return this.customInteger8;
}
|
8d551bfe-d861-4008-99f9-82dd62409f16
|
public void setCustomBoolean0(crmondemand.xml.contact.query.QueryType customBoolean0) {
this.customBoolean0 = customBoolean0;
}
|
426195af-96a4-4cde-9c92-2bd7649cba15
|
public crmondemand.xml.contact.query.QueryType getCustomDate14() {
return this.customDate14;
}
|
5395ed11-6233-4c66-b386-71f83166976b
|
public crmondemand.xml.customobject3.query.QueryType getCreatedByUserSignInId() {
return this.createdByUserSignInId;
}
|
3989e2f2-be03-4ccf-89c6-175d7b0e009a
|
public void setCustomText57(java.lang.String customText57) {
this.customText57 = customText57;
}
|
43b832ba-7016-4272-8170-527a6c562a48
|
public void setOpportunityRevenue(java.math.BigDecimal opportunityRevenue) {
this.opportunityRevenue = opportunityRevenue;
}
|
9259b7b2-2592-40b4-9404-17ca4f9f4b1e
|
public crmondemand.xml.customobject3.query.QueryType getCustomPickList8() {
return this.customPickList8;
}
|
4617eaeb-96cd-47e6-acba-4f6f604e4324
|
public void setPitchDegrees(float pitchDegrees){
m_pitchDegrees = pitchDegrees;
}
|
8aaa7285-6f57-4eff-abec-9d19b84533e0
|
public java.math.BigDecimal getCustomNumber58() {
return this.customNumber58;
}
|
af4e4ef7-a3af-4b22-8a40-a88b061b4b25
|
public void setCustomNumber0(java.math.BigDecimal customNumber0) {
this.customNumber0 = customNumber0;
}
|
6280365e-3fa6-4e87-969a-b339e3e7a9bc
|
public void setCustomPickList48(java.lang.String customPickList48) {
this.customPickList48 = customPickList48;
}
|
1138913b-aeeb-4d4f-b3be-be54bc94afd0
|
public crmondemand.xml.customobject6.query.QueryType getPrimaryProductStatus() {
return this.primaryProductStatus;
}
|
429b9051-3a7d-4a70-9c3f-0ea1e9529940
|
public static int getWidth(int index) {
return Width[index];
}
|
d5a891d4-65e4-472f-91b4-f2f91967f11c
|
public int countCoins(String state) {
int count = 0;
for (int i = 0; i < state.length(); i++) {
if (i > 0 && !equalsToPreviousCoin(state, i)) {
count++;
} else if (i < state.length() - 1 && !equalsToNextCoin(state, i)) {
count++;
}
}
return count;
}
|
51f92b0c-cb2a-4c6d-9742-0b56f9831c13
|
public void setActivityId(crmondemand.xml.contact.query.QueryType activityId) {
this.activityId = activityId;
}
|
fd6791af-34c4-4d14-8a06-f96b950ce1a1
|
public java.lang.Boolean getZCustomBoolean24() {
return this.zCustomBoolean24;
}
|
71fc6cde-65d1-4ab9-b40c-c95b59d8e532
|
public crmondemand.xml.customobject3.query.QueryType getCustomObject4Id() {
return this.customObject4Id;
}
|
abb11814-4f10-4c32-ba56-0a9d481ffa6f
|
public crmondemand.xml.opportunity.query.QueryType getSolutionTitle() {
return this.solutionTitle;
}
|
68c6b4e1-ce18-4fb2-9c2e-cd595d0615a6
|
public void setCustomNumber30(crmondemand.xml.customobject6.query.QueryType customNumber30) {
this.customNumber30 = customNumber30;
}
|
0710b585-e3e5-4cef-aa3d-ffc59bc30fd8
|
public static void depthFirstRecurse(Graph g, int v, boolean[ ] marked)
{
int[ ] connections = g.neighbors(v);
int i;
int nextNeighbor;
marked[v] = true;
System.out.println(g.getLabel(v));
// Traverse all the neighbors, looking for unmarked vertices:
for (i = 0; i < connections.length; i++)
{
nextNeighbor = connections[i];
if (!marked[nextNeighbor])
depthFirstRecurse(g, nextNeighbor, marked);
}
}
|
3114c872-3429-466c-a7de-42737f877e0c
|
public java.lang.String getExamType() {
return this.examType;
}
|
9cf7d8d1-d3c9-4733-b9db-b60a3d9263a1
|
public void setContactId(crmondemand.xml.customobject6.query.QueryType contactId) {
this.contactId = contactId;
}
|
ac18f1d5-3565-493d-9a54-5b7a83b69d49
|
public Parser linePhrase() {
if (linePhraseParser == null) {
FutureParser future = scoped("linePhrase");
linePhraseParser = future;
future.setParser(
choice(
token("LEFTLINE"),
token("OVERLINE"),
token("UNDERLINE")
)
);
}
return linePhraseParser;
}
|
338296b9-7269-42c3-a6be-a8bdf1f9a2a3
|
public void setIntegrationId(java.lang.String integrationId) {
this.integrationId = integrationId;
}
|
2cc90f6f-b0b8-44ff-9ba6-2c0d269d0d23
|
public void setPlanType(crmondemand.xml.opportunity.query.QueryType planType) {
this.planType = planType;
}
|
2bcb8d06-7c06-4e3d-a00e-ab9b9d695a31
|
public Type_pose(int id_type_pose, String nom_type_pose, String enroulement, int rabat) {
this.id_type_pose = id_type_pose;
this.nom_type_pose = nom_type_pose;
this.enroulement = enroulement;
this.rabat = rabat;
}
|
14aca4a1-d547-4dc2-8531-3fb7edfe9a51
|
public java.lang.String getCustomPickList38() {
return this.customPickList38;
}
|
0705424f-b0d7-4f06-8a80-66a75a1f4941
|
public java.lang.String getParentPolicyLineofBusiness() {
return this.parentPolicyLineofBusiness;
}
|
c35278d7-4bb3-499f-b9eb-d9fb22f2298b
|
public void setStreet(crmondemand.xml.customobject3.query.QueryType street) {
this.street = street;
}
|
6f649b16-2070-4314-abe0-eba9ef136c33
|
public java.lang.String getPlanItemId() {
return this.planItemId;
}
|
2e9acb1f-57ab-41d3-aff2-8ce4ec12e2bb
|
private V runFunc(int op, K key,V val){
//System.out.println("running op " + op +" with "+ key + " and " + val);
while(true){
//set all of the relevent values
rec.get().req.op = op;
rec.get().req.key = key;
rec.get().req.value = val;
//if it's active run the active function
if(rec.get().active){
V ret = active();
//System.out.println("success " + op +" with "+ key + " and " + val);
return ret;
}else{
//if it's not active, we need to make the
//record for this thread active
set_active();
}
}
}
|
913182b3-9a2f-4610-ad90-0f56cf2f8690
|
public crmondemand.xml.customobject6.query.QueryType getPartnerChannelAccountManagerAlias() {
return this.partnerChannelAccountManagerAlias;
}
|
7f920a96-c806-425e-8db7-944e9301df89
|
public void setOwnerId(crmondemand.xml.customobject3.query.QueryType ownerId) {
this.ownerId = ownerId;
}
|
d50f0082-2d55-4e4f-9650-505a57a5f08b
|
public java.util.Calendar getCustomDate58() {
return this.customDate58;
}
|
7327bf46-43f6-4dbb-bb8a-96f57dfb0be8
|
public void setCustomObject9Id(crmondemand.xml.customobject6.query.QueryType customObject9Id) {
this.customObject9Id = customObject9Id;
}
|
ecea6c30-d8c7-49a6-851b-e775630add9a
|
public java.math.BigDecimal getCustomNumber17() {
return this.customNumber17;
}
|
f413bc03-6903-4740-acda-2a5d3183c415
|
public java.lang.String getCustomPickList2() {
return this.customPickList2;
}
|
7ef16cff-b90b-42de-9e00-71b1e62b4a2e
|
@Override
public int hashCode()
{
return hashCode;
}
|
e8f6dbef-2e4c-4180-aed7-749cc91043b8
|
public java.math.BigDecimal getCustomNumber31() {
return this.customNumber31;
}
|
eb6e9930-6e15-45d4-b9d8-008c4a2585f6
|
public crmondemand.xml.customobject6.query.QueryType getCustomInteger34() {
return this.customInteger34;
}
|
ad806e2e-30bb-4bfb-84b9-84e76302c48f
|
public Parser replacementTarget() {
if (replacementTargetParser == null) {
FutureParser future = scoped("replacementTarget");
replacementTargetParser = future;
future.setParser(
choice(
token("ALPHABETIC"),
token("ALPHANUMERIC"),
token("ALPHANUMERIC-EDITED"),
token("NATIONAL"),
token("NATIONAL-EDITED"),
token("NUMERIC"),
token("NUMERIC-EDITED"),
token("DBCS"),
token("EGCS")
)
);
}
return replacementTargetParser;
}
|
01e51bf4-a496-496a-991d-df49dee73917
|
public synchronized void open(InetSocketAddress remoteHost,
boolean daemonThread) throws SocketException {
if (isOpen()) {
return;
}
this.remoteHost = remoteHost;
socket = new DatagramSocket();
socket.setReuseAddress(true);
socket.connect(remoteHost);
startListening(daemonThread);
}
|
fc5082d4-5265-4023-9ffb-0276bf999fb2
|
public java.lang.Boolean getCustomBoolean14() {
return this.customBoolean14;
}
|
dee49e78-dee5-4daf-b0c9-4d70d98ecdfd
|
public void setCustomObject11ExternalSystemId(java.lang.String customObject11ExternalSystemId) {
this.customObject11ExternalSystemId = customObject11ExternalSystemId;
}
|
5a526656-ffaa-4daa-9868-18d7a4bf951a
|
public void linkLayer(NeuralLayer l) {
for (NeuralNode m : l.getNodeList())
linkNode(m);
}
|
b14b616a-b73b-4a97-a9b0-47ed5da40549
|
public JLabel getjLabel12() {
return jLabel12;
}
|
cae0618a-e5be-4b59-9194-855a5b849735
|
public crmondemand.xml.customobject3.query.QueryType getCustomText17() {
return this.customText17;
}
|
d88fc6d3-f7ea-45e9-b562-9fac042dc3ad
|
public java.lang.String getTerritory() {
return this.territory;
}
|
31cea262-d7c3-4740-89a3-5647745183ef
|
public java.util.Calendar getCustomDate12() {
return this.customDate12;
}
|
11a72078-e39b-42f3-9155-5068ce7fdaa2
|
public crmondemand.xml.customobject6.query.QueryType getCustomObject9ExternalSystemId() {
return this.customObject9ExternalSystemId;
}
|
58f06d69-775c-4aac-9ce0-26ba698e135e
|
public crmondemand.xml.opportunity.query.QueryType getCustomPhone7() {
return this.customPhone7;
}
|
0922ff90-3dcd-44f7-9eea-00e243785af4
|
public java.lang.Integer getCustomInteger16() {
return this.customInteger16;
}
|
91e6e99a-5237-4be6-ab2a-d522c978aebf
|
Set<Claim> getAllClaims();
|
fdec38db-7791-4964-b344-747e32de3935
|
static void get_sprite_info( ){
// const struct rectangle *clip = &Machine.drv.visible_area;
CharPtr base_pal = new CharPtr(Machine.gfx[0].colortable, 1024);
UBytePtr base_gfx = memory_region(REGION_GFX2);
UShortPtr source = new UShortPtr(sys16_spriteram);
sprite sprite[] = sprite_list.sprite;
int sprite_ptr=0;
int finish = sprite_ptr + NUM_SPRITES;//const struct sprite *finish = sprite + NUM_SPRITES;
int passshot_y=0;
int passshot_width=0;
switch( sys16_spritesystem ){
case 1: /* standard sprite hardware (Shinobi, Altered Beast, Golden Axe, ...) */
/*
0 bottom-- top----- (screen coordinates)
1 ???????X XXXXXXXX (screen coordinate)
2 ???????F FWWWWWWW (flipx, flipy, logical width)
3 TTTTTTTT TTTTTTTT (pen data)
4 ????BBBB PPCCCCCC (attributes: bank, priority, color)
5 ??????ZZ ZZZZZZZZ zoomx
6 ??????ZZ ZZZZZZZZ zoomy (defaults to zoomx)
7 ? "sprite offset"
*/
while( sprite_ptr<finish ){
char ypos = source.read(0);
char width = source.read(2);
int top = ypos&0xff;
int bottom = ypos>>8;
if( bottom == 0xff || width ==sys16_spritelist_end){ /* end of spritelist marker */
do {
sprite[sprite_ptr].flags = 0;
sprite_ptr++;
} while( sprite_ptr<finish );
break;
}
sprite[sprite_ptr].flags = 0;
if(bottom !=0 && bottom > top)
{
char attributes = source.read(4);
char zoomx = (char)(source.read(5)&0x3ff);
char zoomy = (char)((source.read(6)&0x3ff));
int gfx = source.read(3)*4;
if( zoomy==0 || source.read(6)==0xffff ) zoomy = zoomx; /* if zoomy is 0, use zoomx instead */
sprite[sprite_ptr].x = source.read(1) + sys16_sprxoffset;
sprite[sprite_ptr].y = top;
sprite[sprite_ptr].priority = 3-((attributes>>6)&0x3);
sprite[sprite_ptr].pal_data = new CharPtr(base_pal, ((attributes&0x3f)<<4));
sprite[sprite_ptr].total_height = bottom-top;
sprite[sprite_ptr].tile_height = sprite[sprite_ptr].total_height*(0x400+zoomy)/0x400;
sprite[sprite_ptr].line_offset = (width&0x7f)*4;
sprite[sprite_ptr].flags = SPRITE_VISIBLE;
if ((width & 0x100) != 0) sprite[sprite_ptr].flags |= SPRITE_FLIPX;
if ((width & 0x080) != 0) sprite[sprite_ptr].flags |= SPRITE_FLIPY;
if ((attributes&0x3f)==0x3f) // shadow sprite
sprite[sprite_ptr].flags|= SPRITE_SHADOW;
if(( sprite[sprite_ptr].flags&SPRITE_FLIPY )!=0){
sprite[sprite_ptr].line_offset = 512-sprite[sprite_ptr].line_offset;
if(( sprite[sprite_ptr].flags&SPRITE_FLIPX )!=0){
gfx += 4 - sprite[sprite_ptr].line_offset*(sprite[sprite_ptr].tile_height+1);
}
else {
gfx -= sprite[sprite_ptr].line_offset*sprite[sprite_ptr].tile_height;
}
}
else {
if(( sprite[sprite_ptr].flags&SPRITE_FLIPX )!=0){
gfx += 4;
}
else {
gfx += sprite[sprite_ptr].line_offset;
}
}
sprite[sprite_ptr].tile_width = sprite[sprite_ptr].line_offset;
sprite[sprite_ptr].total_width = sprite[sprite_ptr].tile_width*(0x800-zoomx)/0x800;
sprite[sprite_ptr].pen_data = new UBytePtr(base_gfx , (gfx &0x3ffff) + (sys16_obj_bank[(attributes>>8)&0xf] << 17));
}
sprite_ptr++;
source.offset += 8*2;
}
break;
/*TODO*///
/*TODO*/// case 8: /* Passing shot 4p */
/*TODO*/// passshot_y=-0x23;
/*TODO*/// passshot_width=1;
/*TODO*/// case 0: /* Passing shot */
/*TODO*/// /*
/*TODO*/// 0 ???????X XXXXXXXX (screen coordinate)
/*TODO*/// 1 bottom-- top----- (screen coordinates)
/*TODO*/// 2 XTTTTTTT YTTTTTTT (pen data, flipx, flipy)
/*TODO*/// 3 ???????? ?WWWWWWW (logical width)
/*TODO*/// 4 ??????ZZ ZZZZZZZZ zoom
/*TODO*/// 5 PP???CCC BBBB???? (attributes: bank, priority, color)
/*TODO*/// 6,7 (unused)
/*TODO*/// */
/*TODO*/// while( sprite<finish ){
/*TODO*/// UINT16 attributes = source[5];
/*TODO*/// UINT16 ypos = source[1];
/*TODO*/// int bottom = (ypos>>8)+passshot_y;
/*TODO*/// int top = (ypos&0xff)+passshot_y;
/*TODO*/// sprite.flags = 0;
/*TODO*///
/*TODO*/// if( bottom>top && ypos!=0xffff ){
/*TODO*/// int bank = (attributes>>4)&0xf;
/*TODO*/// UINT16 number = source[2];
/*TODO*/// UINT16 width = source[3];
/*TODO*///
/*TODO*/// int zoom = source[4]&0x3ff;
/*TODO*/// int xpos = source[0] + sys16_sprxoffset;
/*TODO*///
/*TODO*/// sprite.priority = 3-((attributes>>14)&0x3);
/*TODO*/// if (passshot_width != 0) /* 4 player bootleg version */
/*TODO*/// {
/*TODO*/// width=-width;
/*TODO*/// number-=width*(bottom-top-1)-1;
/*TODO*/// }
/*TODO*///
/*TODO*/// if ((number & 0x8000) != 0) sprite.flags |= SPRITE_FLIPX;
/*TODO*/// if ((width & 0x0080) != 0) sprite.flags |= SPRITE_FLIPY;
/*TODO*/// sprite.flags |= SPRITE_VISIBLE;
/*TODO*/// sprite.pal_data = base_pal + ((attributes>>4)&0x3f0);
/*TODO*/// sprite.total_height = bottom - top;
/*TODO*/// sprite.tile_height = sprite.total_height*(0x400+zoom)/0x400;
/*TODO*///
/*TODO*/// if (((attributes>>8)&0x3f)==0x3f) // shadow sprite
/*TODO*/// sprite.flags|= SPRITE_SHADOW;
/*TODO*///
/*TODO*/// width &= 0x7f;
/*TODO*///
/*TODO*/// if( sprite.flags&SPRITE_FLIPY ) width = 0x80-width;
/*TODO*///
/*TODO*/// sprite.tile_width = sprite.line_offset = width*4;
/*TODO*///
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// bank = (bank-1) & 0xf;
/*TODO*/// if( sprite.flags&SPRITE_FLIPY ){
/*TODO*/// xpos += 4;
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// number += 1-width;
/*TODO*/// }
/*TODO*/// }
/*TODO*/// sprite.pen_data = base_gfx + number*4 + (sys16_obj_bank[bank] << 17);
/*TODO*///
/*TODO*/// if( sprite.flags&SPRITE_FLIPY ){
/*TODO*/// sprite.pen_data -= sprite.tile_height*sprite.tile_width;
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ) sprite.pen_data += 2;
/*TODO*/// }
/*TODO*///
/*TODO*/// sprite.x = xpos;
/*TODO*/// sprite.y = top+2;
/*TODO*///
/*TODO*/// if( sprite.flags&SPRITE_FLIPY ){
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// sprite.tile_width-=4;
/*TODO*/// sprite.pen_data+=4;
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// sprite.pen_data += sprite.line_offset;
/*TODO*/// }
/*TODO*/// }
/*TODO*///
/*TODO*/// sprite.total_width = sprite.tile_width*(0x800-zoom)/0x800;
/*TODO*/// }
/*TODO*/// sprite++;
/*TODO*/// source += 8;
/*TODO*/// }
/*TODO*/// break;
/*TODO*///
/*TODO*/// case 4: // Aurail
/*TODO*/// /*
/*TODO*/// 0 bottom-- top----- (screen coordinates)
/*TODO*/// 1 ???????X XXXXXXXX (screen coordinate)
/*TODO*/// 2 ???????F FWWWWWWW (flipx, flipy, logical width)
/*TODO*/// 3 TTTTTTTT TTTTTTTT (pen data)
/*TODO*/// 4 ????BBBB PPCCCCCC (attributes: bank, priority, color)
/*TODO*/// 5 ??????ZZ ZZZZZZZZ zoomx
/*TODO*/// 6 ??????ZZ ZZZZZZZZ zoomy (defaults to zoomx)
/*TODO*/// 7 ? "sprite offset"
/*TODO*/// */
/*TODO*/// while( sprite<finish ){
/*TODO*/// UINT16 ypos = source[0];
/*TODO*/// UINT16 width = source[2];
/*TODO*/// UINT16 attributes = source[4];
/*TODO*/// int top = ypos&0xff;
/*TODO*/// int bottom = ypos>>8;
/*TODO*///
/*TODO*/// if( width == sys16_spritelist_end) {
/*TODO*/// do {
/*TODO*/// sprite.flags = 0;
/*TODO*/// sprite++;
/*TODO*/// } while( sprite<finish );
/*TODO*/// break;
/*TODO*/// }
/*TODO*/// sprite.flags = 0;
/*TODO*/// if(bottom !=0 && bottom > top)
/*TODO*/// {
/*TODO*/// UINT16 zoomx = source[5]&0x3ff;
/*TODO*/// UINT16 zoomy = (source[6]&0x3ff);
/*TODO*/// int gfx = source[3]*4;
/*TODO*///
/*TODO*/// if( zoomy==0 ) zoomy = zoomx; /* if zoomy is 0, use zoomx instead */
/*TODO*/// sprite.pal_data = base_pal + ((attributes&0x3f)<<4);
/*TODO*///
/*TODO*/// sprite.x = source[1] + sys16_sprxoffset;;
/*TODO*/// sprite.y = top;
/*TODO*/// sprite.priority = 3-((attributes>>6)&0x3);
/*TODO*///
/*TODO*/// sprite.total_height = bottom-top;
/*TODO*/// sprite.tile_height = sprite.total_height*(0x400+zoomy)/0x400;
/*TODO*///
/*TODO*/// sprite.line_offset = (width&0x7f)*4;
/*TODO*///
/*TODO*/// sprite.flags = SPRITE_VISIBLE;
/*TODO*/// if ((width & 0x100) != 0) sprite.flags |= SPRITE_FLIPX;
/*TODO*/// if ((width & 0x080) != 0) sprite.flags |= SPRITE_FLIPY;
/*TODO*///
/*TODO*/// if ((attributes&0x3f)==0x3f) // shadow sprite
/*TODO*/// sprite.flags|= SPRITE_SHADOW;
/*TODO*///
/*TODO*/// if( sprite.flags&SPRITE_FLIPY ){
/*TODO*/// sprite.line_offset = 512-sprite.line_offset;
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// gfx += 4 - sprite.line_offset*(sprite.tile_height+1);
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// gfx -= sprite.line_offset*sprite.tile_height;
/*TODO*/// }
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// gfx += 4;
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// gfx += sprite.line_offset;
/*TODO*/// }
/*TODO*/// }
/*TODO*///
/*TODO*/// sprite.tile_width = sprite.line_offset;
/*TODO*/// sprite.total_width = sprite.tile_width*(0x800-zoomx)/0x800;
/*TODO*/// sprite.pen_data = base_gfx + (gfx &0x3ffff) + (sys16_obj_bank[(attributes>>8)&0xf] << 17);
/*TODO*///
/*TODO*/// }
/*TODO*/// sprite++;
/*TODO*/// source += 8;
/*TODO*/// }
/*TODO*/// break;
/*TODO*/// case 3: // Fantzone
/*TODO*/// {
/*TODO*/// int spr_no=0;
/*TODO*/// while( sprite<finish ){
/*TODO*/// UINT16 ypos = source[0];
/*TODO*/// UINT16 pal=(source[4]>>8)&0x3f;
/*TODO*/// int top = ypos&0xff;
/*TODO*/// int bottom = ypos>>8;
/*TODO*///
/*TODO*/// if( bottom == 0xff ){ /* end of spritelist marker */
/*TODO*/// do {
/*TODO*/// sprite.flags = 0;
/*TODO*/// sprite++;
/*TODO*/// } while( sprite<finish );
/*TODO*/// break;
/*TODO*/// }
/*TODO*/// sprite.flags = 0;
/*TODO*///
/*TODO*/// if(bottom !=0 && bottom > top)
/*TODO*/// {
/*TODO*/// UINT16 spr_pri=(source[4])&0xf;
/*TODO*/// UINT16 bank=(source[4]>>4) &0xf;
/*TODO*/// UINT16 tsource[4];
/*TODO*/// UINT16 width;
/*TODO*/// int gfx;
/*TODO*///
/*TODO*/// if (spr_no==5 && (source[4]&0x00ff) == 0x0021 &&
/*TODO*/// ((source[3]&0xff00) == 0x5200 || (source[3]&0xff00) == 0x5300)) spr_pri=2; // tears fix for ending boss
/*TODO*///
/*TODO*/// tsource[2]=source[2];
/*TODO*/// tsource[3]=source[3];
/*TODO*///
/*TODO*/// if((tsource[3] & 0x7f80) == 0x7f80)
/*TODO*/// {
/*TODO*/// bank=(bank-1)&0xf;
/*TODO*/// tsource[3]^=0x8000;
/*TODO*/// }
/*TODO*///
/*TODO*/// tsource[2] &= 0x00ff;
/*TODO*/// if (tsource[3]&0x8000)
/*TODO*/// { // reverse
/*TODO*/// tsource[2] |= 0x0100;
/*TODO*/// tsource[3] &= 0x7fff;
/*TODO*/// }
/*TODO*///
/*TODO*/// gfx = tsource[3]*4;
/*TODO*/// width = tsource[2];
/*TODO*/// top++;
/*TODO*/// bottom++;
/*TODO*///
/*TODO*/// sprite.x = source[1] + sys16_sprxoffset;
/*TODO*/// if(sprite.x > 0x140) sprite.x-=0x200;
/*TODO*/// sprite.y = top;
/*TODO*/// sprite.priority = 3-spr_pri;
/*TODO*/// sprite.pal_data = base_pal + (pal<<4);
/*TODO*///
/*TODO*/// sprite.total_height = bottom-top;
/*TODO*/// sprite.tile_height = sprite.total_height;
/*TODO*///
/*TODO*/// sprite.line_offset = (width&0x7f)*4;
/*TODO*///
/*TODO*/// sprite.flags = SPRITE_VISIBLE;
/*TODO*/// if ((width & 0x100) != 0) sprite.flags |= SPRITE_FLIPX;
/*TODO*/// if ((width & 0x080) != 0) sprite.flags |= SPRITE_FLIPY;
/*TODO*///
/*TODO*/// if (pal==0x3f) // shadow sprite
/*TODO*/// sprite.flags|= SPRITE_SHADOW;
/*TODO*///
/*TODO*/// if( sprite.flags&SPRITE_FLIPY ){
/*TODO*/// sprite.line_offset = 512-sprite.line_offset;
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// gfx += 4 - sprite.line_offset*(sprite.tile_height+1);
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// gfx -= sprite.line_offset*sprite.tile_height;
/*TODO*/// }
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// gfx += 4;
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// gfx += sprite.line_offset;
/*TODO*/// }
/*TODO*/// }
/*TODO*///
/*TODO*/// sprite.tile_width = sprite.line_offset;
/*TODO*/// if(width==0) sprite.tile_width=320; // fixes laser
/*TODO*/// sprite.total_width = sprite.tile_width;
/*TODO*/// sprite.pen_data = base_gfx + (gfx &0x3ffff) + (sys16_obj_bank[bank] << 17);
/*TODO*///
/*TODO*/// }
/*TODO*///
/*TODO*/// source+=8;
/*TODO*/// sprite++;
/*TODO*/// spr_no++;
/*TODO*/// }
/*TODO*/// }
/*TODO*/// break;
/*TODO*/// case 2: // Quartet2 /Alexkidd + others
/*TODO*/// while( sprite<finish ){
/*TODO*/// UINT16 ypos = source[0];
/*TODO*/// int top = ypos&0xff;
/*TODO*/// int bottom = ypos>>8;
/*TODO*///
/*TODO*/// if( bottom == 0xff ){ /* end of spritelist marker */
/*TODO*/// do {
/*TODO*/// sprite.flags = 0;
/*TODO*/// sprite++;
/*TODO*/// } while( sprite<finish );
/*TODO*/// break;
/*TODO*/// }
/*TODO*/// sprite.flags = 0;
/*TODO*///
/*TODO*/// if(bottom !=0 && bottom > top)
/*TODO*/// {
/*TODO*/// UINT16 spr_pri=(source[4])&0xf;
/*TODO*/// UINT16 bank=(source[4]>>4) &0xf;
/*TODO*/// UINT16 pal=(source[4]>>8)&0x3f;
/*TODO*/// UINT16 tsource[4];
/*TODO*/// UINT16 width;
/*TODO*/// int gfx;
/*TODO*///
/*TODO*/// tsource[2]=source[2];
/*TODO*/// tsource[3]=source[3];
/*TODO*///
/*TODO*/// if((tsource[3] & 0x7f80) == 0x7f80)
/*TODO*/// {
/*TODO*/// bank=(bank-1)&0xf;
/*TODO*/// tsource[3]^=0x8000;
/*TODO*/// }
/*TODO*///
/*TODO*/// tsource[2] &= 0x00ff;
/*TODO*/// if (tsource[3]&0x8000)
/*TODO*/// { // reverse
/*TODO*/// tsource[2] |= 0x0100;
/*TODO*/// tsource[3] &= 0x7fff;
/*TODO*/// }
/*TODO*///
/*TODO*/// gfx = tsource[3]*4;
/*TODO*/// width = tsource[2];
/*TODO*/// top++;
/*TODO*/// bottom++;
/*TODO*///
/*TODO*/// sprite.x = source[1] + sys16_sprxoffset;
/*TODO*/// if(sprite.x > 0x140) sprite.x-=0x200;
/*TODO*/// sprite.y = top;
/*TODO*/// sprite.priority = 3 - spr_pri;
/*TODO*/// sprite.pal_data = base_pal + (pal<<4);
/*TODO*///
/*TODO*/// sprite.total_height = bottom-top;
/*TODO*/// sprite.tile_height = sprite.total_height;
/*TODO*///
/*TODO*/// sprite.line_offset = (width&0x7f)*4;
/*TODO*///
/*TODO*/// sprite.flags = SPRITE_VISIBLE;
/*TODO*/// if ((width & 0x100) != 0) sprite.flags |= SPRITE_FLIPX;
/*TODO*/// if ((width & 0x080) != 0) sprite.flags |= SPRITE_FLIPY;
/*TODO*///
/*TODO*/// if (pal==0x3f) // shadow sprite
/*TODO*/// sprite.flags|= SPRITE_SHADOW;
/*TODO*///
/*TODO*/// if( sprite.flags&SPRITE_FLIPY ){
/*TODO*/// sprite.line_offset = 512-sprite.line_offset;
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// gfx += 4 - sprite.line_offset*(sprite.tile_height+1);
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// gfx -= sprite.line_offset*sprite.tile_height;
/*TODO*/// }
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// gfx += 4;
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// gfx += sprite.line_offset;
/*TODO*/// }
/*TODO*/// }
/*TODO*///
/*TODO*/// sprite.tile_width = sprite.line_offset;
/*TODO*/// sprite.total_width = sprite.tile_width;
/*TODO*/// sprite.pen_data = base_gfx + (gfx &0x3ffff) + (sys16_obj_bank[bank] << 17);
/*TODO*/// }
/*TODO*///
/*TODO*/// source+=8;
/*TODO*/// sprite++;
/*TODO*/// }
/*TODO*/// break;
/*TODO*/// case 5: // Hang-On
/*TODO*/// while( sprite<finish ){
/*TODO*/// UINT16 ypos = source[0];
/*TODO*/// int top = ypos&0xff;
/*TODO*/// int bottom = ypos>>8;
/*TODO*///
/*TODO*/// if( bottom == 0xff ){ /* end of spritelist marker */
/*TODO*/// do {
/*TODO*/// sprite.flags = 0;
/*TODO*/// sprite++;
/*TODO*/// } while( sprite<finish );
/*TODO*/// break;
/*TODO*/// }
/*TODO*/// sprite.flags = 0;
/*TODO*///
/*TODO*/// if(bottom !=0 && bottom > top)
/*TODO*/// {
/*TODO*/// UINT16 bank=(source[1]>>12);
/*TODO*/// UINT16 pal=(source[4]>>8)&0x3f;
/*TODO*/// UINT16 tsource[4];
/*TODO*/// UINT16 width;
/*TODO*/// int gfx;
/*TODO*/// int zoomx,zoomy;
/*TODO*///
/*TODO*/// tsource[2]=source[2];
/*TODO*/// tsource[3]=source[3];
/*TODO*///
/*TODO*/// zoomx=((source[4]>>2) & 0x3f) *(1024/64);
/*TODO*/// zoomy = (1060*zoomx)/(2048-zoomx);
/*TODO*///
/*TODO*/// // if (pal==0x3f) // ????????????
/*TODO*/// // pal=(bank<<1);
/*TODO*///
/*TODO*/// if((tsource[3] & 0x7f80) == 0x7f80)
/*TODO*/// {
/*TODO*/// bank=(bank-1)&0xf;
/*TODO*/// tsource[3]^=0x8000;
/*TODO*/// }
/*TODO*///
/*TODO*/// if (tsource[3]&0x8000)
/*TODO*/// { // reverse
/*TODO*/// tsource[2] |= 0x0100;
/*TODO*/// tsource[3] &= 0x7fff;
/*TODO*/// }
/*TODO*///
/*TODO*/// gfx = tsource[3]*4;
/*TODO*/// width = tsource[2];
/*TODO*///
/*TODO*/// sprite.x = ((source[1] & 0x3ff) + sys16_sprxoffset);
/*TODO*/// if(sprite.x >= 0x200) sprite.x-=0x200;
/*TODO*/// sprite.y = top;
/*TODO*/// sprite.priority = 0;
/*TODO*/// sprite.pal_data = base_pal + (pal<<4);
/*TODO*///
/*TODO*/// sprite.total_height = bottom-top;
/*TODO*/// sprite.tile_height = sprite.total_height*(0x400+zoomy)/0x400;
/*TODO*///
/*TODO*/// sprite.line_offset = (width&0x7f)*4;
/*TODO*///
/*TODO*/// sprite.flags = SPRITE_VISIBLE;
/*TODO*/// if ((width & 0x100) != 0) sprite.flags |= SPRITE_FLIPX;
/*TODO*/// if ((width & 0x080) != 0) sprite.flags |= SPRITE_FLIPY;
/*TODO*///
/*TODO*///
/*TODO*/// // sprite.flags|= SPRITE_PARTIAL_SHADOW;
/*TODO*/// // sprite.shadow_pen=10;
/*TODO*///
/*TODO*/// if( sprite.flags&SPRITE_FLIPY ){
/*TODO*/// sprite.line_offset = 512-sprite.line_offset;
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// gfx += 4 - sprite.line_offset*(sprite.tile_height+1);
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// gfx -= sprite.line_offset*sprite.tile_height;
/*TODO*/// }
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// gfx += 4;
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// gfx += sprite.line_offset;
/*TODO*/// }
/*TODO*/// }
/*TODO*///
/*TODO*/// sprite.tile_width = sprite.line_offset;
/*TODO*/// sprite.total_width = sprite.tile_width*(0x0800 - zoomx)/0x800;
/*TODO*/// sprite.pen_data = base_gfx + (gfx &0x3ffff) + (sys16_obj_bank[bank] << 17);
/*TODO*///
/*TODO*/// }
/*TODO*///
/*TODO*/// source+=8;
/*TODO*/// sprite++;
/*TODO*/// }
/*TODO*/// break;
/*TODO*/// case 6: // Space Harrier
/*TODO*/// while( sprite<finish ){
/*TODO*/// UINT16 ypos = source[0];
/*TODO*/// int top = ypos&0xff;
/*TODO*/// int bottom = ypos>>8;
/*TODO*///
/*TODO*/// if( bottom == 0xff ){ /* end of spritelist marker */
/*TODO*/// do {
/*TODO*/// sprite.flags = 0;
/*TODO*/// sprite++;
/*TODO*/// } while( sprite<finish );
/*TODO*/// break;
/*TODO*/// }
/*TODO*/// sprite.flags = 0;
/*TODO*///
/*TODO*/// if(bottom !=0 && bottom > top)
/*TODO*/// {
/*TODO*/// UINT16 bank=(source[1]>>12);
/*TODO*/// UINT16 pal=(source[2]>>8)&0x3f;
/*TODO*/// UINT16 tsource[4];
/*TODO*/// UINT16 width;
/*TODO*/// int gfx;
/*TODO*/// int zoomx,zoomy;
/*TODO*///
/*TODO*/// tsource[2]=source[2]&0xff;
/*TODO*/// tsource[3]=source[3];
/*TODO*///
/*TODO*/// zoomx=(source[4] & 0x3f) *(1024/64);
/*TODO*/// zoomy = (1024*zoomx)/(2048-zoomx);
/*TODO*///
/*TODO*/// if((tsource[3] & 0x7f80) == 0x7f80)
/*TODO*/// {
/*TODO*/// bank=(bank-1)&0xf;
/*TODO*/// tsource[3]^=0x8000;
/*TODO*/// }
/*TODO*///
/*TODO*/// if (tsource[3]&0x8000)
/*TODO*/// { // reverse
/*TODO*/// tsource[2] |= 0x0100;
/*TODO*/// tsource[3] &= 0x7fff;
/*TODO*/// }
/*TODO*///
/*TODO*/// gfx = tsource[3]*4;
/*TODO*/// width = tsource[2];
/*TODO*///
/*TODO*/// sprite.x = ((source[1] & 0x3ff) + sys16_sprxoffset);
/*TODO*/// if(sprite.x >= 0x200) sprite.x-=0x200;
/*TODO*/// sprite.y = top+1;
/*TODO*/// sprite.priority = 0;
/*TODO*/// sprite.pal_data = base_pal + (pal<<4);
/*TODO*///
/*TODO*/// sprite.total_height = bottom-top;
/*TODO*/// // sprite.tile_height = sprite.total_height*(0x400+zoomy)/0x400;
/*TODO*/// sprite.tile_height = ((sprite.total_height)<<4|0xf)*(0x400+zoomy)/0x4000;
/*TODO*///
/*TODO*/// sprite.line_offset = (width&0x7f)*4;
/*TODO*///
/*TODO*/// sprite.flags = SPRITE_VISIBLE;
/*TODO*/// if ((width & 0x100) != 0) sprite.flags |= SPRITE_FLIPX;
/*TODO*/// if ((width & 0x080) != 0) sprite.flags |= SPRITE_FLIPY;
/*TODO*///
/*TODO*/// if (sys16_sh_shadowpal == 0) // space harrier
/*TODO*/// {
/*TODO*/// if (pal==sys16_sh_shadowpal) // shadow sprite
/*TODO*/// sprite.flags|= SPRITE_SHADOW;
/*TODO*/// // I think this looks better, but I'm sure it's wrong.
/*TODO*/// // else if(READ_WORD(&paletteram[2048+pal*2+20]) == 0)
/*TODO*/// // {
/*TODO*/// // sprite.flags|= SPRITE_PARTIAL_SHADOW;
/*TODO*/// // sprite.shadow_pen=10;
/*TODO*/// // }
/*TODO*/// }
/*TODO*/// else // enduro
/*TODO*/// {
/*TODO*/// sprite.flags|= SPRITE_PARTIAL_SHADOW;
/*TODO*/// sprite.shadow_pen=10;
/*TODO*/// }
/*TODO*/// if( sprite.flags&SPRITE_FLIPY ){
/*TODO*/// sprite.line_offset = 512-sprite.line_offset;
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// gfx += 4 - sprite.line_offset*(sprite.tile_height+1) /*+4*/;
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// gfx -= sprite.line_offset*sprite.tile_height;
/*TODO*/// }
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// if( sprite.flags&SPRITE_FLIPX ){
/*TODO*/// gfx += 4 /*+ 4*/; // +2 ???
/*TODO*/// }
/*TODO*/// else {
/*TODO*/// gfx += sprite.line_offset;
/*TODO*/// }
/*TODO*/// }
/*TODO*///
/*TODO*/// sprite.line_offset<<=1;
/*TODO*/// sprite.tile_width = sprite.line_offset;
/*TODO*/// sprite.total_width = sprite.tile_width*(0x0800 - zoomx)/0x800;
/*TODO*///
/*TODO*/// sprite.pen_data = base_gfx + (((gfx &0x3ffff) + (sys16_obj_bank[bank] << 17)) << 1);
/*TODO*/// }
/*TODO*///
/*TODO*/// source+=8;
/*TODO*/// sprite++;
/*TODO*/// }
/*TODO*/// break;
/*TODO*/// case 7: // Out Run
/*TODO*/// while( sprite<finish ){
/*TODO*///
/*TODO*/// if( source[0] == 0xffff ){ /* end of spritelist marker */
/*TODO*/// do {
/*TODO*/// sprite.flags = 0;
/*TODO*/// sprite++;
/*TODO*/// } while( sprite<finish );
/*TODO*/// break;
/*TODO*/// }
/*TODO*/// sprite.flags = 0;
/*TODO*///
/*TODO*/// if (!(source[0]&0x4000))
/*TODO*/// {
/*TODO*/// UINT16 bank=(source[0]>>8)&7;
/*TODO*/// UINT16 pal=(source[5])&0x7f;
/*TODO*/// UINT16 width;
/*TODO*/// int gfx;
/*TODO*/// int zoom;
/*TODO*/// int x;
/*TODO*///
/*TODO*/// zoom=source[4]&0xfff;
/*TODO*/// // if (zoom==0x32c) zoom=0x3cf; //???
/*TODO*///
/*TODO*/// if(zoom==0) zoom=1;
/*TODO*///
/*TODO*/// if (source[1]&0x8000) bank=(bank+1)&0x7;
/*TODO*///
/*TODO*/// gfx = (source[1]&0x7fff)*4;
/*TODO*/// width = source[2]>>9;
/*TODO*///
/*TODO*/// x = (source[2] & 0x1ff);
/*TODO*///
/*TODO*/// // patch misplaced sprite on map
/*TODO*/// // if(zoom == 0x3f0 && source[1]==0x142e && (source[0]&0xff)==0x19)
/*TODO*/// // x-=2;
/*TODO*///
/*TODO*/// sprite.y = source[0]&0xff;
/*TODO*/// sprite.priority = 0;
/*TODO*/// sprite.pal_data = base_pal + (pal<<4) + 1024;
/*TODO*///
/*TODO*/// sprite.total_height = (source[5]>>8)+1;
/*TODO*/// sprite.tile_height = ((sprite.total_height<<4)| 0xf)*(zoom)/0x2000;
/*TODO*///
/*TODO*/// sprite.line_offset = (width&0x7f)*4;
/*TODO*///
/*TODO*/// sprite.flags = SPRITE_VISIBLE;
/*TODO*/// if(pal==0)
/*TODO*/// sprite.flags|= SPRITE_SHADOW;
/*TODO*/// else if(source[3]&0x4000)
/*TODO*/// // if(pal==0 || source[3]&0x4000)
/*TODO*/// {
/*TODO*/// sprite.flags|= SPRITE_PARTIAL_SHADOW;
/*TODO*/// sprite.shadow_pen=10;
/*TODO*/// }
/*TODO*/// if(!(source[4]&0x2000))
/*TODO*/// {
/*TODO*/// if(!(source[4]&0x4000))
/*TODO*/// {
/*TODO*/// // Should be drawn right to left, but this should be ok.
/*TODO*/// x-=(sprite.line_offset*2)*0x200/zoom;
/*TODO*/// gfx+=4-sprite.line_offset;
/*TODO*/// }
/*TODO*/// else
/*TODO*/// {
/*TODO*/// int ofs=(sprite.line_offset*2)*0x200/zoom;
/*TODO*/// x-=ofs;
/*TODO*/// sprite.flags |= SPRITE_FLIPX;
/*TODO*///
/*TODO*/// // x position compensation for rocks in round2R and round4RRR
/*TODO*/// /* if((source[0]&0xff00)==0x0300)
/*TODO*/// {
/*TODO*/// if (source[1]==0xc027)
/*TODO*/// {
/*TODO*/// if ((source[2]>>8)==0x59) x += ofs/2;
/*TODO*/// else if ((source[2]>>8)>0x59) x += ofs;
/*TODO*/// }
/*TODO*/// else if (source[1]==0xcf73)
/*TODO*/// {
/*TODO*/// if ((source[2]>>8)==0x2d) x += ofs/2;
/*TODO*/// else if ((source[2]>>8)>0x2d) x += ofs;
/*TODO*/// }
/*TODO*/// else if (source[1]==0xd3046)
/*TODO*/// {
/*TODO*/// if ((source[2]>>8)==0x19) x += ofs/2;
/*TODO*/// else if ((source[2]>>8)>0x19) x += ofs;
/*TODO*/// }
/*TODO*/// else if (source[1]==0xd44e)
/*TODO*/// {
/*TODO*/// if ((source[2]>>8)==0x0d) x += ofs/2;
/*TODO*/// else if ((source[2]>>8)>0x0d) x += ofs;
/*TODO*/// }
/*TODO*/// else if (source[1]==0xd490)
/*TODO*/// {
/*TODO*/// if ((source[2]>>8)==0x09) x += ofs/2;
/*TODO*/// else if ((source[2]>>8)>0x09) x += ofs;
/*TODO*/// }
/*TODO*/// }
/*TODO*/// */
/*TODO*/// }
/*TODO*/// }
/*TODO*/// else
/*TODO*/// {
/*TODO*/// if(!(source[4]&0x4000))
/*TODO*/// {
/*TODO*/// gfx-=sprite.line_offset-4;
/*TODO*/// sprite.flags |= SPRITE_FLIPX;
/*TODO*/// }
/*TODO*/// else
/*TODO*/// {
/*TODO*/// if (source[4]&0x8000)
/*TODO*/// { // patch for car shadow position
/*TODO*/// if (source[4]==0xe1a9 && source[1]==0x5817)
/*TODO*/// x-=2;
/*TODO*/// }
/*TODO*/// }
/*TODO*/// }
/*TODO*///
/*TODO*/// sprite.x = x + sys16_sprxoffset;
/*TODO*///
/*TODO*/// sprite.line_offset<<=1;
/*TODO*/// sprite.tile_width = sprite.line_offset;
/*TODO*/// sprite.total_width = sprite.tile_width*0x200/zoom;
/*TODO*/// sprite.pen_data = base_gfx + (((gfx &0x3ffff) + (sys16_obj_bank[bank] << 17)) << 1);
/*TODO*/// }
/*TODO*/// source+=8;
/*TODO*/// sprite++;
/*TODO*/// }
/*TODO*/// break;
}
}
|
96697636-0197-4f15-a675-b36af320deb2
|
public void setIndexedPick0(java.lang.String indexedPick0) {
this.indexedPick0 = indexedPick0;
}
|
bb3e1aa2-1c04-4c33-a8fe-8189c739e580
|
public void setUpdatedByLastName(crmondemand.xml.contact.query.QueryType updatedByLastName) {
this.updatedByLastName = updatedByLastName;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.