This document contains code for a basic calculator application created using Java decompiler. It includes the code to build the graphical user interface with buttons for numbers and arithmetic operators. It also includes code for the event handlers that update the display when buttons are clicked and perform the calculations. The code decompiles both a Visual Basic and Java version of a calculator application, allowing comparison of the code structure and implementation between the two languages.
The document describes how to install and use several decompiler programs, including VB Decompiler Lite, Java Decompiler, and provides code snippets from decompiling sample programs for a calculator, matrix, variable for derivative, and matrix evaluator. It provides instructions on downloading, installing, and using the decompilers to view the source code of various compiled programs.
This document describes a graphical user interface (GUI) calculator application created in Visual Basic. It includes:
1) Various buttons, text boxes and labels to perform basic math operations like addition, subtraction, multiplication and division.
2) Code to convert integers to binary and vice versa behind the scenes when the respective buttons are clicked.
3) The form initializes the components and sets properties like sizes, positions and event handlers.
Do more with less code in a serverless worldjeromevdl
There are many software engineering practices that can and should be applied to Lambda functions: Single Responsibility Principle (from SOLID), You Ain't Gonna Need It (YAGNI), Keep It Simply Stupid (KISS). In this presentation, I'll go through the different ways to apply those principles in the AWS serverless world and even to avoid the usage of Lambda functions sometimes.
The document describes decompiling two Visual Basic programs using the VD Decompiler program. The first program is a calculator application that is decompiled to produce its source code. The second program performs matrix operations and its decompilation results in a block of code for matrix addition, multiplication, and subtraction. Decompilation allows viewing the original source code of programs compiled to an executable file format.
The document outlines three locations for a music video:
1. A plain white studio space with minimal objects to focus on the actors and story.
2. A sand hill with greenery to contrast the studio and show character growth. This location will be used in the first and third scenes.
3. Bournemouth beach, which contrasts the studio with open space and color. It was chosen for its peaceful qualities to emphasize the video's message.
The risk assessment identifies three main risks for a film shoot at The Sand Hill location: falling branches, nearby moving vehicles, and dangerous weather. The document assigns a threat level of medium to falling branches and dangerous weather, and a high threat level to nearby moving vehicles. Control systems are outlined for each risk, such as scouting the area, securing loose branches, changing locations if unsafe, having vehicle patrols, and rescheduling shoots for bad weather. The health and safety officer approved the risk assessment on December 9, 2015 for the producer and cast and crew.
Pontificia universidad católica del ecuadorpilar menacho
El documento describe el producto de conjuntos difusos, que es una relación entre dos o más conjuntos difusos. Específicamente, si A y B son conjuntos difusos en universos X e Y respectivamente, entonces su producto cartesiano es una relación difusa R en el espacio cartesiano de X e Y. Como ejemplo, se consideran conjuntos difusos de 10 chicos y 10 chicas.
Kirk Keller has over 10 years of experience in B2B and B2C marketing, having held market manager positions at several radio stations. He has a track record of developing successful marketing strategies to increase revenue, including rebranding campaigns, community events, and leveraging social media. Keller also has experience managing television stations, where he improved ratings and billing through new programming and promotions. He cites strengths in strategic marketing, social media, event planning, and team leadership.
The document describes how to install and use several decompiler programs, including VB Decompiler Lite, Java Decompiler, and provides code snippets from decompiling sample programs for a calculator, matrix, variable for derivative, and matrix evaluator. It provides instructions on downloading, installing, and using the decompilers to view the source code of various compiled programs.
This document describes a graphical user interface (GUI) calculator application created in Visual Basic. It includes:
1) Various buttons, text boxes and labels to perform basic math operations like addition, subtraction, multiplication and division.
2) Code to convert integers to binary and vice versa behind the scenes when the respective buttons are clicked.
3) The form initializes the components and sets properties like sizes, positions and event handlers.
Do more with less code in a serverless worldjeromevdl
There are many software engineering practices that can and should be applied to Lambda functions: Single Responsibility Principle (from SOLID), You Ain't Gonna Need It (YAGNI), Keep It Simply Stupid (KISS). In this presentation, I'll go through the different ways to apply those principles in the AWS serverless world and even to avoid the usage of Lambda functions sometimes.
The document describes decompiling two Visual Basic programs using the VD Decompiler program. The first program is a calculator application that is decompiled to produce its source code. The second program performs matrix operations and its decompilation results in a block of code for matrix addition, multiplication, and subtraction. Decompilation allows viewing the original source code of programs compiled to an executable file format.
The document outlines three locations for a music video:
1. A plain white studio space with minimal objects to focus on the actors and story.
2. A sand hill with greenery to contrast the studio and show character growth. This location will be used in the first and third scenes.
3. Bournemouth beach, which contrasts the studio with open space and color. It was chosen for its peaceful qualities to emphasize the video's message.
The risk assessment identifies three main risks for a film shoot at The Sand Hill location: falling branches, nearby moving vehicles, and dangerous weather. The document assigns a threat level of medium to falling branches and dangerous weather, and a high threat level to nearby moving vehicles. Control systems are outlined for each risk, such as scouting the area, securing loose branches, changing locations if unsafe, having vehicle patrols, and rescheduling shoots for bad weather. The health and safety officer approved the risk assessment on December 9, 2015 for the producer and cast and crew.
Pontificia universidad católica del ecuadorpilar menacho
El documento describe el producto de conjuntos difusos, que es una relación entre dos o más conjuntos difusos. Específicamente, si A y B son conjuntos difusos en universos X e Y respectivamente, entonces su producto cartesiano es una relación difusa R en el espacio cartesiano de X e Y. Como ejemplo, se consideran conjuntos difusos de 10 chicos y 10 chicas.
Kirk Keller has over 10 years of experience in B2B and B2C marketing, having held market manager positions at several radio stations. He has a track record of developing successful marketing strategies to increase revenue, including rebranding campaigns, community events, and leveraging social media. Keller also has experience managing television stations, where he improved ratings and billing through new programming and promotions. He cites strengths in strategic marketing, social media, event planning, and team leadership.
This document describes a graphical user interface (GUI) calculator application created in Visual Basic. It includes:
1) Various buttons, text boxes and labels to perform basic math operations like addition, subtraction, multiplication and division.
2) Code to convert integers to binary and vice versa behind the scenes when the respective buttons are clicked.
3) The form initializes the layout and properties of the GUI elements.
This document contains decompiled source code for a visual basic calculator application and a visual basic phone directory application. The calculator code contains the visual basic form layout and code for buttons, text boxes and labels to perform basic math operations. The phone directory code contains the form layout and code for text boxes, labels, buttons and menus to manage a contact database with fields for name, address, phone numbers and email.
The document describes installing and using two decompiler applications: VB Decompiler Lite and ILSpy. It provides instructions on downloading, installing, and opening the decompiler interfaces for both programs. It then provides examples of decompiling source code from two programs - a calculator application and a matrix operations application - using the decompilers.
The document contains the code for a form in Visual Basic that calculates an insurance premium based on the insured person's gender, age, marital status, and vehicle details. The form includes text boxes and option buttons to collect this input data, and uses nested if/else statements to determine applicable discounts or surcharges and calculate the final premium amount displayed in a text box. It accounts for over 20 different combinations of factors to customize the premium for each policyholder.
This document contains the code for a form in Visual Basic that calculates an insurance premium based on inputs for a vehicle owner's gender, marital status, age, and vehicle age. The form includes text boxes and option buttons to collect these inputs, and will display the calculated premium amount in a text box upon clicking the "Calcular" (Calculate) button. The code contains nested if/else statements to handle all possible combinations of the input variables and determine any applicable discounts before assigning the premium value.
The document contains code for two programs:
1. A basic calculator program written in Visual Basic 6 with a graphical user interface including text boxes, labels, and buttons for performing calculations.
2. A tariff calculator program written in Visual Basic with multiple timers, media players, pictures, and labels to display timing and cost information for two "Xbox" units.
Text Editor Created in Visual Basic 6.0.
In this softwere user can write there text also open or browse file and chnage the font name,size,colors and alignments.user can save there there work with select specifiy location with the file type(.txt or .doc).
The document describes how to install and use two decompiler programs - the VB Decompiler and P32DASM Decompiler. It provides step-by-step instructions on installing each decompiler, and then gives an example of decompiling a Hangman game developed in Visual Basic 6.0 using the decompilers. The decompiled source code for the Hangman game is also included.
The document contains decompiled source code from a calculator application created in Visual Basic 6.0. It includes the decompiled code for the calculator user interface containing buttons for numbers and arithmetic operators. It also includes decompiled code for functions that handle events like changing values and creating matrices.
The document contains code snippets and instructions for installing and using VB Decompiler Lite v10.4, Java Decompiler, and a minesweeper game program written in Java. It includes steps to extract and execute installation files, as well as descriptions and code for a calculator program, matrix addition/subtraction/multiplication program, and the minesweeper game including board setup, movement, and game logic.
Donald Woodhouse's portfolio summarizes his work developing a library database application with both a Windows interface and ASP.NET website interface. Key features of the applications included viewing and adding member profiles, checking books in and out, and validating user input. The portfolio provides code samples and descriptions of how the applications interacted with the backend SQL database using stored procedures and ADO.NET.
This document contains the code for a simple chess game created in Visual Basic. It includes code for the form layout, labels to display information like the current player's turn and pieces selected, images for the board squares, and a timer to track time remaining for each player. The code shows the basic structure and interface of the chess game application.
This document provides an overview of SAP Scripts. It discusses how scripts are used to create forms and document layouts in SAP. It provides examples of how to create a delivery note using scripts and form painter. It also discusses how to fetch and display data, print forms, and convert output to PDF format. Total and subtotal calculations in scripts are demonstrated using a sales order example.
El documento define la calidad de software y explica que es necesario medirla para poder controlarla. Detalla algunos atributos de calidad como la funcionalidad y fiabilidad que pueden medirse. También describe los procesos de aseguramiento de calidad de software que garantizan que los productos y procesos cumplen los requisitos. Finalmente, resume las funciones generales de un equipo de aseguramiento de calidad como auditoría y mejora continua de procesos.
Este documento resume cinco sistemas de gestión de bases de datos: MySQL, Oracle, Microsoft Access, PostgreSQL y Postfix. Describe las características clave, ventajas y desventajas de cada uno. El objetivo es enumerar los distintos tipos de sistemas de gestión de bases de datos y diferenciar sus ventajas y desventajas.
Este documento presenta un programa en Turbo Pascal que suma números. El programa fue creado por Pilar Menacho en la Pontificia Universidad Católica del Ecuador, sede Ibarra, Escuela de Ingeniería el 4 de mayo de 2016 para verificar la identificación y sumar números usando el lenguaje de programación Pascal.
El documento describe un programa en lenguaje ensamblador EMU8086 que incluye las instrucciones para ejecutar un programa "Hola Mundo", imprimir datos personales, comparar dos números y realizar la suma de un vector con cinco pasos.
Instalacion de adobe flash professional 2015pilar menacho
Este documento proporciona las 20 etapas para instalar Adobe Flash, que incluyen desactivar la conexión a Internet, cambiar el host original, ejecutar el instalador y el archivo Keygen, generar códigos de activación sin conexión y completar la instalación e iniciar el programa.
This document describes a graphical user interface (GUI) calculator application created in Visual Basic. It includes:
1) Various buttons, text boxes and labels to perform basic math operations like addition, subtraction, multiplication and division.
2) Code to convert integers to binary and vice versa behind the scenes when the respective buttons are clicked.
3) The form initializes the layout and properties of the GUI elements.
This document contains decompiled source code for a visual basic calculator application and a visual basic phone directory application. The calculator code contains the visual basic form layout and code for buttons, text boxes and labels to perform basic math operations. The phone directory code contains the form layout and code for text boxes, labels, buttons and menus to manage a contact database with fields for name, address, phone numbers and email.
The document describes installing and using two decompiler applications: VB Decompiler Lite and ILSpy. It provides instructions on downloading, installing, and opening the decompiler interfaces for both programs. It then provides examples of decompiling source code from two programs - a calculator application and a matrix operations application - using the decompilers.
The document contains the code for a form in Visual Basic that calculates an insurance premium based on the insured person's gender, age, marital status, and vehicle details. The form includes text boxes and option buttons to collect this input data, and uses nested if/else statements to determine applicable discounts or surcharges and calculate the final premium amount displayed in a text box. It accounts for over 20 different combinations of factors to customize the premium for each policyholder.
This document contains the code for a form in Visual Basic that calculates an insurance premium based on inputs for a vehicle owner's gender, marital status, age, and vehicle age. The form includes text boxes and option buttons to collect these inputs, and will display the calculated premium amount in a text box upon clicking the "Calcular" (Calculate) button. The code contains nested if/else statements to handle all possible combinations of the input variables and determine any applicable discounts before assigning the premium value.
The document contains code for two programs:
1. A basic calculator program written in Visual Basic 6 with a graphical user interface including text boxes, labels, and buttons for performing calculations.
2. A tariff calculator program written in Visual Basic with multiple timers, media players, pictures, and labels to display timing and cost information for two "Xbox" units.
Text Editor Created in Visual Basic 6.0.
In this softwere user can write there text also open or browse file and chnage the font name,size,colors and alignments.user can save there there work with select specifiy location with the file type(.txt or .doc).
The document describes how to install and use two decompiler programs - the VB Decompiler and P32DASM Decompiler. It provides step-by-step instructions on installing each decompiler, and then gives an example of decompiling a Hangman game developed in Visual Basic 6.0 using the decompilers. The decompiled source code for the Hangman game is also included.
The document contains decompiled source code from a calculator application created in Visual Basic 6.0. It includes the decompiled code for the calculator user interface containing buttons for numbers and arithmetic operators. It also includes decompiled code for functions that handle events like changing values and creating matrices.
The document contains code snippets and instructions for installing and using VB Decompiler Lite v10.4, Java Decompiler, and a minesweeper game program written in Java. It includes steps to extract and execute installation files, as well as descriptions and code for a calculator program, matrix addition/subtraction/multiplication program, and the minesweeper game including board setup, movement, and game logic.
Donald Woodhouse's portfolio summarizes his work developing a library database application with both a Windows interface and ASP.NET website interface. Key features of the applications included viewing and adding member profiles, checking books in and out, and validating user input. The portfolio provides code samples and descriptions of how the applications interacted with the backend SQL database using stored procedures and ADO.NET.
This document contains the code for a simple chess game created in Visual Basic. It includes code for the form layout, labels to display information like the current player's turn and pieces selected, images for the board squares, and a timer to track time remaining for each player. The code shows the basic structure and interface of the chess game application.
This document provides an overview of SAP Scripts. It discusses how scripts are used to create forms and document layouts in SAP. It provides examples of how to create a delivery note using scripts and form painter. It also discusses how to fetch and display data, print forms, and convert output to PDF format. Total and subtotal calculations in scripts are demonstrated using a sales order example.
Similar to Ensambladores y decompiladores (27 de abril 2016) (13)
El documento define la calidad de software y explica que es necesario medirla para poder controlarla. Detalla algunos atributos de calidad como la funcionalidad y fiabilidad que pueden medirse. También describe los procesos de aseguramiento de calidad de software que garantizan que los productos y procesos cumplen los requisitos. Finalmente, resume las funciones generales de un equipo de aseguramiento de calidad como auditoría y mejora continua de procesos.
Este documento resume cinco sistemas de gestión de bases de datos: MySQL, Oracle, Microsoft Access, PostgreSQL y Postfix. Describe las características clave, ventajas y desventajas de cada uno. El objetivo es enumerar los distintos tipos de sistemas de gestión de bases de datos y diferenciar sus ventajas y desventajas.
Este documento presenta un programa en Turbo Pascal que suma números. El programa fue creado por Pilar Menacho en la Pontificia Universidad Católica del Ecuador, sede Ibarra, Escuela de Ingeniería el 4 de mayo de 2016 para verificar la identificación y sumar números usando el lenguaje de programación Pascal.
El documento describe un programa en lenguaje ensamblador EMU8086 que incluye las instrucciones para ejecutar un programa "Hola Mundo", imprimir datos personales, comparar dos números y realizar la suma de un vector con cinco pasos.
Instalacion de adobe flash professional 2015pilar menacho
Este documento proporciona las 20 etapas para instalar Adobe Flash, que incluyen desactivar la conexión a Internet, cambiar el host original, ejecutar el instalador y el archivo Keygen, generar códigos de activación sin conexión y completar la instalación e iniciar el programa.
A Visual Guide to 1 Samuel | A Tale of Two HeartsSteve Thomason
These slides walk through the story of 1 Samuel. Samuel is the last judge of Israel. The people reject God and want a king. Saul is anointed as the first king, but he is not a good king. David, the shepherd boy is anointed and Saul is envious of him. David shows honor while Saul continues to self destruct.
Chapter wise All Notes of First year Basic Civil Engineering.pptxDenish Jangid
Chapter wise All Notes of First year Basic Civil Engineering
Syllabus
Chapter-1
Introduction to objective, scope and outcome the subject
Chapter 2
Introduction: Scope and Specialization of Civil Engineering, Role of civil Engineer in Society, Impact of infrastructural development on economy of country.
Chapter 3
Surveying: Object Principles & Types of Surveying; Site Plans, Plans & Maps; Scales & Unit of different Measurements.
Linear Measurements: Instruments used. Linear Measurement by Tape, Ranging out Survey Lines and overcoming Obstructions; Measurements on sloping ground; Tape corrections, conventional symbols. Angular Measurements: Instruments used; Introduction to Compass Surveying, Bearings and Longitude & Latitude of a Line, Introduction to total station.
Levelling: Instrument used Object of levelling, Methods of levelling in brief, and Contour maps.
Chapter 4
Buildings: Selection of site for Buildings, Layout of Building Plan, Types of buildings, Plinth area, carpet area, floor space index, Introduction to building byelaws, concept of sun light & ventilation. Components of Buildings & their functions, Basic concept of R.C.C., Introduction to types of foundation
Chapter 5
Transportation: Introduction to Transportation Engineering; Traffic and Road Safety: Types and Characteristics of Various Modes of Transportation; Various Road Traffic Signs, Causes of Accidents and Road Safety Measures.
Chapter 6
Environmental Engineering: Environmental Pollution, Environmental Acts and Regulations, Functional Concepts of Ecology, Basics of Species, Biodiversity, Ecosystem, Hydrological Cycle; Chemical Cycles: Carbon, Nitrogen & Phosphorus; Energy Flow in Ecosystems.
Water Pollution: Water Quality standards, Introduction to Treatment & Disposal of Waste Water. Reuse and Saving of Water, Rain Water Harvesting. Solid Waste Management: Classification of Solid Waste, Collection, Transportation and Disposal of Solid. Recycling of Solid Waste: Energy Recovery, Sanitary Landfill, On-Site Sanitation. Air & Noise Pollution: Primary and Secondary air pollutants, Harmful effects of Air Pollution, Control of Air Pollution. . Noise Pollution Harmful Effects of noise pollution, control of noise pollution, Global warming & Climate Change, Ozone depletion, Greenhouse effect
Text Books:
1. Palancharmy, Basic Civil Engineering, McGraw Hill publishers.
2. Satheesh Gopi, Basic Civil Engineering, Pearson Publishers.
3. Ketki Rangwala Dalal, Essentials of Civil Engineering, Charotar Publishing House.
4. BCP, Surveying volume 1
Leveraging Generative AI to Drive Nonprofit InnovationTechSoup
In this webinar, participants learned how to utilize Generative AI to streamline operations and elevate member engagement. Amazon Web Service experts provided a customer specific use cases and dived into low/no-code tools that are quick and easy to deploy through Amazon Web Service (AWS.)
This presentation was provided by Rebecca Benner, Ph.D., of the American Society of Anesthesiologists, for the second session of NISO's 2024 Training Series "DEIA in the Scholarly Landscape." Session Two: 'Expanding Pathways to Publishing Careers,' was held June 13, 2024.
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPRAHUL
This Dissertation explores the particular circumstances of Mirzapur, a region located in the
core of India. Mirzapur, with its varied terrains and abundant biodiversity, offers an optimal
environment for investigating the changes in vegetation cover dynamics. Our study utilizes
advanced technologies such as GIS (Geographic Information Systems) and Remote sensing to
analyze the transformations that have taken place over the course of a decade.
The complex relationship between human activities and the environment has been the focus
of extensive research and worry. As the global community grapples with swift urbanization,
population expansion, and economic progress, the effects on natural ecosystems are becoming
more evident. A crucial element of this impact is the alteration of vegetation cover, which plays a
significant role in maintaining the ecological equilibrium of our planet.Land serves as the foundation for all human activities and provides the necessary materials for
these activities. As the most crucial natural resource, its utilization by humans results in different
'Land uses,' which are determined by both human activities and the physical characteristics of the
land.
The utilization of land is impacted by human needs and environmental factors. In countries
like India, rapid population growth and the emphasis on extensive resource exploitation can lead
to significant land degradation, adversely affecting the region's land cover.
Therefore, human intervention has significantly influenced land use patterns over many
centuries, evolving its structure over time and space. In the present era, these changes have
accelerated due to factors such as agriculture and urbanization. Information regarding land use and
cover is essential for various planning and management tasks related to the Earth's surface,
providing crucial environmental data for scientific, resource management, policy purposes, and
diverse human activities.
Accurate understanding of land use and cover is imperative for the development planning
of any area. Consequently, a wide range of professionals, including earth system scientists, land
and water managers, and urban planners, are interested in obtaining data on land use and cover
changes, conversion trends, and other related patterns. The spatial dimensions of land use and
cover support policymakers and scientists in making well-informed decisions, as alterations in
these patterns indicate shifts in economic and social conditions. Monitoring such changes with the
help of Advanced technologies like Remote Sensing and Geographic Information Systems is
crucial for coordinated efforts across different administrative levels. Advanced technologies like
Remote Sensing and Geographic Information Systems
9
Changes in vegetation cover refer to variations in the distribution, composition, and overall
structure of plant communities across different temporal and spatial scales. These changes can
occur natural.
The chapter Lifelines of National Economy in Class 10 Geography focuses on the various modes of transportation and communication that play a vital role in the economic development of a country. These lifelines are crucial for the movement of goods, services, and people, thereby connecting different regions and promoting economic activities.
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxEduSkills OECD
Iván Bornacelly, Policy Analyst at the OECD Centre for Skills, OECD, presents at the webinar 'Tackling job market gaps with a skills-first approach' on 12 June 2024
1. PONTIFICIA UNIVERSIDAD CATÓLICA DEL ECUADOR
SEDE IBARRA
ESCUELA DE INGENIERÍA
Nombre: PILAR MENACHO
Fecha: 27/04/2016
Instalación de VB DECOMPILER LITE
22. Top = 3120
Width = 3135
Height = 495
End
Begin VB.Image Image5
Left = 240
Top = 2640
Width = 3135
Height = 375
End
Begin VB.Image Image4
Left = 240
Top = 2040
Width = 3135
Height = 495
End
Begin VB.Image Image3
Left = 240
Top = 1440
Width = 3135
Height = 495
End
Begin VB.Image Image2
Left = 240
Top = 840
Width = 3135
Height = 495
End
Begin VB.Image Image1
23. Picture = "Form7.frx":57E2
Left = 0
Top = -120
Width = 3615
Height = 5970
End
Begin VB.Menu TODO
Caption = "Matrices"
Begin VB.Menu suma
Caption = "Suma,Resta,Multiplicacion"
End
Begin VB.Menu Determinantes
Caption = "Determinantes"
End
Begin VB.Menu inversa
Caption = "Inversa"
End
Begin VB.Menu Escalar
Caption = "Escalar"
End
Begin VB.Menu Traspuesta
Caption = "Traspuesta"
End
End
End
Attribute VB_Name = "Form7"
24. SOLITARIO EN JAVA DECOMPILER
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
public class Carta
extends Canvas
{
public int palo;
public int color;
public int num;
public boolean esReverso;
private Image imgCarta;
private Image imgReverso;
public Carta cartaHija;
public int esqX;
public int esqY;
public int mouseX;
public int mouseY;
public int enPila;
public boolean arrastrandoHijas;
public Carta(String paramString1, String paramString2, boolean paramBoolean, int
paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5)
{
this.palo = paramInt1;
this.color = paramInt2;
this.num = paramInt3;
this.esReverso = paramBoolean;
this.imgReverso = Toolkit.getDefaultToolkit().getImage(paramString2);
this.imgCarta = Toolkit.getDefaultToolkit().getImage(paramString1);
this.cartaHija = null;
this.esqX = paramInt4;
this.esqY = paramInt5;
this.arrastrandoHijas = false;
}
public void paint(Graphics paramGraphics)
{
setSize(75, 98);
if (this.esReverso)
{
paramGraphics.drawImage(this.imgReverso, 0, 0, 75, 98, this);
return;
}
paramGraphics.drawImage(this.imgCarta, 1, 1, 73, 96, this);
paramGraphics.setColor(Color.BLACK);
if (this.arrastrandoHijas)
{
Carta localCarta = this.cartaHija;
int i = 10;
while (localCarta != null)
{
paramGraphics.drawLine(1, i - 1, 74, i - 1);
paramGraphics.drawImage(localCarta.imgCarta, 1, i, 73, 96 - i, this);
localCarta = localCarta.cartaHija;
25. i += 10;
}
}
paramGraphics.drawRect(0, 0, 74, 97);
}
public String toString()
{
return "" + this.num + " de " + (this.palo == 3 ? "Diamantes" : this.palo == 2 ?
"Treboles" : this.palo == 1 ? "Corazones" : "Picas");
}
}
import java.awt.Point;
import java.util.Stack;
public class Pila
extends Stack<Carta>
{
private boolean adopta;
private int modoAdopcion;
private int margenSup;
private int esqX;
private int esqY;
public Pila(int paramInt1, int paramInt2)
{
this.adopta = false;
this.esqX = paramInt1;
this.esqY = paramInt2;
}
public Pila(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
{
this.adopta = true;
this.modoAdopcion = paramInt1;
this.margenSup = paramInt2;
this.esqX = paramInt3;
this.esqY = paramInt4;
}
public boolean adoptaCarta(Carta paramCarta)
{
int i = paramCarta.getLocation().x;
int j = paramCarta.getLocation().y;
Carta localCarta = size() <= 0 ? null : (Carta)peek();
if ((i + 75 < this.esqX) || (i > this.esqX + 75) || (j + 98 < this.esqY) || (j >
this.esqY + 98 + (size() - 1) * this.margenSup) || (!this.adopta) || ((localCarta !=
null) && (localCarta.esReverso))) {
return false;
}
if (this.modoAdopcion == 1)
{
if ((localCarta == null) && (paramCarta.num != 1)) {
return false;
}
if ((localCarta == null) && (paramCarta.num == 1))
{