Interface EventToClientNotifier
- All Known Implementing Classes:
ConnectionToClient
public interface EventToClientNotifier
This interface contains the list of methods that the server could use to send different events to the client.
- Author:
- Stefano Fossati
-
Method Summary
Modifier and Type Method Description void
sendArrayLeaderCards(java.util.ArrayList<LeaderCard> leaderCards, boolean initialLeaderCards, Player currentPlayer, boolean isFinal)
Sends to the client/player the information of the leader cards.void
sendDevelopmentCardSpace(java.util.ArrayList<java.lang.Boolean> developmentCardSpace)
Sends the request to select the development card space in which the player want to position the development card bought.void
sendEndGame(java.lang.String message, java.util.Map<java.lang.String,java.lang.Integer> playersPoint, Player[] players, FaithTrack faithTrack, boolean lorenzo, int lorenzoPosition, DevelopmentCard[][] devCard, Market market)
Sends the notify that the game ended to the client.void
sendInitialResources(int numResources, java.util.ArrayList<Resource> depositState)
Sends to the client/player the request to choose the initial resource of the match set up.void
sendLorenzoTurn(SoloAction lorenzoAction, int lorenzoPosition)
Sends the action that Lorenzo done in the single player match to the client.void
sendNamePlayerRequest(java.lang.String message)
Sends the request to choose the own nickname for the match to the client.void
sendNewTurn(int turnNumber, Market market, DevelopmentCard[][] developmentCards, Player[] players, FaithTrack faithTrack, boolean yourTurn)
Sends all the needed information to the client.void
sendNotify(java.lang.String message)
Sends a notify to the client.void
sendNumPlayerRequest(java.lang.String message)
Sends the request to choose the number of player for the match.void
sendPing()
Sends a ping to the client.void
sendReorganizeDeposit(java.util.ArrayList<Resource> marketResources, java.util.ArrayList<Resource> depositState, boolean isAdditional, java.util.ArrayList<Resource> additionalType, java.util.ArrayList<Resource> additionalState)
Sends the request to reorganize the deposit to the client.void
sendRoomRequestToClient(java.lang.String message)
Sends the request to choose the room to the client.void
sendTurnReselection(java.lang.String message)
Sends the reselection of the turn to the client.
-
Method Details
-
sendRoomRequestToClient
void sendRoomRequestToClient(java.lang.String message)Sends the request to choose the room to the client.- Parameters:
message
- The message to sent to the client.
-
sendNamePlayerRequest
void sendNamePlayerRequest(java.lang.String message)Sends the request to choose the own nickname for the match to the client.- Parameters:
message
- The message to send to the client. It contains some instructions.
-
sendNumPlayerRequest
void sendNumPlayerRequest(java.lang.String message)Sends the request to choose the number of player for the match. Only the first player that access to the room could choose the number of player.- Parameters:
message
- The message to send to the client.
-
sendInitialResources
Sends to the client/player the request to choose the initial resource of the match set up.- Parameters:
numResources
- The number of resources that the player have to choose.depositState
- The initial deposit state of the player.
-
sendArrayLeaderCards
void sendArrayLeaderCards(java.util.ArrayList<LeaderCard> leaderCards, boolean initialLeaderCards, Player currentPlayer, boolean isFinal)Sends to the client/player the information of the leader cards.- Parameters:
leaderCards
- The leader cards of the player.initialLeaderCards
- Indicates the phase of the match in which the leader card are send. If is true the leader cards are to choose for the set up of the match. If is false the leader cards are to manage like in a normal turn.currentPlayer
- The player send his own leader cards to.isFinal
-
-
sendNewTurn
void sendNewTurn(int turnNumber, Market market, DevelopmentCard[][] developmentCards, Player[] players, FaithTrack faithTrack, boolean yourTurn)Sends all the needed information to the client.- Parameters:
turnNumber
- The number of the turn.market
- The structure of the market.developmentCards
- The structure of the development cards on the table with its information.players
- The players with their public information.faithTrack
- The state of the faith track.yourTurn
- Indicates if the next turn is of the player to which is sent this event. If is true the next turn is of the client to which is sent this event. If is false the next turn is of another client.
-
sendReorganizeDeposit
void sendReorganizeDeposit(java.util.ArrayList<Resource> marketResources, java.util.ArrayList<Resource> depositState, boolean isAdditional, java.util.ArrayList<Resource> additionalType, java.util.ArrayList<Resource> additionalState)Sends the request to reorganize the deposit to the client.- Parameters:
marketResources
- The resources take from the market.depositState
- The deposit state of the player that have to reorganize the deposit.isAdditional
- Indicates if there is or there are additional deposits send.additionalType
- The type of the additional deposits send.additionalState
- The state of the additional deposits send.
-
sendTurnReselection
void sendTurnReselection(java.lang.String message)Sends the reselection of the turn to the client.- Parameters:
message
- The information for which this event is send.
-
sendDevelopmentCardSpace
void sendDevelopmentCardSpace(java.util.ArrayList<java.lang.Boolean> developmentCardSpace)Sends the request to select the development card space in which the player want to position the development card bought.- Parameters:
developmentCardSpace
- The state of the development card space of the player.
-
sendNotify
void sendNotify(java.lang.String message)Sends a notify to the client.- Parameters:
message
- The information of the notify.
-
sendEndGame
void sendEndGame(java.lang.String message, java.util.Map<java.lang.String,java.lang.Integer> playersPoint, Player[] players, FaithTrack faithTrack, boolean lorenzo, int lorenzoPosition, DevelopmentCard[][] devCard, Market market)Sends the notify that the game ended to the client.- Parameters:
message
- The massage to send to the client.playersPoint
- The points of all players.faithTrack
- The faith track of the match.lorenzo
- Indicates if is a single player match.lorenzoPosition
- Lorenzo position if is a single player match.market
- The market of the match.
-
sendLorenzoTurn
Sends the action that Lorenzo done in the single player match to the client.- Parameters:
lorenzoAction
- The type of action done by Lorenzo.lorenzoPosition
- The position of lorenzo in the faith track.
-
sendPing
void sendPing()Sends a ping to the client.
-


