Stokes, who is standing trial for affray alongside Ryan Ali and Ryan Hale, was described as "trying to get at another individual" by Mark Spure, an off-duty member of the police force, who witnessed part of the incident.
Stokes is facing a charge of affray over a violent incident, which took place in the early hours of September 25 outside a club in Bristol.
Mr Spure described seeing Stokes punch Ali, who was trying to get away, with a "clenched fist" in the road.
The all-rounder allegedly tried to imitate the mannerisms of William O'Connor and Kai Barry as they waited by the entrance to Mbargo night spot in Bristol.
Jurors heard how Stokes said he acted in defence of himself, England teammate Alex Hale and Mr Barry and Mr O'Connor at all times, adding that they thanked him for protecting them.
Prosecutors allege that trouble flared after Stokes and Hales caught up with Ali, Hale, O'Connor and Barry on a nearby street. "He had a green T-shirt on". Earlier Det Con Daniel Adams, who led investigations for Avon and Somerset Police, said Barry, who Stokes is alleged to have mocked for being flamboyant, "makes a grab on Ryan Ali around the groin area" before violence flared.More news: North Korea says US 'throwing cold water' on denuclearisation progress
In questioning, Spure told the court Stokes "seemed to be the main aggressor or was progressing forward trying to get to another individual".
"One of the guys responded - he said "shut up or I'll bottle you".
PC Stacey Alway told the court that as she walked over to Mr. Stokes, she said: "A guy over there was covered in blood and I've been told you punched him".
"At this point, I felt vulnerable and frightened". I felt I was going to be attacked.
The jury was also shown CCTV footage that, it was alleged by the prosecution, shows Hale running back towards the main group with a length of metal. And Stokes replied: "Because he was abusing my two friends for being gay".
The court has heard it was Stokes who had struck Ryan Ali, knocking him to the floor.
The doorman said Hales asked what had happened and, after being told, said to his team-mate: "Stokesy - don't do that".