Akufo-Addo hosts Ban Ki Moon, Jack Ma at Jubilee House
Former Secretary General of the United Nations, Ban Ki Moon, and the founder of the Alibaba Group, Jack Ma, have visited Ghanaian President, Nana Akufo-Addo.
The separate visits took place on Friday, November 15, 2019, at the Jubilee House, the seat of Government in Ghana’s capital, Accra.
Mr. Ki Moon and Mr. Ma are both in Ghana ahead of the maiden edition of the Africa Netpreneurship Summit.
The summit will be held at the Accra International Conference Center on Saturday, 16th November, 2019.
The Alibaba Group operates one of the world’s largest online trading sites.


--- layout: page title: About header-img: "img/about-bg.png" ---
A soccer obsessed, music loving, and active person; I hail from Somerset, New Jersey. One of my life long goals is to travel the world and just live life to the fullest.


{% include 'header.html' %} {% if done == '1' and job_id is not None %}
Your post has been successfully added
Post a new job or volunteer opportunity


Our stock librarians are full of knowledge about the best books. Here, Brandon King tells us which books he thinks should more people should borrow from our libraries.
The Hours Before Dawn, by Celia Fremlin
Celia Fremlin is a name you may have heard in passing but you might not know much about her. This novel won the 1960 Edgar Award for best mystery novel but is all but forgotten now. It is set in the 1950s and centres around a harrassed mother with small children (Louise Henderson). They decide to take in a lodger, Miss Brandon, but Louise becomes increasingly worried about the woman she has let into their home.
Stoner, by John Williams
We’re not sure this one is hidden anymore as it has been re-discovered by book groups and is now a staple title. Occasionally there is a word-of-mouth success and this one probably takes that title. It does not race along but it is beautifully written and concerns William Stoner’s journey through life as he tries to find a place for himself in the world.
The Art of Racing in the Rain, by Garth Stein
If you like dogs you will enjoy this. Meet Enzo the dog who is owned by Denny, a racing driver. Enzo narrates the story. It sounds dreadful but it is really moving and makes you look at things differently.
The Jalna saga by Mazo de la Roche
This series, available in its entirety in eBook format (our physical coverage is more patchy, but once you’ve read a couple, you’ll be requesting inter-library loans of the rest!) covers one hundred years of the Whiteoak family from 1854 to 1954. The 16 Jalna novels were not written in sequential order, however, and each can be read as an independent story. Librarians of a certain age tend to wax lyrical about these.
The Secret Diary of Hendrik Groen, 83¼ Years Old, by Hendrick Groen
Although he is 83 years old and lives in a residential care home in the Netherlands, Hendrik Groen doesn’t like old people. Their zimmer frame shuffling, unreasonable impatience, endless complaints, their tea and biscuits, smells or creaking bodies. He decides to write a whistleblowing diary that tells everyone what it is really like to be old. It is funny and moving and would probably make a good film one day.
Martin Eden, by Jack London
When most people think of Jack London they remember being forced to read The Call of the Wild at school. Martin Eden is a thinly veiled account of London’s own struggles to succeed as a writer and rise above his low standing in life. It is a terrific read and deserves a wider readership than certain of his other books.
An English Murder, by Cyril Hare
Cyril Hare is one of the great undiscovered crime writers of the past. This is a classic of the ‘shut in a stately home with a murderer loose’ genre. If you have read all the Agatha Christies and want to try something a little different, this is worth a shot. We recently chose this as one of our Suffolk Loves series to give it a wider readership.
A Manual for Cleaning Women: selected stories, by Lucia Berlin
How Lucia Berlin has not become one of the great names in literature is an enduring mystery. This volume pulls together some of her best stories in one place. At her best, some of these stories are touched by genius, while some are commonplace. If you read this you will either wonder what the fuss is about or embark on a quest to find everything she ever wrote.
Mrs Palfrey at the Claremont, by Elizabeth Taylor
This a beautifully-written story about getting old. Elizabeth Taylor is a neglected writer nowadays but this is one of her best.


Asking Questions
Posted on October 23, 2014
I'm on my final week of Phase 0 at DBC, and getting ready for my on campus experience. As part of this preperation I'm looking into how to ask effective questions. A lot of what I've been looking at is focused on asking questions online, but most of the ideas can be used for asking questions in person as well.
One of the things that really annoys me with online questions is poor titles. If you're browsing through a website, looking at recent questions, you dont want to see a question title that is like this: "I need help with Ruby." I have no idea if I'm going to be able to help that person, or if the question is similar to a question I have. Titles need to be specific to your question, such as "how do I select a specific array element in Ruby?" Now when I'm browsing along I'm thinking "oh, I can help with that," or "I have a similar question." Much more helpful.
Applying this to in person questions: If you're working on something in a classroom or work setting, and you come to something where you have a question, you should be specific with your question when you approach somebody. Lets say I approach someone with a question, such as the array question above. Now they know right off if it's something they can help you with, or maybe they know someone who is better with that subject. Approaching someone and saying "I'm having trouble with my code, can you help me?" doesn't give them any sort of idea on whether they can help you or not until they come to look at your code, which could potentially waste your time and theirs if they can't help you.
Now that we've dealt with the title of the question, lets talk about the body. Its important to include all the relevant data when you ask a question. You should use code examples where necessary, if your're getting an output you don't want you should include that, and make sure you include the output you want. That being said, don't include a lot of details that aren't important. Lets flesh out what our array questions body might look like:
I'm having a problem selecting a specific element in an array in Ruby. My code looks like this:
my_array = ['tacos','pizza','hamburgers','steak','chili'] puts my_array[1]
It keeps returning 'pizza', but I want it to return 'tacos'.
Now we can see right away that the person is forgetting that array indexes start with 0, and we can answer the question easily. Had they left out the code example, or the desired result, we might not have been able to know exactly what they were trying to ask.
The last thing is to be courteous with both asking questions and answering them. Make sure that you thank people for answering your questions (I can be bad about this online sometimes), and if someone comes to you with a question, understand that its not easy for a lot of people to admit they need help with something, and be kind and courteous with your answers.
Thanks for reading, I hope this helps some of you with your question asking abilities. Now go forth and code.


Social media marketing provides you with the opportunity to get digitally social with your prospects and customers. I can guarantee your customers and prospects are already interacting with brands through social media, and if you're not speaking to your audience through platforms like Facebook, Twitter, Instagram and LinkedIn, you're missing out! Smart marketing on social media can bring huge success to your business, generating leads, creating devoted brand advocates and even closing sales. Belfast social media marketing is hot right now, and you can't miss out.
The benefits of Social Media are plentiful, but this Belfast social media expert has picked 6 which will bring a smile to that beautiful face.
Once we get you to the top of Google SERPs, we might need to hire a traffic marshall as your site is going to get busy!
SEO provides trackable and quantifiable results. It's my job to make sure SEO is providing you with a healthy ROI.
SEO is one of the most cost-effective tactics.
When your website ranks well, you get more impressions. Users also associate trust with top ranking websites.
An important element of SEO is UX. This demands us to provide your users with a great experience. Which is great!
SEO-optimised websites load faster, are easy to read, and look amazing on all devices, including mobile, laptops and tablets.
Businesses that have a strong keyword in the business name rank 1.5 spots higher than if there is no keyword in the name. (Source: Local SEO Guide, 2016)
The perfect option if you have a physical location or customers in a specific area, targeting a local audience.
If you want to break into new territories and reach an international audience, International SEO is a cost-effective solution.
We'll get under the bonnet, analyse your competitors and find you SEO pathways to success. A great way to locate opportunities.
If you sell your products online, I can optimise them to rank at the top of search engines, and even Amazon!
Responsive display is a key SEO ranking factor. Is your company mobile-ready? If not, it will be!
If you're investing in a new website it's important we define aN SEO strategy to help your website rank well and drive ROI.
If you'd like to find out more about my services, simply click the button below and complete the form. You can also contact me via live chat below. Whatever works best for you. Even if it's just for advice, I'm happy to chat about marketing, always. Speak soon, succeed later!
Find Out MorePhysio Software was the primary keyword. They were ranking 8th. I applied my SEO wizardry and BOOM. Number 1. Success.
I understand your objectives and market. We plan your triumph.
I dig into your current data to identify recipes for success.
With a strategy at hand, I develop your new, tailored solution.
We continue to optimise, your solution continues to improve.


DRUNKEN MASTER 2 A film review by Eric Tend Copyright 1994 Eric Tend
One of the most impressive and entertaining "realistic" martial arts films to grace our shores in recent years is Jackie Chan's DRUNKEN MASTER 2. It marks his triumphant return to the roots that made him famous: a period costume drama featuring ultra complex adrenaline filled fight and stunt choreography (where the "Ooohh, aaahh, and oowwchh" factor is *very high*!), likable characters, simple plot, and trademark Chan humor sprinkled throughout.
The story, which has no continuity nor relation to its 1978 predecessor DRUNKEN MASTER, follows the further exploits of the Wong Fei-Hong family. Chan plays a more vulnerable and modern Fei-Hong, contrasting Jet Li's slightly older, wiser, and almost invincible incarnation. Ti Lung (doesn't this guy ever age?) and Anita Mui (wildly over-the-top) play his parents. This time out, Fei-Hong gets caught up in another conspiracy involving foreigners stealing and smuggling China's artistic treasures out of the country.
While trying to avoid a train tax for some Ginsing purchased by his father, Fei-Hong hides it among some foreign dignitary's luggage. When he retrieves it, he has a run in with an apparent thief who is stealing another item wrapped identically to Fei-Hong's Ginsing box. While they both exit the boxcar to avoid capture, a fight insures between them underneath a train station (showcasing tight-courters spear vs. sword ... a long weapon is usually very ineffective if you don't have a lot of room to use it, but not in this case). After a hasty resolution, Fei-Hong returns to the train with the wrong box ... containing the stolen Emperor's Jade Seal Stamp.
Most of the comedy relief revolves around a complex cover up for the missing Ginsing and its aftermath when they return home with classic comedic interaction between Fei-Hong and his parents which eventually threatens the family honor and name.
The foreigners set up shop at the British Conselate and take over the local town steel mill as a front for their smuggling operations. They also want to extend their power by expanding to town ownership. As the film progresses, secondary characters as well as villains are introduced as the catalyst to showcase Fei-Hong's amazing drunken fist style of martial arts. This style combines flexibility and acrobatics with the appearance of looking drunk and off balance to throw an opponent off and draw them in closer.
During one confrontation, Fei-Hong learns that alcohol increases his drunken style power by taking away feeling and he easily dispatches five opponents at the same time. He learns the hard way from his father that if not used in moderation, it can cloud one's judgement and control.
The theft and smuggling conspiracy is brought into the open when the thief from the train shows up to correct the box mixup. The thief turns out to be a high-ranking and decorated Manchu officer who is trying prevent the lost of China'a treasures. The foreigners enlist aid of some corrupt Chinese counterparts to retrieve the Jade Seal and kill the Manchu officer in the process. As a result, Fei-Hong vows to go after them and shut down their operation.
Jackie shines in fine form and proves to the world once again that he still has it. DRUNKEN MASTER 2 easily outshines his last four film efforts and combines the best qualities of all of his previous period dramas (DRUNKEN MASTER, FEARLESS HYENA, YOUNG MASTER, etc.) with elements from both PROJECT "A"s and POLICE STORY 2. Since this is a pure martial arts film, he pulls out all the stops and creates a roller coaster ride jaw-dropping stunts and vintage trademark Jackie Chan weapons and hand-to-hand sparing choreography that will leave the average viewer numb and jaded. In addition to his physical acrobatic hand forms, Jackie also shows his skill in weapons including the single-edge sword, fan, double sawhorse stools (at the same time!), staff pole, and an improvised weapon that has to be seen to be believed. Jackie's opponents are always equally skilled and provide a contrast to his unique drunken style. The final confrontation in the steel mill was a burning experience ... literally.
This film is more modern than most Wong Fei-Hong's produced so far. No one in the film has a ponytail or shaved head hair-style. The Wong Fei-Hong character, who was traditionally a Hung Gar stylist is showcased as using a completely different style ... but ... who cares ... it was awfully entertaining !!! What a welcome change from the overabundance of flying-by-wires stuff proliferating traditional martial arts films lately.
Check it out when it comes to your town.
--Eric--
.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews